forcedotcom avatar

Agentforce Generate

If you're building Salesforce Agentforce agents with Agent Script, this handles the full lifecycle from design through deployment. It's built around the 2025 Agent Script language, which apparently has zero training data in any model, so Claude needs the explicit syntax rules and patterns included here. The skill walks through creating agent specs, generating authoring bundles, writing .agent files, validating compilation, debugging with session traces, and publishing. Notable that it enforces a hard stop for spec approval and insists on live preview testing before any deployment. Mostly useful if you're already neck deep in Agentforce development and need Claude to stop hallucinating Agent Script syntax.

skills.sh installs
6K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill agentforce-generate --agent claude-code

Installs into .claude/skills of the current project.

Files

Agent Script Skill

What This Skill Is For

This skill is for developing Agentforce agents, primarily with Agent Script, Salesforce's scripting language for AI agents.

Org-backed workflows require an Agentforce license, API v66.0 or later, and an Einstein Agent User. Static authoring and review can proceed without org access.

CRITICAL: Agent Script is NOT AppleScript, JavaScript, Python, or any other language. Do NOT confuse Agent Script syntax or semantics with any other language you have been trained on.

Agent Script agents are defined by AiAuthoringBundle metadata: an <ApiName>.agent file (agent behavior) plus a sibling <ApiName>.bundle-meta.xml file (bundle metadata). The directory and both filenames must use the same case-sensitive API name; a literal bundle-meta.xml filename is not deployable. Actions can be implemented with invocable Apex, autolaunched Flows, Prompt Templates, and other supported types.

This skill covers the full Agent Script lifecycle: designing agents, writing Agent Script code, validating and debugging, deploying and publishing, and testing.

How to Use This Skill

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Backend & APIs, Testing & QA, Security, DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Release Management, Debugging, Automation & Workflows, Sales & Marketing, Cloud & Infrastructure, CLI & Terminal
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1affaan-m avatarreact-patternsaffaan-m/eccReact 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management 5.9Kskills.sh installs
2dimillian avatarswiftui-liquid-glassdimillian/skillsImplement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing 5.9Kskills.sh installs
3software-mansion-labs avatarreact-native-best-practicessoftware-mansion-labs/skillsSoftware Mansion's best practices for production React Native and Expo apps on the New Architecture. MUST USE before writing, reviewing, or debugging ANY code i5.9Kskills.sh installs
4affaan-m avatarreact-performanceaffaan-m/eccReact and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills). Organi5.9Kskills.sh installs
5anthropics avatardeploy-checklistanthropics/knowledge-work-pluginsPre-deployment verification checklist. Use when about to ship a release, deploying a change with database migrations or feature flags, verifying CI status and a5.8Kskills.sh installs
6affaan-m avatarvite-patternsaffaan-m/eccVite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activat5.8Kskills.sh installs