What problem does it solve? Building reliable Salesforce Agentforce agents requires precise control over topic routing, state transitions, and action execution that prompt-only approaches cannot guarantee. This Skill guides the authoring, validation, and publishing of deterministic .agent files using the Agent Script DSL, preventing common syntax errors and publish failures. ## Core Features & Use Cases - Agent Script Authoring: Write .agent files with FSM-based topic architecture, deterministic guards (available when), variable state management, and target-backed actions (Flow, Apex, Prompt Templates). - Validation & Publish Workflow: Run sf agent validate authoring-bundle, preview smoke tests, and publish/activate agents via Salesforce CLI with org-aware checks for Service vs Employee Agents. - 100-Point Scoring System: Evaluate agent quality across six categories including structure, deterministic logic, instruction resolution, and deployment readiness. - Use Case: A developer needs a customer service agent that verifies identity before processing refunds. The Skill generates a scored .agent file with verification gates, escalation routing, and Flow-backed actions, then validates and publishes it to the target org. ## Quick Start Ask the AI to create an Agent Script agent for your use case, for example: write a .agent file for a customer support agent that verifies identity, looks up orders via a Flow action, and escalates to a human when verification fails.