setup

setup is a command for Claude Code from forcedotcom/sf-skills. It costs 47 tokens per session (813 once invoked), scanned A, original, Apache-2.0.

A setup checker for the tools needed to develop Salesforce projects, such as the Salesforce CLI, Code Analyzer, Node.js, npm, Git, and source tracking.

In plain words
What is it for?
Use it to validate the local environment and diagnose problems with Salesforce tooling, authentication, MCP, or source tracking.
Why use it?
It reveals missing or outdated prerequisites and points you toward installation or update steps before development is blocked.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the salesforce-development plugin — 37 skills, 14 commands, 1 agent, 3 MCP servers shipped together

Good fit Use it to validate the local environment and diagnose problems with Salesforce tooling, authentication, MCP, or source tracking.

Compare 6 commands from other repositories ↓
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,104 stars · on GitHub

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add forcedotcom/sf-skills
Claude Code
/plugin install salesforce-development

Made for: Claude Code.

Or install salesforce-development, the plugin that ships this one along with the rest of its 37 skills, 14 commands, 1 agent, 3 MCP servers.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/forcedotcom/sf-skills/setup/github.svg)](https://agentmods.dev/commands/forcedotcom/sf-skills/setup)
Your own site
<a href="https://agentmods.dev/commands/forcedotcom/sf-skills/setup"><img src="https://agentmods.dev/badge/commands/forcedotcom/sf-skills/setup/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 setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/forcedotcom/sf-skills/setup"><img src="https://agentmods.dev/badge/commands/forcedotcom/sf-skills/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 813 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00047 $0.00813
Opus 5.5 $0.00019 $0.00325
Sonnet 5.5 $0.00009 $0.00163
Haiku 4.5 $0.00005 $0.00081

Measured 1mo ago against content hash cfb3c7c93ce4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/builder/salesforce-development/commands/setup.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run the tool prerequisite scan and render an actionable status report.

Phase 1: Scan

${CLAUDE_PLUGIN_ROOT}/scripts/sf-context check-tools

The output is a JSON object with a tools array (plus a diagnostic block on any critical failure).

The banner is painted for you — do not reproduce it. When check-tools runs, the plugin paints the framed "Ready to build on Salesforce?" banner deterministically on the visible channel (one status row per tool, the footer verdict, and the wayfinding footer), exactly like the SessionStart banner. Read the JSON for your own understanding, but do NOT reproduce, redraw, or re-render the banner — add only a short read of what it means for the user, then go to Phase 2.

Only if you do not see the banner painted (an older Claude Code build, or a paint fallback) render it yourself from the JSON, using the layout defined in the platform-environment-validate skill as the single source of truth. Read ${CLAUDE_PLUGIN_ROOT}/skills/platform-environment-validate/SKILL.md (Phase 1) for the canonical frame, status-dot definitions, fixed row order, footer verdict, and wayfinding footer. In brief: one framed block, one row per tool with a 🔴/🟡/🟢/ℹ️ status dot in a fixed order, and a footer verdict — ✓ toolchain ready when there are no 🔴/🟡 rows, or ⚠ <N> need attention · <M> ready otherwise — then the "You don't memorize commands here." wayfinding block ending in a context-aware Next: <action> → "<phrase>" line. A setup is "all green" when there are no 🔴 or 🟡 rows; ℹ️ rows never count against it.

Deterministic results — do NOT override a failure. The JSON report is the authoritative result. If a tool reports 🔴/🟡, render it as-is; never re-run the check a different way and present the result as 🟢. When the report includes a diagnostic block (attached on any critical failure), surface it — it carries platform, active shell, working directory, plugin root, and the resolved executable paths, and is secret-free by design.

Note: the Code Analyzer plugin is a JIT ("just-in-time") plugin — if it is registered but not yet physically installed, check-tools reports it 🟢 with a note that it auto-installs on first sf code-analyzer run. That is expected and not a problem.

Read the full file on GitHub · 39 lines

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. 1mo ago First seen · 39 lines · 47 tokens per session scan A cfb3c7c93ce4

Subscribe to this mod's changes

setup is a command published in the GitHub repository forcedotcom/sf-skills (1,104 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 813 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.