cook
Implement an approved spec or focused task through stale-safe source edits. Use this skill when the user says "implement this", "cook this spec", or "fix this…
by paulnsorensen★ 20 GitHub stars
Install cook in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
/cook
Contract
cook(spec_ref, correction = false) -> handoff(next = age | mold | done).
Cook returns next: mold for a specification failure.
A fan run also returns next: mold for a stalled remediation scope, a curd that does not pass, or partial coverage.
Cook does not require a failing test first and does not load a gate receipt.
For behavior work, Cook owns first acceptance coverage before Press; see references/tdd-loop.md § Inner TDD.
This is a reported obligation, not a gate.
For documentation, refactor, test, or appearance work, change that surface and verify it directly.
Use correction = true only for an active Press finding or coverage_gap; see references/press-loop.md.
Do not weaken an existing test.
Phase entry
Run python3 skills/cook/scripts/cook.pyz wheypoint-resolve --ref <slug>.
authoritative uses the record; its working_context is the first batched tilth_read.
not-found proceeds cold; legacy shows its source and slug, then proceeds.
gated, ambiguous, and error stop and show the payload.
Show advisory stale-commit and grounded-path-missing findings.
Keep its record.revision_id as <base> (§ Base revision).
Inputs
Accept a pasted spec or issue, focused acceptance criteria, or an unambiguous task.
Read explicit spec paths verbatim.
Resolve a bare slug to path from python3 skills/cook/scripts/cook.pyz artifact-path specs <slug>.
A Mold spec path or finalized direct inputs enter through § Mold-to-Cook ingress.
Flags:
--autochains/age → /cureafter the in-Cook Press loop.--prototyperuns a plan → spike → check loop, then stabilizes; readreferences/prototype-mode.md.--hardpropagates through/plate.--open-prlets terminal/platepublish. Auto mode never adds this flag.--resume <slug>resumes a typed fan handoff and its referenced artifacts.--result <path>runs a ready Mold result.--spec <spec-path>names the selected Mold spec. A plan whosedependenciescrosslanding.layersis refused before coder dispatch.
Optional context payload:
handoff_context.wiki_hitscarries{page, line, why}entries from the repository wiki corpus. The key is optional, and its default is absent. Reject an entry that omitspage,line, orwhy. Show every accepted hit in the Contract step so the user can challenge a stale decision; prefer these decisions over an invented approach.../cheese/references/handoff-gate.mddefines the payload.
Read references/auto-mode.md, references/fan-pathway.md, and ../cheese/references/formatting.md for these policies.
Standalone fast-path
/cook bypasses /mold only when the inputs, outputs, scope, and verification are clear.
The task must name a bug or call site in one or two files and have a failing test or an expected-output check.
No leverage trigger may fire; see ../cheese/references/routing-policy.md § Leverage triggers.
Derive a slug, then restate the Contract.
Route the task to /mold if an ambiguity check fails.
Flow
- Contract — Confirm behavior, non-goals, scope, and gates.
Print the shape-check block from
../mold/references/shape-check.mdinside the Contract, or the lineshape check skipped: single-module changepershape-check.md§ When to skip. No block, no code. If.cheese/glossary/<slug>.mdexists, use its canonical terms. - Implement — Write the test first where it fits; no gate requires it. For non-behavior work, change only the applicable surface.
- Validate — Run the relevant quality gates again. Read the complete gate output; for non-behavior work, verify the requested path.
- Taste-test — Use a fresh-context review for multi-file or public-surface diffs.
Otherwise use an inline review, limited to two rounds.
Read
references/tdd-loop.mdfor details. - Press loop — For behavior work, Cook dispatches a fresh-context Press agent; no menu.
Read
references/press-loop.md. Non-behavior work skips this step. - Hand off — Write the package report and slug, then route to
/age → /cure.
Fan pathway
/cook selects one of three shapes from the typed planner result.
Read references/fan-pathway.md for topology and lifecycle.
Fast path. Use the single-coder path for one low- or medium-blast-radius curd.
Curded. Require a bound spec_ref, planner_result_ref, plan_ref, and exact MoldCookCoverage from a ready Mold finalization. The host validates them before execute_bound_plan dispatches any writer.
Run cook(CurdPlan) → reviewer(age) with confirmed diagnosis and CureDiagnosisBinding through the progress-aware fan state machine until clean, stalled, or blocked.
Each curd's Cook loop runs its own Press loop.
The barrier runs Cook's integrated accepta
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- evals/autoimprove.json
- evals/journey-gates.json
- evals/journeys.json
- evals/journeys.md
- references/auto-mode.md
- references/commands.md
- references/evals.md
- references/fan-pathway.md
- references/package-report.md
- references/press-loop.md
- references/prototype-mode.md
- references/quality-gates.md
- references/tdd-loop.md
- references/writer-views.md
- scripts/cook.pyz
- wedge.toml
FAQ
What does the cook skill do?
Implement an approved spec or focused task through stale-safe source edits. Use this skill when the user says "implement this", "cook this spec", or "fix this bug". Use it for `/cook .cheese/specs/<slug>.md`. Also use it when the user says "go" with clear acceptance criteria. Run it alone for an unambiguous task. Use `--prototype` when the user says "prototype this", "go prototype it", or "spike this out" and wants to refine the result round by round. A spec helps but is not required. Do not use it for fuzzy planning (`/mold`). Do not use it for no-write discussion (`/culture`) or review-only work (`/age`).
How do I install the cook skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the cook skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…