forcedotcom avatar

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-code

Installs 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 GitHub

Sponsors

Details

Repository
github.com/forcedotcom/afv-library
Category
Testing & QA
First seen
May 16, 2026

More from forcedotcom/afv-library

All 58
1itechmeat avatarreact-testing-libraryitechmeat/llm-codeReact Testing Library: user-centric component testing with queries, user-event simulation, async utilities, and accessibility-first API. Use when writing React 1.4Kskills.sh installs
2jaganpro avatarsf-ai-agentforce-testingjaganpro/sf-skillssf ai agentforce testing1.3Kskills.sh installs
3neolabhq 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.3Kskills.sh installs
4tovimx avatarmaestro-mobile-testingtovimx/maestro-mobile-testing-skillmaestro mobile testing1.2Kskills.sh installs
5moxa avatarbdd-feature-generatormoxa/swbdd feature generator1.2Kskills.sh installs
6facebook avatartestfacebook/reacttest1.1Kskills.sh installs