Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Testing & QA
jaganpro avatar

Sf Ai Agentforce Testing

jaganpro/sf-skills

This is for teams running formal Agentforce agent tests after publish, not for building the agents themselves. It supports two tracks: multi-turn API testing when you need conversation continuity and context preservation, or CLI Testing Center for single-utterance validation and org-native test specs. The workflow is structured around a 100-point scoring system across seven categories, and it handles the full test-fix loop including topic routing validation, action invocation checks, and guardrail testing. If your test reveals the agent logic itself needs fixing, you hand off to the Agent Script skill. It requires API v66.0+ and assumes you are testing already-published agents, not prototypes.

installs
1.3K
GitHub stars
424
last updated
Jul 14, 2026
View on GitHubSave

Install

$ npx -y skills add jaganpro/sf-skills --skill sf-ai-agentforce-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

sf-ai-agentforce-testing: Agentforce Test Execution & Coverage Analysis

Use this skill when the user needs formal Agentforce testing: multi-turn conversation validation, CLI Testing Center specs, topic/action coverage analysis, preview checks, or a structured test-fix loop after publish.

When This Skill Owns the Task

Use sf-ai-agentforce-testing when the work involves:

  • sf agent test workflows
  • multi-turn Agent Runtime API testing
  • topic routing, action invocation, context preservation, guardrail, or escalation validation
  • test-spec generation and coverage analysis
  • post-publish / post-activate test-fix loops

Delegate elsewhere when the user is:

  • building or editing the agent itself → sf-ai-agentforce or sf-ai-agentscript
  • running Apex unit tests → sf-testing
  • creating seed data for actions → sf-data
  • analyzing session telemetry / STDM traces → sf-ai-agentforce-observability

Core Operating Rules

  • Testing comes after deploy / publish / activate.
  • Use multi-turn API testing as the primary path when conversation continuity matters.
  • Use CLI Testing Center as the secondary path for single-utterance and org-supported test-center workflows.
  • Interactive and programmatic CLI preview use standard sf org login web authentication; ECA is only required for Agent Runtime API testing, not for live preview.
  • Fixes to the agent should be delegated to sf-ai-agentscript when Agent Script changes are needed.
  • Do not use raw curl for OAuth token validation in the ECA flow; use the provided credential tooling.

Script path rule

Use the existing scripts under:

  • ~/.claude/skills/sf-ai-agentforce-testing/hooks/scripts/

These scripts are pre-approved. Do not recreate them.


Required Context to Gather First

Ask for or infer:

  • agent API name / developer name
  • target org alias
  • testing goal: smoke test, regression, coverage expansion, or bug reproduction
  • whether the agent is already published and activated
  • whether the org has Agent Testing Center available
  • whether ECA credentials are available for Agent Runtime API testing

Preflight checks:

  1. discover the agent
  2. confirm publish / activation state
  3. verify dependencies (Flows, Apex, data)
  4. choose testing track

Dual-Track Workflow

Track A — Multi-turn API testing (primary)

Use when you need:

  • multi-turn conversation testing
  • topic re-matching validation
  • context preservation checks
  • escalation or action-chain analysis across turns

Requires:

  • ECA / auth setup
  • agent runtime access

Track B — CLI Testing Center (secondary)

Use when you need:

  • org-native sf agent test workflows
  • test spec YAML execution
  • quick single-utterance validation
  • CLI-centered CI/CD usage where Testing Center is available

Quick manual path

For manual validation without full formal testing, use preview workflows first, then escalate to Track A or B as needed.


Recommended Workflow

1. Discover and verify

  • locate the agent in the target org
  • confirm it is published and activated
  • confirm required actions / Flows / Apex exist
  • decide whether Track A or Track B fits the request

2. Plan tests

Cover at least:

  • main topics
  • expected actions
  • guardrails / off-topic handling
  • escalation behavior
  • phrasing variation

3. Execute the right track

Track A
  • validate ECA credentials with the provided tooling
  • retrieve metadata needed for scenario generation
  • run multi-turn scenarios with the provided Python scripts
  • analyze per-turn failures and coverage
Track B
  • generate or refine a flat YAML test spec
  • run sf agent test commands
  • inspect structured results and verbose action output

4. Classify failures

Typical failure buckets:

  • topic not matched
  • wrong topic matched
  • action not invoked
  • wrong action selected
  • action invocation failed
  • context preservation failure
  • guardrail failure
  • escalation failure

5. Run fix loop

When failures imply agent-authoring issues:

  • delegate fixes to sf-ai-agentscript
  • re-publish / re-activate if needed
  • re-run focused tests before full regression

Testing Guardrails

Never skip these:

  • test only after publish/activate
  • include harmful / off-topic / refusal scenarios
  • use multiple phrasings per important topic
  • clean up sessions after API tests
  • keep swarm execution small and controlled

Avoid these anti-patterns:

  • testing unpublished agents
  • treating one happy-path utterance as coverage
  • storing ECA secrets in repo files
  • debugging auth with brittle shell-expanded curl commands
  • changing both tests and agent simultaneously without isolating the cause

Output Format

When finishing a run, report in this order:

  1. Test track used
  2. What was executed
  3. Pass/fail summary
  4. Coverage gaps
  5. Root-cause themes
  6. Recommended fix loop / next test step

Suggested shape:

Agent: <name>
Track: Multi-turn API | CLI Testing Center | Preview
Executed: <specs / scenarios / turns>
Result: <passed / partial / failed>
Coverage: <topics, actions, guardrails, context>
Issues: <highest-signal failures>
Next step: <fix, republish, rerun, or expand coverage>

Cross-Skill Integration

NeedDelegate toReason
fix Agent Script logicsf-ai-agentscriptauthoring and deterministic fix loops
create test datasf-dataaction-ready data setup
fix Flow-backed actionssf-flowFlow repair
fix Apex-backed actionssf-apexApex repair
set up ECA / OAuth for Agent Runtime APIsf-connected-appsauth and app configuration
analyze session telemetrysf-ai-agentforce-observabilitySTDM / trace analysis

Reference Map

Start here

  • references/interview-wizard.md
  • references/multi-turn-testing.md
  • references/cli-commands.md
  • references/test-spec-reference.md

Execution / auth

  • references/execution-protocol.md
  • references/multi-turn-execution.md
  • references/eca-setup-guide.md
  • references/credential-convention.md
  • references/connected-app-setup.md

Coverage / fix loops

  • references/coverage-analysis.md
  • references/agentic-fix-loops.md
  • references/results-scoring.md
  • references/known-issues.md

Advanced / specialized

  • references/agentscript-agents.md
  • references/agentscript-testing-patterns.md
  • references/cli-testing-details.md
  • references/deep-conversation-history-patterns.md
  • references/swarm-execution.md
  • references/trace-analysis.md
  • references/agent-api-reference.md

Templates / assets

  • references/test-templates.md
  • references/test-plan-format.md
  • assets/

Score Guide

ScoreMeaning
90+production-ready test confidence
80–89strong coverage with minor gaps
70–79acceptable but coverage expansion recommended
60–69partial validation only
< 60insufficient confidence; block release
SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/jaganpro/sf-skills
Categories
Testing & QA, AI & Agent Building
First seen
Apr 16, 2026

More from jaganpro/sf-skills

All 37
  • Sf Ai Agentforce Observability1.3K
  • Sf Docs1.2K
  • Sf Ai Agentforce Persona1.2K
  • Sf Datacloud1K
  • Sf Industry Commoncore Omniscript990
  • Sf Industry Commoncore Datamapper987
  • Sf Industry Commoncore Omnistudio Analyze986
  • Sf Industry Commoncore Flexcard984
  • Sf Datacloud Retrieve982
  • Sf Datacloud Connect980
  • Sf Industry Commoncore Integration Procedure980
  • Sf Datacloud Prepare979
  • Sf Datacloud Segment976
  • Sf Datacloud Harmonize973
  • Sf Datacloud Act972
  • Sf Industry Commoncore Callable Apex951
  • Sf Flex Estimator834
  • Sf Industry Cme Epc Model812
  • Sf Vlocity Build Deploy811
  • Sf Ai Agentforce Grid432
  • Sf Apex1.6K
  • Sf Lwc1.5K
  • Sf Flow1.5K
  • Sf Metadata1.5K

Recommended

More Testing & QA
1neolabhq avatartest-driven-developmentneolabhq/context-engineering-kitUse when implementing any feature or bugfix, before writing implementation code - write the test first, watch it fail, write minimal code to pass; ensures tests1.3Kinstalls
2github avatarreact19-test-patternsgithub/awesome-copilotProvides before/after patterns for migrating test files to React 19 compatibility, including act() imports, Simulate removal, and StrictMode call count changes.1.2Kinstalls
3neolabhq avatartest-skillneolabhq/context-engineering-kitUse when creating or editing skills, before deployment, to verify they work under pressure and resist rationalization - applies RED-GREEN-REFACTOR cycle to proc1.2Kinstalls
4moxa avatarbdd-feature-generatormoxa/swbdd feature generator1.2Kinstalls
5ruvnet avataragent-tdd-london-swarmruvnet/rufloAgent skill for tdd-london-swarm - invoke with $agent-tdd-london-swarm1.1Kinstalls
6ruvnet avataragent-test-long-runnerruvnet/rufloAgent skill for test-long-runner - invoke with $agent-test-long-runner1.1Kinstalls