Command Palette

Search for a command to run...

Back to skills
skill № 52235

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…

FreeRuns bundled scripts
paulnsorensenby 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
Sign up freeI already have an account

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:

  • --auto chains /age → /cure after the in-Cook Press loop.
  • --prototype runs a plan → spike → check loop, then stabilizes; read references/prototype-mode.md.
  • --hard propagates through /plate.
  • --open-pr lets terminal /plate publish. 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 whose dependencies cross landing.layers is refused before coder dispatch.

Optional context payload:

  • handoff_context.wiki_hits carries {page, line, why} entries from the repository wiki corpus. The key is optional, and its default is absent. Reject an entry that omits page, line, or why. 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.md defines 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

  1. Contract — Confirm behavior, non-goals, scope, and gates. Print the shape-check block from ../mold/references/shape-check.md inside the Contract, or the line shape check skipped: single-module change per shape-check.md § When to skip. No block, no code. If .cheese/glossary/<slug>.md exists, use its canonical terms.
  2. Implement — Write the test first where it fits; no gate requires it. For non-behavior work, change only the applicable surface.
  3. Validate — Run the relevant quality gates again. Read the complete gate output; for non-behavior work, verify the requested path.
  4. 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.md for details.
  5. 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.
  6. 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

Full SKILL.md on GitHub

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

Compare cook with