What problem does it solve? Testing Agentforce agents manually is slow and error-prone: you need to verify subagent routing, action invocation, grounding, and safety behavior across many utterances, and the sf CLI output contains quirks like control characters and topic hash drift that break naive automation. This Skill provides structured workflows for ad-hoc preview testing, Testing Center batch suites, and direct action execution with trace-based diagnosis and fix loops. ## Core Features & Use Cases - Ad-Hoc Preview Testing (Mode A): Run smoke tests via sf agent preview with auto-derived utterances from the .agent file, local trace analysis, safety probes, and an iterative fix loop (max 3 iterations). - Testing Center Batch Testing (Mode B): Author test spec YAML, deploy it as an AiEvaluationDefinition with sf agent test create, run regression suites, and parse topic/action/outcome assertions for CI/CD pipelines. - 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). - Use Case: After modifying a .agent file, auto-generate a test plan covering every subagent and action, run safety probes against prompt injection, get a SAFE/UNSAFE verdict, and deploy a persistent regression suite for your CI pipeline. ## Quick Start Ask the agent to run a smoke test of your Agentforce agent against your org alias, for example: "Run a preview smoke test of the OrderService agent on my dev org and report routing, action, and safety results."