What problem does it solve? Testing Agentforce agents manually is slow and error-prone: you must verify subagent routing, action invocation, grounding, and safety behavior across many utterances, then diagnose failures from raw execution traces. This Skill automates that entire loop using the Salesforce CLI. ## Core Features & Use Cases - Ad-hoc preview testing (Mode A): Run quick smoke tests against a local .agent authoring bundle with sf agent preview, then analyze local trace files for routing, grounding, safety scores, and variable updates. - Testing Center batch testing (Mode B): Author YAML test specs, deploy them as AiEvaluationDefinition metadata with sf agent test create, run suites, and parse pass/fail results for topic, action, and outcome assertions. - Direct action execution: Invoke Flow and Apex actions via the Salesforce REST API with a mandatory safety gate (production-org check, DML warning, synthetic-data enforcement). - Iterative fix loop: Diagnose failures (TOPIC_NOT_MATCHED, UNGROUNDED, LOW_SAFETY, etc.) from traces and apply targeted fixes to the .agent file, up to 3 iterations. - Use Case: After building an order-management agent, auto-derive a test plan from its subagents, run safety probes (prompt injection, PII handling), get a SAFE/UNSAFE verdict, and deploy a regression suite for CI/CD. ## Quick Start Ask the assistant to run a smoke test of your Agentforce agent against a specific org alias using its authoring bundle, and review the auto-generated test plan before execution.