agentforce-skill
v1.0.0
Published
Agent kit (skills, commands, rules) for building Salesforce Agentforce agents using the SF CLI
Maintainers
Readme
Agentforce Skill
Agent kit for building Salesforce Agentforce agents using the SF CLI. This skill enables AI coding assistants to help you create, test, and deploy Agentforce agents.
Quick Start
# Install to your AI coding agent
npx agentforce-skill
# Or install directly
npx agentforce-skill --cursor --global
npx agentforce-skill --claude-code --localPrerequisites
Before using this skill, ensure you have:
Salesforce CLI installed:
npm install -g @salesforce/cliAgent Plugin installed:
sf plugins install @salesforce/plugin-agentAuthenticated to an org with Agentforce enabled:
sf org login web --alias my-dev-org
Available Skills
| Skill | Description | Triggers |
|-------|-------------|----------|
| agentforce-agent-development | Build, test, and deploy Agentforce agents | "create agent", "agent spec", "test agent", "agent preview" |
Usage Examples
Once installed, ask your AI assistant:
- "Create a customer support agent for Acme Corp"
- "Generate a test spec for my agent"
- "How do I preview my agent?"
- "Deploy my agent to production"
- "Add a new topic for handling refunds"
Installation Options
Interactive Mode
npx agentforce-skillSelect your AI coding agent(s) and installation location.
Non-Interactive Mode
# Single agent
npx agentforce-skill --cursor --global
npx agentforce-skill --claude-code --local
# Multiple agents
npx agentforce-skill --cursor --windsurf --globalSupported AI Agents
- Cursor - AI-powered code editor
- Claude Code - Anthropic Claude CLI
- Windsurf - Codeium AI editor
- OpenCode - Open source AI coding CLI
- Zed - High-performance code editor
- Cline - AI coding assistant for VS Code
- Codex - OpenAI Codex CLI
Skill Contents
skills/
└── agentforce/
└── agent-development/
├── SKILL.md # Main skill file
├── workflow.md # Detailed workflow guide
├── examples.md # Command examples
├── checklists.md # Validation checklists
└── commands-reference.md # Full command referenceSF Agent Commands Covered
Agent Lifecycle
sf agent generate agent-spec- Generate agent specificationsf agent generate authoring-bundle- Create authoring bundlesf agent validate authoring-bundle- Validate Agent Scriptsf agent publish authoring-bundle- Deploy agentsf agent activate/deactivate- Control agent availability
Testing
sf agent generate test-spec- Generate test specificationsf agent test create- Create test in orgsf agent test run- Execute testssf agent test results- Get test resultssf agent preview- Interactive testing
Documentation
- SKILL.md - Main skill reference
- workflow.md - Step-by-step guide
- examples.md - Practical examples
- checklists.md - Validation checklists
- commands-reference.md - Command reference
External Resources
License
MIT
