← ClaudeAtlas

testing-agentforcelisted

Write, run, and analyze structured test suites for Agentforce agents. TRIGGER when: user writes or modifies test spec YAML (AiEvaluationDefinition); runs sf agent test create, run, run-eval, or results commands; asks about test coverage strategy, metric selection, or custom evaluations; interprets test results or diagnoses test failures; asks about batch testing, regression suites, or CI/CD test integration. DO NOT TRIGGER when: user creates, modifies, previews, or debugs .agent files (use developing-agentforce); deploys or publishes agents; writes Agent Script code; uses sf agent preview for development iteration; analyzes production session traces (use observing-agentforce); requests OWASP, security, or red-team testing (use securing-agentforce).
SalesforceAIResearch/agentforce-adlc · ★ 68 · Testing & QA · score 77
Install: claude install-skill SalesforceAIResearch/agentforce-adlc
# ADLC Test Automated testing for Agentforce agents with smoke tests, batch execution, and iterative fix loops. ## Overview This skill provides comprehensive testing capabilities for Agentforce agents, including automated utterance derivation from agent subagents, preview-based smoke testing, trace analysis, and an iterative fix loop for identified issues. It bridges the gap between initial development and production deployment. ## Platform Notes - Shell examples below use bash syntax. On Windows, use PowerShell equivalents or Git Bash. - Replace `python3` with `python` on Windows. - Replace `/tmp/` with `$env:TEMP\` (PowerShell) or `%TEMP%\` (cmd). - Replace `jq` with `python -c "import json,sys; ..."` if jq is not installed. - `find ... | head -1` -> `Get-ChildItem -Recurse ... | Select-Object -First 1` in PowerShell. ## Usage This skill uses `sf agent preview` and `sf agent test` CLI commands directly. There is no standalone Python script. **Quick smoke test (Mode A):** ```bash # Start preview, send utterance, end session (--authoring-bundle generates local traces) sf agent preview start --json --authoring-bundle MyAgent -o <org-alias> sf agent preview send --json --session-id <ID> --utterance "test" --authoring-bundle MyAgent -o <org-alias> sf agent preview end --json --session-id <ID> --authoring-bundle MyAgent -o <org-alias> ``` **Batch testing (Mode B):** ```bash # Deploy and run test suite sf agent test create --json --spec test-spec.yaml --api-name MySuite -