forcedotcom avatar

Developing Agentforce

If you're building or debugging Agentforce agents with Agent Script, this skill keeps Claude grounded in the actual syntax and toolchain. It covers the full lifecycle: writing .agent files, generating backing logic, using the sf CLI with the right flags (always add --json), and reading session traces to diagnose why your agent routed to the wrong subagent or failed to invoke an action. The standout rule is "diagnose before you fix," which forces Claude to preview with live actions and read trace files before touching code. Agent Script shipped in 2025 with zero training data in any model, so without this skill Claude will hallucinate syntax from JavaScript or Python. Worth using if you're doing anything beyond basic Apex or Flow work.

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

Install

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

Installs into .claude/skills of the current project.

Files

If you're building or debugging Agentforce agents with Agent Script, this skill keeps Claude grounded in the actual syntax and toolchain. It covers the full lifecycle: writing .agent files, generating backing logic, using the sf CLI with the right flags (always add --json), and reading session traces to diagnose why your agent routed to the wrong subagent or failed to invoke an action. The standout rule is "diagnose before you fix," which forces Claude to preview with live actions and read trace files before touching code. Agent Script shipped in 2025 with zero training data in any model, so without this skill Claude will hallucinate syntax from JavaScript or Python. Worth using if you're doing anything beyond basic Apex or Flow work.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Testing & QA, DevOps & CI/CD, AI & Agent Building, Release Management, Debugging, Automation & Workflows, Sales & Marketing, Cloud & Infrastructure, CLI & Terminal
First seen
Jun 3, 2026

More from forcedotcom/sf-skills

All 158
1yaklang avatarclickjackingyaklang/hack-skillsClickjacking playbook. Use when testing whether target pages can be framed, whether X-Frame-Options or CSP frame-ancestors are properly configured, and whether 3.8Kskills.sh installs
2hashicorp avatarrun-acceptance-testshashicorp/agent-skillsGuide for running acceptance tests for a Terraform provider. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.3.8Kskills.sh installs
3yaklang avatarhash-attack-techniquesyaklang/hack-skillsHash attack playbook. Use when exploiting length extension, MD5/SHA1 collisions, HMAC timing leaks, birthday attacks, or hash-based proof of work in CTF and aut3.8Kskills.sh installs
4yaklang avatarprototype-pollutionyaklang/hack-skillsPrototype pollution testing for JavaScript stacks. Use when user input is merged into objects (query parsers, JSON bodies, deep assign), when configuring librar3.8Kskills.sh installs
5yaklang avatardns-rebinding-attacksyaklang/hack-skillsDNS rebinding attack playbook. Use when testing applications that trust DNS resolution for origin checks, interact with internal services from browser context, 3.8Kskills.sh installs
6yaklang avataremail-header-injectionyaklang/hack-skillsEmail header injection and spoofing playbook. Use when testing contact forms, email APIs, password reset flows, or any feature that constructs SMTP messages wit3.8Kskills.sh installs