/compound-engineering:ce-work [Plan path, work description, or recovery request with run id; blank uses latest] | [mode:return-to-caller [implementation_engine:<compact-json>] [implementation_run:<safe-id>] <plan path> for outer orchestrators]from compound-engineering
Execute a plan or concrete work prompt end-to-end. Use when implementing from a plan document, a spec path, or a clear build request; use ce-debug for open-ended bugs. Use when an outer orchestrator needs implementation and local verification only, without the shipping tail.
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; scripts run unread.
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, two specific blocking points below change; nothing else in this skill is overridden.
Phase 1's dirty-file question. When a unit needs a file that was already dirty, standalone mode
normally asks once whether to include or exclude it. Per Rule 2, default to exclude: the unit
proceeds without that file, and the exclusion is logged as a trail row (format in the box above)
(reversible=yes — nothing was committed that can't be added back next run) rather than asked.
Everything else that is a genuine judgment call and not already covered by a Rule (a settled
decision implementation-loop.md would otherwise ask about, an ambiguous plan-clarification point
in workspace-setup.md) resolves to the documented default and gets one trail row, per Rule 1.
What is deliberately NOT overridden: Phase 0's recovery run-id resolution ("If the run id is
missing, ask for it; never guess one") stays absolute. Guessing the wrong run risks mutating or
recovering the wrong work, which Rule 4 treats as not worth the risk regardless of autonomy. If the
run id is missing and autonomous mode is on, stop this unit cleanly, log why as a trail row (format in the box above) with reversible=no, and surface it in the PR description per the FENIX end-of-run rule — do not guess, and do not block waiting on a human either.
This skill already does most of doctrine section 3's work for you: the code-review completion gate (Phase 3-4) already refuses to report done without a receipt, which is Rule 3's proof requirement enforced structurally, and Return-to-Caller Mode is already architected for orchestrator-driven chaining. No edit was needed for either.
Bundled references must be read, never approximated. Resolve each reference or script path named below from this skill's loaded SKILL.md directory, using the full skill path the harness supplied, and never glob the target repository to find a bundled file. Read each reference when you enter the phase it governs; a read made before that phase does not satisfy it, and a reference this file says to read again is read again at its step even when already in context. If the harness does not expose the skill directory, or a required file cannot be read, stop before the action it governs and report which file is missing. Do not reconstruct its rules from memory; report the missing reference instead of continuing natively.
Recovery activation comes first. Before classifying the input as a plan, a path, a blank, or a bare prompt, recognize requests to resume, inspect, reap, or clean up an existing run. Recovery never dispatches a new worker, selects a new route, discovers another plan, reruns completed verification, or enters either shipping path. If the run id is missing, ask for it; never guess one.
Before any other input decision, read references/input-triage.md. It decides source resolution, control tokens, recovery, read-only discovery, plan readiness, non-code routing, blank input, and bare-prompt sizing. Three rules from it hold here:
ce-plan already sized in this session is executed, not planned again. A decision the user would weigh is asked as a question, never as a route back to ce-plan or ce-brainstorm.When triage selects Return-to-Caller Mode, read references/return-to-caller.md immediately and record that it governs how this run ends. If it cannot be read, stop before any mutation; do not fall back to standalone behavior.
Establish the workspace. Before moving branches, editing, dispatching, or committing, read references/workspace-setup.md. It decides the writable checkout, plan clarification, branch placement, the pre-work inventory, already-dirty files, and task setup. Never write without a writable canonical checkout, and never write on the real default branch unless the user explicitly directed that in this session.
Do not commit or publish anything the user did not offer. When a unit needs a file that was already dirty, standalone mode asks once whether to include or exclude that file. Return-to-Caller Mode neither asks nor edits it; it returns blocked, naming the collision and how to recover.
Resolve the engine, then strategy. After bounded plan intake and task derivation, but before selecting a unit for execution, writing, dispatching, or committing, read references/execution-engines.md and complete its route selection. It applies with or without a typed binding; native execution is eligible only when that reference selects it or exhausts an allowed fallback. The engine choice never changes which reference governs how the run ends.
If cross-model execution is selected, read references/cross-model-execution.md before any content or authority crosses to the other model. It defines controller initialization, the post-init engine lock, bounded egress, transactions, recovery, and receipts.
Before choosing inline, serial, or parallel execution, and before dispatching any worker, read references/execution-strategy.md. It decides scheduling, isolation, the packet each worker receives, worker lifecycle, and integration. The host orchestrator keeps authoritative verification and makes the canonical commits.
Before the first implementation write, including on the Trivial route, read references/implementation-loop.md. It decides how evidence is chosen, verification, when to stop a unit, incremental commits, following existing patterns, continuous testing, where simplification stops, UI work, progress tracking, and settled decisions.
The commit rule from this file stays in force throughout: every implementation commit names only that unit's owned files. A bare git commit can absorb the user's pre-existing index, so it is forbidden.
After the tasks and local verification are complete, standalone mode reads references/shipping-workflow.md before any quality check or delivery. It decides simplification, code-review receipts and fallbacks, leftover findings, final validation, and delivery.
Code-review completion gate (standalone only). Code review must actually happen before shipping. The run is not done, must not call a commit or shipping skill, and must not report that shipping is complete until the shipping reference has recorded either an actual completed ce-code-review receipt or one of its exact authorized skip states. Never substitute a mental self-review or findings already applied earlier. This rule does not apply in Return-to-Caller Mode.
Return-to-Caller Mode performs implementation and local verification only. It must not enter Phase 3-4 or run final simplification, code review, PR creation, CI watching, babysitting, or any other standalone shipping action; the caller owns those steps.
Immediately before emitting the result, read references/return-to-caller.md again. It alone defines the full return result, the check that evidence is complete, the route and model records, recovery semantics, and standalone_shipping_skipped: true. Do not build a complete result from this file.
If that required read fails after planning or implementation created state, preserve every changed file, commit, workspace, and controller record. Return the minimum blocked result from this file: status: blocked, plan_path, run_id when known, changed_state, blockers naming the missing reference, and recovery_path. Do not erase partial state, report success, or fall into the standalone shipping path.
references/agents/figma-design-sync.md (opens in a new tab)references/agents/implementation-worker.md (opens in a new tab)references/cross-model-execution.md (opens in a new tab)references/cross-model-work-eval.md (opens in a new tab)references/execution-engines.md (opens in a new tab)references/execution-strategy.md (opens in a new tab)references/implementation-loop.md (opens in a new tab)references/implementation-result-schema.json (opens in a new tab)references/input-triage.md (opens in a new tab)references/non-code-execution.md (opens in a new tab)references/return-to-caller.md (opens in a new tab)references/review-findings-followup.md (opens in a new tab)references/shipping-workflow.md (opens in a new tab)references/tracker-defer.md (opens in a new tab)references/work-intake.md (opens in a new tab)references/workspace-setup.md (opens in a new tab)scripts/cross-model-work.sh (opens in a new tab)scripts/peer-job-runner.py (opens in a new tab)scripts/unit-workspace.py (opens in a new tab)scripts/unit_workspace_ignored.py (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.