agentforce-generate

agentforce-generate is a skill for Claude Code from forcedotcom/sf-skills. It costs 233 tokens per session (7,167 once invoked), scanned A, original, Apache-2.0.

A development guide for creating and maintaining Salesforce Agentforce agents with Agent Script, a language made specifically for defining AI-agent behaviour. It covers the agent files, connected actions, validation, testing, and deployment.

In plain words
What is it for?
Use it to build or edit `.agent` files, connect actions such as Apex and Flows, check agent configuration, debug problems, test changes, and deploy agents to Salesforce.
Why use it?
It helps avoid mistakes in Agent Script syntax, metadata filenames, and deployment setup. It also gives one workflow for checking, repairing, and publishing an agent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the agentforce-adlc plugin — 7 skills, 4 agents shipped together

Good fit Use it to build or edit .agent files, connect actions such as Apex and Flows, check agent configuration, debug problems, test changes, and deploy agents to Salesforce.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forcedotcom/sf-skills/agentforce-generate
About the project

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.

forcedotcom/sf-skills · 1,201 stars · on GitHub

Install

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.

Any agent
npx skills add forcedotcom/sf-skills --skill agentforce-generate
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/sf-skills

Made for: Claude Code.

Or install agentforce-adlc, the plugin that ships this one along with the rest of its 7 skills, 4 agents.

Wrote 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.

agentmods badge for agentforce-generate

README.md
[![agentmods](https://agentmods.dev/badge/skills/forcedotcom/sf-skills/agentforce-generate/github.svg)](https://agentmods.dev/skills/forcedotcom/sf-skills/agentforce-generate)
Your own site
<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.

agentmods 80×15 button for agentforce-generate

Your own site · 80×15
<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>
Per session 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 10 Oct 2026
  • Snyk pass 10 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 70e62b4161f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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"]
plugins/builder/agentforce-adlc/skills/agentforce-generate/SKILL.md · 499 lines

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

  1. Always --json. ALWAYS include --json on EVERY sf CLI command. Do NOT pipe CLI output through jq or 2>/dev/null. Read the full JSON response directly — LLMs parse JSON natively.

Read the full file on GitHub · 499 lines

Files

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.

Changes

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.

  1. 4d ago Changed · +8 lines 70e62b4161f1
  2. 2mo ago Changed · +20 lines · +53 tokens per session 80b21f8540c5
  3. 2mo ago Changed · +8 lines 20991af8001c
  4. 3mo ago First seen · 463 lines · 180 tokens per session scan A 9bf7797f0bcb

Subscribe to this mod's changes

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.

Related

agentforce-generate compared with skills from other repositories

agentforce-generate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentforce-generateforcedotcom/sf-skillsSkill1.2k5d agoApache-2.0A233Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code