/sf-compound-engineering:sf-plan [mode:ideate|brainstorm|strategy|deepen] [feature, requirements doc, or plan path]from sf-compound-engineering
Plans Salesforce work before code: ideate, brainstorm, strategy, or implementation plans. Use for 'plan this' or STRATEGY.md.
Ships in sf-compound-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
First argument mode:<name> selects a mode; everything after it passes to that mode's guide. Load only the guide for the chosen mode.
| Mode | Use for | Guide |
|---|---|---|
(none) | Write an implementation plan under docs/plans/ | this file |
ideate | Generate and rank grounded improvement ideas | references/ideate/guide.md |
brainstorm | Explore a feature before planning; writes docs/brainstorms/ | references/brainstorm/guide.md |
strategy | Create or update repo-root STRATEGY.md | references/strategy/guide.md |
deepen | Add parallel research depth to an existing plan | references/deepen/guide.md |
Persona dispatch. This skill dispatches its research personas as isolated subagents — see
../sf-work/references/dispatch/guide.mdfor the mechanics (isolated subagents, same-response parallelism, same-file-conflict check). This skill owns the research personas underreferences/personas/.
Principles enforced: 2 (verifiability), 4 (spec is the artifact), 7 (institutional knowledge). See
PRINCIPLES.md.
Strategy grounding: If a STRATEGY.md exists at the repo root, read it first. It is the agreed shared project document: written sections are settled direction, not a private draft. Align the plan's tracks and metrics with it, and do not reopen a section the user did not ask to revisit.
Classify the request before any research read. When the tier is uncertain, take the heavier one. sf-lfg and any caller that requires a Verification Strategy section takes Durable. These three names stay in this file; a reference does not replace the gate.
sf-work, or the user makes the edit. Do not write docs/plans/, dispatch research, or run document review.sf-work. No subagents and no document review.docs/plans/.A saved chat brief is plain markdown under docs/plans/ with title, type, and date only. Do not mark it implementation-ready. Direct and Chat brief still name the check that proves the change (Principle 2); they do not skip it. Full section rules for the two chat tiers are in references/output-contracts.md, read only when that tier is selected.
Procedure for a Durable plan lives in sibling files. Load each when its step starts:
references/step-0-check-for-brainstorm.md before acting on this section.references/step-1-parallel-research-dispatch-simultaneously.md before acting on this section.references/trace-before-choice.md before a choice that depends on current org behavior, and when a costly choice is still open after research.references/step-2-consolidate-research.md before acting on this section.references/step-3-internal-first-discovery.md before acting on this section.references/step-4-spec-flow-analysis.md before acting on this section.references/critical-constraint.md before acting on this section.references/available-resources.md before acting on this section.references/output.md before acting on this section.references/after-planning.md before acting on this section.Plan a Salesforce feature without writing code. Classify Direct, Chat brief, or Durable first.
Direct and Chat brief stay in chat and still name the check that proves the change.
Durable writes spec, plan, and tasks under docs/plans/ after parallel research, and the
Verification Strategy section is mandatory — no verification, no durable plan.
sf-lfg always takes Durable.
<feature_description> #$ARGUMENTS </feature_description>
When asking the user a question, use the host's blocking question tool already in the current tool list (match by capability, not by a host-specific name). Presence in that list is proof the tool exists; never call a user-facing question tool to discover whether it exists. If a matching tool is listed but unloaded, load its schema with the host's tool-discovery primitive, then call it. Fall back to numbered options in chat only when no blocking tool is listed or the call errors. Never silently skip the question.
Ask one question at a time. Prefer a concise single-select choice when natural options exist.
You are planning a Salesforce implementation using parallel research personas. Your job is to research and design — NOT write code.
Create a specification and technical design for: $ARGUMENTS.feature
Repo-local plan writes need a git checkout you can edit. If this session has no writable checkout, but the user named a repository and the harness exposes a remote repo-work surface, write the plan there. Otherwise report that no writable checkout is available and return the plan in chat.
Leave the bootstrap when the problem frame is stated, the boundaries that matter are known, and success criteria or a verification strategy can be named — or when the user says to proceed. Confirm that frame before research when it is still open.
references/after-planning.md (opens in a new tab)references/available-resources.md (opens in a new tab)references/brainstorm/guide.md (opens in a new tab)references/critical-constraint.md (opens in a new tab)references/deepen/guide.md (opens in a new tab)references/ideate/guide.md (opens in a new tab)references/output-contracts.md (opens in a new tab)references/output.md (opens in a new tab)references/personas/sf-external-researcher.md (opens in a new tab)references/personas/sf-learnings-researcher.md (opens in a new tab)references/personas/sf-repo-research-analyst.md (opens in a new tab)references/step-0-check-for-brainstorm.md (opens in a new tab)references/step-1-parallel-research-dispatch-simultaneously.md (opens in a new tab)references/step-2-consolidate-research.md (opens in a new tab)references/step-3-internal-first-discovery.md (opens in a new tab)references/step-4-spec-flow-analysis.md (opens in a new tab)references/strategy/guide.md (opens in a new tab)references/strategy/references/interview.md (opens in a new tab)references/strategy/references/strategy-template.md (opens in a new tab)references/trace-before-choice.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub divingsbysangam/salesforce-compound-engineering-plugin --plugin sf-compound-engineering10 skills in this plugin
/sf-compoundCapture durable Salesforce knowledge in docs/solutions/, or refresh stale learnings. Use when the lesson is not in the final code or tests. Use sf-debug for an open failure./sf-debugDiagnose a Salesforce failure or explain code: tests, governor limits, deploys, LWC, sharing. Use for 'debug', 'why is this failing', or 'I didn't follow'. Use sf-work when the change is already known./sf-deployValidate, deploy, retrieve, and delete Salesforce metadata; manage orgs, manifests, test runs, and test data; set up the environment. Use for 'deploy', 'validate', 'retrieve', 'package.xml', 'scratch org', 'setup'./sf-generateGenerate Salesforce source: Apex, triggers, Flows, objects/fields/tabs/apps, permission sets, validation rules, FlexiPages, test data, prompt templates, MCP tools, Agentforce agents and tests./sf-knowSalesforce platform knowledge on demand: governor limits, Apex/LWC/Flow patterns, security (CRUD/FLS, sharing), integrations, GraphQL, Hosted MCP, agent-native design. Use when a question needs platform facts./sf-lfgTake a Salesforce request through to an open PR without check-ins. Use only for 'lfg' or an explicit end-to-end ship. Use sf-plan or sf-work when each step stays in review.Other plugins' skills for the same job