
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.
$ npx -y skills add jaganpro/sf-skills --skill sf-ai-agentforce-testing --agent claude-codeInstalls into .claude/skills of the current project.
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.
Use sf-ai-agentforce-testing when the work involves:
sf agent test workflowsDelegate elsewhere when the user is:
sf org login web authentication; ECA is only required for Agent Runtime API testing, not for live preview.curl for OAuth token validation in the ECA flow; use the provided credential tooling.Use the existing scripts under:
~/.claude/skills/sf-ai-agentforce-testing/hooks/scripts/These scripts are pre-approved. Do not recreate them.
Ask for or infer:
Preflight checks:
Use when you need:
Requires:
Use when you need:
sf agent test workflowsFor manual validation without full formal testing, use preview workflows first, then escalate to Track A or B as needed.
Cover at least:
sf agent test commandsTypical failure buckets:
When failures imply agent-authoring issues:
Never skip these:
Avoid these anti-patterns:
curl commandsWhen finishing a run, report in this order:
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>
| Need | Delegate to | Reason |
|---|---|---|
| fix Agent Script logic | sf-ai-agentscript | authoring and deterministic fix loops |
| create test data | sf-data | action-ready data setup |
| fix Flow-backed actions | sf-flow | Flow repair |
| fix Apex-backed actions | sf-apex | Apex repair |
| set up ECA / OAuth for Agent Runtime API | sf-connected-apps | auth and app configuration |
| analyze session telemetry | sf-ai-agentforce-observability | STDM / trace analysis |
| Score | Meaning |
|---|---|
| 90+ | production-ready test confidence |
| 80–89 | strong coverage with minor gaps |
| 70–79 | acceptable but coverage expansion recommended |
| 60–69 | partial validation only |
| < 60 | insufficient confidence; block release |
Sponsors