forcedotcom/sf-skills is a collection of reusable instructions that help AI coding agents build and work with Salesforce applications and platform features. Developers use it for Agentforce agents, Lightning apps, Flow, Apex, SOQL, Lightning Web Components, and related Salesforce configuration. The catalogue entries are the repository’s skills, plugins, commands, MCP servers, and agents for AI tools that support skills.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add forcedotcom/sf-skills --skill agentforce-generategit clone --depth 1 https://github.com/forcedotcom/sf-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/forcedotcom/sf-skills/agentforce-generate)<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/agentforce-generate"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/agentforce-generate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/agentforce-generate"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/agentforce-generate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket warn
- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00233 | $0.07167 |
| Opus 5.5 | $0.00093 | $0.02867 |
| Sonnet 5.5 | $0.00047 | $0.01433 |
| Haiku 4.5 | $0.00023 | $0.00717 |
Grade A, and why
agentforce-generate scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- tool: ["curl"] How it starts
The opening of the file, as written. The whole thing — 499 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
This file maps user intent to task domains and relevant reference files in references/. Treat this file as the execution router for end-to-end agent development, and use references for deep detail.
Identify user intent from task descriptions. Read only the reference explicitly required by the active step or needed for the current decision. Every Reference Files section is a lookup index, not a preload list; do not load files for later or inapplicable steps.
For a comprehensive health check, common-pitfall audit, or audit-fix-evaluate loop over an existing agent, use the Audit and Repair an Existing Agent task domain below as part of the same authoring lifecycle.
Rules That Always Apply
- Always
--json. ALWAYS include--jsonon EVERYsfCLI command. Do NOT pipe CLI output throughjqor2>/dev/null. Read the full JSON response directly — LLMs parse JSON natively.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/agent-spec-template.md 6.4 KB
- assets/agents/hello-world.agent 1.9 KB
- assets/agents/knowledge-grounded.agent 5.6 KB
- assets/agents/local-info-agent-annotated.agent 17 KB
- assets/agents/order-service.agent 12 KB
- assets/agents/production-faq.agent 3.9 KB
- assets/agents/production-faq.bundle-meta.xml 161 B
- assets/agents/README.md 2.6 KB
- assets/agents/router-first.agent 5.6 KB
- assets/agents/simple-qa.agent 1.9 KB
- assets/agents/template-multi-subagent.agent 5.4 KB
- assets/agents/template-single-subagent.agent 2.6 KB
- assets/agents/verification-gate.agent 11 KB
- assets/agents/voice-knowledge-grounded.agent 8.2 KB
- assets/agents/voice-service-agent.agent 4.6 KB
- assets/bundle-meta.xml 808 B
- assets/invocable-apex-template.cls 6.9 KB
- assets/patterns/action-callbacks.agent 4.7 KB
- assets/patterns/advanced-input-bindings.agent 6.9 KB
- assets/patterns/bidirectional-routing.agent 5.6 KB
- assets/patterns/critical-input-collection.agent 12 KB
- assets/patterns/delegation-routing.agent 6.4 KB
- assets/patterns/lifecycle-events.agent 4.7 KB
- assets/patterns/llm-controlled-actions.agent 5.1 KB
- assets/patterns/multi-step-workflow.agent 10 KB
- assets/patterns/open-gate-routing.agent 12 KB
- assets/patterns/procedural-instructions.agent 4.8 KB
- assets/patterns/prompt-template-action.agent 6.6 KB
- assets/patterns/README.md 11 KB
- assets/patterns/system-instruction-overrides.agent 11 KB
- README.md 5.4 KB
- references/action-prompt-templates.md 5.7 KB
- references/actions-reference.md 30 KB
- references/agent-access-guide.md 2.9 KB
- references/agent-audit-and-repair.md 7.9 KB
- references/agent-audit-candidate-verification.md 5.2 KB
- references/agent-audit-diagnostic-catalog.md 7.6 KB
- references/agent-audit-diagnostics-actions-state.md 6.9 KB
- references/agent-audit-diagnostics-architecture-evaluation.md 2.5 KB
- references/agent-audit-diagnostics-instructions-routing.md 12 KB
- references/agent-audit-evaluation-loop.md 6.0 KB
- references/agent-audit-repair-report.md 6.9 KB
- references/agent-audit-scope-path-review.md 8.5 KB
- references/agent-design-and-spec-creation.md 54 KB
- references/agent-metadata-and-lifecycle.md 30 KB
- references/agent-script-core-language.md 49 KB
- references/agent-subagent-map-diagrams.md 11 KB
- references/agent-user-setup.md 28 KB
- references/agent-validation-and-debugging.md 45 KB
- references/agentscript-toolchain.md 4.6 KB
- references/architecture-patterns.md 14 KB
- references/common-control-flow-pitfalls.md 9.4 KB
- references/complex-data-types.md 3.9 KB
- references/control-flow-actions-sequencing.md 6.9 KB
- references/control-flow-lifecycle-side-effects.md 3.3 KB
- references/data-library-reference.md 41 KB
- references/deploy-reference.md 6.7 KB
- references/discover-reference.md 4.3 KB
- references/examples.md 13 KB
- references/feature-validity.md 2.1 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +8 lines 70e62b4161f1
- 2mo ago Changed · +20 lines · +53 tokens per session 80b21f8540c5
- 2mo ago Changed · +8 lines 20991af8001c
- 3mo ago First seen · 463 lines · 180 tokens per session scan A 9bf7797f0bcb
agentforce-generate is a skill published in the GitHub repository forcedotcom/sf-skills (1,201 stars, last pushed 5d ago), licensed Apache-2.0. It adds 233 tokens to every session and 7,167 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
agentforce-generate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agentforce-generateforcedotcom/sf-skills | Skill | 1.2k | 5d ago | Apache-2.0 | A | 233 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 331k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |