/sf-compound-engineering:sf-lfg [feature description or plan path] [deploy=scratch|sandbox|none]from sf-compound-engineering
Orchestrates an end-to-end Salesforce delivery pipeline from ideation through deployment, enforcing quality gates at each stage. Use for full ship cycles only.
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.
Persona dispatch. This pipeline dispatches personas as isolated subagents — see
../sf-work/references/dispatch/guide.mdfor the mechanics (isolated subagents, same-response parallelism, same-file-conflict check). The PLAN stage delegates to/sf-planand the REVIEW stage to/sf-review, which own their personas (research →../sf-plan/references/personas/, review →../sf-review/references/personas/).
Principles enforced: all seven, but especially 1 (preserve the quality ceiling) and 2 (verifiability). See
PRINCIPLES.md.
Procedure lives in sibling files, not only in this orchestrator:
references/intake.md before Stage 0. It chooses the route. A request that is not a code change ends at the skill that owns it.references/stage-0-ideate-brainstorm-the-front-bread-human-led-conditional.md before acting on this section.references/stage-1-plan.md before acting on this section.references/stage-2-deepen.md before acting on this section.references/stage-3-work.md before acting on this section.references/stage-3-5-verify-independent.md before acting on this section.references/stage-4-review.md before acting on this section.references/stage-5-resolve.md before acting on this section.references/stage-6-polish-the-back-bread-conditional-ui-surfaces-only.md before acting on this section.references/stage-7-test.md before acting on this section.references/stage-8-deploy-conditional.md before acting on this section.references/stage-9-compound.md before acting on this section.references/output.md before acting on this section.Run the full Salesforce delivery pipeline: ideate (if needed) → brainstorm (if needed) → plan →
deepen → work → review → resolve → polish (if UI surface) → test → deploy. Each stage has a gate.
Ideate and polish are the human "bread" (Principle 5 — taste over typing); the middle is the
AI loop. Aborts on Critical/High security findings, governor regressions, missing Verification
Strategy, repeated test failures, WCAG A/AA violations on changed UI, or deploy-validation
failures. Honors $ARGUMENTS.deploy = scratch | sandbox | none.
<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.
Full autonomous pipeline. Takes a feature from idea to deployment with minimal human intervention.
LFG = Let's F*ing Go.**
Execute the full compound engineering loop for: $ARGUMENTS.feature
Narrate the run in chat as it moves. One line entering a stage names the stage and what it should produce. One line when it returns names what it actually produced. Report a stage done only after it ran and returned. Describing the next stage is not running it. A child skill's return ends that skill, not this turn. The next stage follows in the same turn. Do not end the turn before the output block in references/output.md or an explicit abort.
┌─ HUMAN "bread" (taste) ─┐ ────────── AI "filling" (in the loop) ────────── ┌─ HUMAN "bread" ─┐
0. IDEATE → BRAINSTORM → 1.PLAN → 2.DEEPEN → 3.WORK → 4.REVIEW → 5.RESOLVE → 6. POLISH → 7.TEST → 8.DEPLOY
(what's worth building) (40%) (20%) (UX/SLDS/a11y) (optional)
9. COMPOUND → capture learnings to docs/solutions/ (runs after, feeds the next loop)
Skills: /sf-plan mode:ideate · /sf-plan mode:brainstorm · /sf-plan · /sf-plan mode:deepen · /sf-work · /sf-review · /sf-review mode:polish · /sf-compound
Stage 0 (ideate/brainstorm) and Stage 6 (polish) are human-led and conditional; the middle stages auto-run behind gates.
The pipeline aborts and asks for human input if any of the following fire. These map to the principles in PRINCIPLES.md — they are not advisory.
Plan has no clear acceptance criteria (Stage 1).
Plan is missing a complete five-field Verification Strategy section, or any field is hand-waved (Stage 1, Principle 2).
Spec flow analysis finds Critical gaps with no obvious fix (Stage 1). Independent verification (Stage 3.5) returns NO-GO on any System-Wide Test Check question and no human has overridden (Principle 3).
A p0 file-todo remains active or blocked at the Stage 3→4 boundary (Principle 2).
Review fires any non-negotiable gate from sf-review: security regression, governor regression, test coverage regression, trigger context regression, or sharing regression (Stage 4, Principle 1).
Tests fail after 2 resolve cycles (Stage 5-7 loop).
Polish gate fails: an unresolved WCAG A/AA violation on a changed UI surface (Stage 6, Principle 1).
Deployment validation fails (Stage 8).
Agent confidence is low on a jagged-edge call — order of execution, mixed-DML, sharing recalculation, async-context governor — and no human has reviewed (Principle 3). When in doubt, abort and ask.
references/intake.md (opens in a new tab)references/output.md (opens in a new tab)references/stage-0-ideate-brainstorm-the-front-bread-human-led-conditional.md (opens in a new tab)references/stage-1-plan.md (opens in a new tab)references/stage-2-deepen.md (opens in a new tab)references/stage-3-5-verify-independent.md (opens in a new tab)references/stage-3-work.md (opens in a new tab)references/stage-4-review.md (opens in a new tab)references/stage-5-resolve.md (opens in a new tab)references/stage-6-polish-the-back-bread-conditional-ui-surfaces-only.md (opens in a new tab)references/stage-7-test.md (opens in a new tab)references/stage-8-deploy-conditional.md (opens in a new tab)references/stage-9-compound.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-planPlan Salesforce work before code: ideate, brainstorm, strategy, or an implementation plan. Use for 'plan this' or STRATEGY.md. Use sf-work to implement; use sf-debug when a test is already failing.Other plugins' skills for the same job