/compound-engineering:ce-plan [optional: feature description, requirements doc path, plan path to deepen, or any task to plan] [output:html]from compound-engineering
Create structured plans for multi-step work, including software and non-software tasks. Use when asked to plan, break down implementation, plan from requirements, or deepen an existing plan; prefer ce-brainstorm for exploratory framing.
Ships in 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.
The current year is 2026.
Outcome: a plan for carrying out and checking the agreed work while preserving its outcome and constraints. Resolve technical choices from evidence; leave adequate instructions unchanged. ce-brainstorm defines WHAT, ce-plan plans HOW, and ce-work executes. A prior brainstorm is optional.
An explicit invocation always produces a plan. Never classify a direct invocation as "not a planning task" and route out. It may select any output contract below, and the smallest valid plan is a few sentences in chat.
Research, decide, and write the plan — never implement. Do not write production code, run tests, or learn from execution-time results. Directional pseudo-code and grammar sketches may communicate design; changing code to see what happens belongs in ce-work.
A run is complete when its output contract's done condition is met. Every normal interactive branch that produces a plan artifact or checkpoint is incomplete until the user has been asked what to do next. A request that already authorizes the next action is that answer. For a Durable software implementation-plan run that continues past the resume check, that means the Phase 5.4 menu has been presented and the selected action has actually fired. For Direct, the change stated and the handoff offered; for a Chat brief, the brief and its one-line save-or-ce-work offer in chat. Neither presents the Phase 5.4 menu. Non-software plans and approach-level plans end with the handoff their reference workflow defines. A run that only answers a question may end after the answer unless its reference requires a save or share step.
Writing the file, checking confidence, and running or explicitly skipping ce-doc-review are intermediate milestones. In pipeline mode, the run is complete only when the plan, the confidence check, and the non-interactive document-review state have been returned to the caller, which decides what happens next.
FENIX autonomous mode, in brief. Active when the repo's
.compound-engineering/config.yamlhas a lineautonomous: on, orFENIX_AUTONOMOUS=1is set, or the run was launched by/lfg. Check with:grep -qs '^autonomous: on' "$(git rev-parse --show-toplevel)/.compound-engineering/config.yaml" || [ "${FENIX_AUTONOMOUS:-}" = 1 ]Off means this skill behaves exactly as upstream wrote it. On means four rules:
- Never block. Where this skill would ask the user, pick its documented default, log the choice, and continue.
- Prefer the reversible branch. Narrower scope over wider, a new file over an edit, additive over destructive, deferred over speculative.
- Proof, or it did not happen. A unit is done only with an artifact from the running app. "It compiles" or "tests pass" is not proof. If verification cannot run, stop that unit and record why.
- Irreversible actions still stop: force-push, history rewrite, merging a PR, data deletion or destructive migrations, printing or rotating secrets, deploys and publishing, spending money. Commit what is proven, write the trail, and report what waits on a human.
Decision trail. For each non-obvious decision append one tab-separated row to
docs/autonomous/<YYYY-MM-DD>-<branch>-trail.tsv, writing the header row first if the file is new. Columns:timestamp,skill,decision,why,evidence(a path, ornone),reversible(yesorno). Everyreversible=norow also goes in the PR description. A run ends with an open PR, never a merge.
Before Phase 0, run the FENIX activation check (box above). When it reports autonomous mode on, treat this run as
this skill's own existing pipeline mode (see references/output-mode.md) for every branch that
would otherwise block: Output Contract selection, depth classification, and the Phase 5.4 handoff
menu all resolve to their pipeline-mode path rather than asking. This reuses upstream's own
non-interactive machinery instead of adding a second one beside it.
What pipeline mode does not give you is an audit trail. Per the FENIX decision trail, log one trail row (format in the box above) for each resolved-without-asking decision — the Output Contract
tier picked, the depth classification, and any scope call-out the interactive path would have
surfaced. Per Rule 2, when a call is genuinely unclear, prefer the lighter contract (Chat brief over
Durable) and the narrower scope; both are easy to widen later, and widening a plan is cheaper than
unwinding a plan that assumed too much. reversible=yes for all of these — a plan document is never
itself an irreversible action. When autonomous mode is off, this section does not apply.
Ask one question at a time through the host's blocking question tool already in the current tool list. Match by capability; never probe a user-facing tool to discover it. If none is listed or a real question call errors, render numbered choices in chat; never silently skip a required question. If no feature description was supplied, ask what to plan and wait.
Decide which output contract applies at the start of scoping (Phase 0.6), before choosing depth and before the scoping synthesis. It applies only when no resume route (Phase 0.1) fired and the source check (Phase 0.2) found no upstream artifact. Ground it with bounded inline reads of what the request names, without dispatching a subagent. Select one:
ce-work or the user; execution starts only with implementation authority, as references/output-contracts.md defines.references/output-contracts.md defines Direct and Chat brief; read it when either is selected. When the tier is still uncertain after those reads, take the heavier one. If a read surfaces a decision the user would weigh, a risk surface, or multi-pass verification, move to the heavier tier before emitting anything. Durable regardless of size: a run with no synchronous user to act on chat this turn (pipeline, headless, goal- or scheduler-driven), a request whose wording asks for a plan, a plan file, or an output format, a request that continues an existing plan's item, and a risk surface — authentication, payments, migrations, external contracts.
Phases run in order unless a reference routes out or short-circuits. Read a phase's required reference in full when you enter that phase; a read made before that phase does not satisfy it, and a reference named for the final steps is read again at its step even when already in context. If a required reference cannot be read, stop before the action it governs and report the blocker and recovery path; never reconstruct the missing rules from memory. In pipeline mode, every required-reference failure returns status: blocked, phase, blocker, and recovery_path; include artifact_path and preserve the artifact when one exists. Report blocked even when an artifact exists.
references/output-mode.md before interpreting any phase. It defines token parsing, output and confirmation precedence, renderer selection, artifact location, and when a repository may be resolved.references/resume.md before acting. It defines resuming an existing plan, enriching a requirements-only plan, deepening, approach-level planning, and the software/non-software split. Follow any terminal route it selects; otherwise continue.references/intake.md before Phase 0.2 and follow it through Phase 0.7. It defines finding and preserving the upstream artifact, routing out to bootstrap work, blocking questions, depth, named resources, and the scoping synthesis; the Output Contract decision above happens inside it. Do not pass a decision point that has not resolved.references/research.md before gathering context. It defines local and external research, consolidation, depth reclassification, flow analysis, and the Bake-off gate.references/structure.md before resolving questions or structuring the plan. It defines settled-decision handling, stable U-IDs, technical design, depth, and planning boundaries.references/plan-sections.md plus the format-rendering reference selected by output-mode.md.references/final-review.md before the pre-write review. It defines Phase 5.1 through 5.3.2: scoping synthesis, writing the file, unified-plan metadata, confidence mode, and deepening.references/reasoning-elevation.md, resolve the choice at this boundary, and follow it. Do not author until activation resolution has completed and any selected dispatch or transparent fallback has settled.settled-decision-invalidated, the decision, and the reason; do not resolve it silently.final-review.md defines.STOP. Read references/plan-handoff.md immediately before Phase 5.3.8 and 5.4 (document review and the handoff menu). Document review is mandatory for a Durable plan and the default is non-interactive (mode:non-interactive). In interactive software runs, ask exactly: "Plan ready at <absolute path to plan>. What would you like to do next?" Present its menu and wait. If the selection arrives after a user turn, reload references/plan-handoff.md before acting. Rendering the menu, receiving a selection, or announcing a route is not completion; execute the selected action.
references/agents/agent-native-planning-strategist.md (opens in a new tab)references/agents/architecture-strategist.md (opens in a new tab)references/agents/best-practices-researcher.md (opens in a new tab)references/agents/data-integrity-guardian.md (opens in a new tab)references/agents/data-migration-reviewer.md (opens in a new tab)references/agents/deployment-verification-agent.md (opens in a new tab)references/agents/framework-docs-researcher.md (opens in a new tab)references/agents/git-history-analyzer.md (opens in a new tab)references/agents/learnings-researcher.md (opens in a new tab)references/agents/pattern-recognition-specialist.md (opens in a new tab)references/agents/performance-oracle.md (opens in a new tab)references/agents/repo-research-analyst.md (opens in a new tab)references/agents/security-sentinel.md (opens in a new tab)references/agents/slack-researcher.md (opens in a new tab)references/agents/spec-flow-analyzer.md (opens in a new tab)references/agents/web-researcher.md (opens in a new tab)references/approach-altitude.md (opens in a new tab)references/bakeoff.md (opens in a new tab)references/deepening-workflow.md (opens in a new tab)references/final-review.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aigeekhub/aigeekskills --plugin compound-engineering35 skills in this plugin
/ce-babysit-prBabysits an open GitHub PR until merge-ready. Use when asked to watch a PR over time — not for one-shot comment resolution or one CI failure. GitHub (incl. Enterprise) only./ce-bakeoffDevelop independent competing solutions to a defined brief, compare them, and synthesize a winning approach. Use when choosing well requires developing alternatives beyond their current form. Use ce-pov to judge developed material and ce-ideate to discover opportunities./ce-brainstormExplore vague or ambitious ideas into a right-sized requirements-only unified plan. Use when the user wants to brainstorm or scope what to build. Not for executing already-specified work. Use ce-pov for a verdict on adopting a named external technology./ce-code-reviewReview a named diff or PR for bugs, regressions, tests, and standards. Use when asked to review code or when a shipping skill needs a review receipt. Use when asked to apply this review's findings locally. Use ce-resolve-pr-feedback for feedback already left on a PR./ce-commitCreate a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message./ce-commit-push-prCommit, push, and open a PR. Use when asked to ship/open a PR, or for PR-description-only flows like writing, rewriting, or describing a PR body.