setup

setup is a command for coding agents 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

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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.

agentmods
npx agentmods add commands/forcedotcom/sf-skills/setup
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/sf-skills

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
Origin unknown 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 $0.00047 $0.00813
Opus 5 $0.00023 $0.00407
Sonnet 5 $0.00009 $0.00163
Haiku 4.5 $0.00005 $0.00081

Measured today against content hash cfb3c7c93ce4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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. today 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 (961 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. 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.