
Testing Agentforce
This handles the full testing lifecycle for Agentforce agents, from smoke tests during development to regression suites in CI/CD. You get two modes: ad-hoc preview testing with local traces for quick iteration, and persistent test suites deployed to the org for batch runs. The real strength is the fix loop, it auto-derives test cases from your agent's subagents and actions, runs them, analyzes the trace JSON to diagnose failures like topic misrouting or ungrounded responses, then suggests targeted fixes to your YAML. It also forces a safety verdict after running adversarial probes, which is smart because it's easy to skip that step. Works directly with sf CLI commands, no separate scripts to manage.
- skills.sh installs
- 1.5K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill testing-agentforce --agent claude-codeInstalls into .claude/skills of the current project.
Files
This handles the full testing lifecycle for Agentforce agents, from smoke tests during development to regression suites in CI/CD. You get two modes: ad-hoc preview testing with local traces for quick iteration, and persistent test suites deployed to the org for batch runs. The real strength is the fix loop, it auto-derives test cases from your agent's subagents and actions, runs them, analyzes the trace JSON to diagnose failures like topic misrouting or ungrounded responses, then suggests targeted fixes to your YAML. It also forces a safety verdict after running adversarial probes, which is smart because it's easy to skip that step. Works directly with sf CLI commands, no separate scripts to manage.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- Category
- Testing & QA
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Uplifting Components To Slds21.5K
- Using Ui Bundle Salesforce Data1.5K
- Creating B2b Commerce Store1.4K
- Generating Lwc Components541
- Querying Soql540
- Developing Datacloud Code Extension539
- Fetching Salesforce Docs537
- Getting Datacloud Schema536
- Deploying Metadata534
- Debugging Apex Logs532
- Handling Sf Data532
- Generating Mermaid Diagrams531
- Generating Visual Diagrams531
- Running Apex Tests531
- Configuring Connected Apps526
- Building Sf Integrations523
- Retrieving Datacloud523
- Activating Datacloud522
- Harmonizing Datacloud520
- Connecting Datacloud519
- Orchestrating Datacloud519
- Preparing Datacloud519
- Segmenting Datacloud518
- Building Omnistudio Flexcard511