cook
Skill96 starsChanged 7 months agoMITView on GitHub
Feature implementation orchestrator — runs the TDD cycle understand → plan → test → implement → quality → verify → commit. Use when the user wants working code built or changed across more than a line or two: a new feature, a bug fix with an unknown blast radius, a refactor. Not for questions, reviews or trivial one-line edits; for a change that is already fully specified, use fix.
- Reads credentials
23 other projects use a version of this.
Adopted by
Most recently taken up by
- gntrs/workflowtheir own version, first seen Nov 29, 2026
- avinoamMO/let-claude-cooktheir own version, first seen Nov 29, 2026
- Lu1sDV/skillsmdtheir own version, first seen Nov 27, 2026
- whit3rabbit/anyllm-proxytheir own version, first seen Nov 22, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 16, 2026
- timothyjoh/skillstheir own version, first seen Nov 16, 2026
Used with
Projects with it also use csv-translator, upgrade-app and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
pass-with-high-scoreSkillcsv-translator
Specialized skill for translating large CSV files. It follows a multi-step process of planning, counting lines, splitting large files into manageable chunks, translating chunks, merging, and finally importing translations into Android resource files. Use when the user needs to translate a CSV file, especially large ones.
Also in 3 projects that use this
pass-with-high-scoreSkillupgrade-app
Automates the process of upgrading the app version. Bumps versionCode and versionName in build.gradle.kts, updates the changelog, verifies the build, commits, pushes, and creates a GitHub release. Use when the user says "upgrade app", "release new version", or "bump version".
Also in 3 projects that use this
OpenAnalystIncSkillmarkdown-novel-viewer
Also in 3 projects that use this
apetrovSkillgithub-issue-manager
Manage GitHub issues in the current repo via gh CLI. Use when asked to look up, inspect, design/plan, create, or implement a specific GitHub issue; or to update issue title/body/labels/state with explicit confirmation.
Also in 3 projects that use this
mrgoonieSkillweb-testing
Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
Also in 3 projects that use this
mrgoonieSkillweb-frameworks
Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.
Also in 3 projects that use this
- +4 more from mrgoonie
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- YunYouJun/cook★ 6.6ksame name
- pass-with-high-score/blockads-android★ 2.9ksame name
- pass-with-high-score/universal-installer★ 1.9ksame name
- pass-with-high-score/ANeko★ 600same name
- rjcorwin/cook★ 370same name
- typv/nest-turbo-starter★ 224same name
- avibebuilder/claude-prime★ 119same name
- DITlieD/ELAI-archive★ 24same name
- paulnsorensen/easy-cheese★ 19same name
- avinoamMO/let-claude-cook★ 15same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- adversarySkill
- asset-creatorSkill
- auditSkill
- autopsySkill
- baSkill
- brainstormSkill
- browser-pilotSkill
- completion-gateSkill
- constraint-checkSkill
- context-engineSkill
- context-packSkill
- convergeSkill
- councilSkill
- dbSkill
- debugSkill
- dependency-doctorSkill
- deploySkill
- designSkill
- diagramSkill
- doc-processorSkill
- docs-seekerSkill
- docsSkill
- fixSkill
- gitSkill
- graftSkill
- hallucination-guardSkill
- improve-architectureSkill
- incidentSkill
- integrity-checkSkill
- journalSkill
- launchSkill
- logic-guardianSkill
- marketingSkill
- mcp-builderSkill
- neural-memorySkill
- onboardSkill
- perfSkill
- planSkill
- preflightSkill
- problem-solverSkill
- quarantineSkill
- rescueSkill
- researchSkill
- retroSkill
- review-intakeSkill
- reviewSkill
- safeguardSkill
- sastSkill
- scaffoldSkill
- scope-guardSkill
- scoutSkill
- sentinel-envSkill
- sentinelSkill
- sequential-thinkingSkill
- session-bridgeSkill
- skill-forgeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
56 rules. 0 are common, 34 are distinctive, and 22 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
34
Distinctive
This author's own choices. Worth a look.
22
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 25
Before starting ANY implementation:
- Distinctive: line 38
Not every task needs every phase:
- Distinctive: line 55
Before selecting a workflow chain or phase set, compute the task's rigor level from risk signals.
- Distinctive: line 82
If rigor upgrades mid-task (e.g., scout reveals cross-module impact not obvious from description), announce: "Rigor upgrade: [signal …
- Distinctive: line 95
If any of these are detected mid-task, STOP and upgrade to Fast/Full mode.
- Very specific: line 104
SUB-SKILL: Use rune:sentinel-env — verify the environment can run the project before planning.
- Very specific: line 112
REQUIRED SUB-SKILLS: Use rune:scout. For non-trivial tasks, use rune:ba.
- Distinctive: line 114
Create TodoWrite with all applicable phases for this task
- Distinctive: line 122
Ask 2 questions before planning: (1) "What does success look like?" (2) "What should NOT change?"
- Very specific: line 128
Python async detection: if Python project detected, Grep for async indicators (async def, await, aiosqlite, aiohttp, asyncio.run).
- Distinctive: line 129
Explore-Before-Commit: If scout reveals multiple viable approaches (e.g., 2+ libraries, 2+ architectural patterns), do NOT commit to an …
- Distinctive: line 135
Gate: If scout finds the feature already exists → STOP and inform user.
- Very specific: line 149
Step 0.4 — Template Detection: If user passed --template <name>:
- Very specific: line 150
Search installed pack templates for the name: Glob for extensions/*/templates/<name>.md and extensions/pro-*/templates/<name>.md
- Very specific: line 151
If found: Read the template file → parse phases, signals, connections, acceptance criteria
- Very specific: line 153
Write plan files to .rune/plan-<template-name>.md + .rune/plan-<template-name>-phaseN.md
- Distinctive: line 155
If template not found: warn user and fall through to normal workflow
- Very specific: line 157
Step 0.5 — Cross-Project Recall: Call neural-memory (Recall Mode) with 3-5 topics relevant to the current task.
- Very specific: line 159
Use Glob to check for .rune/plan-*.md files
- Distinctive: line 160
If a master plan exists matching the current task:
- Very specific: line 165
Read the (reconciled) master plan → find first ⬚ Pending or 🔄 Active phase → load ONLY that phase file → announce "Resuming from Phase N" …
- Distinctive: line 166
If no master plan exists → proceed to Phase 1 as normal
- Very specific: line 168
Step 0.6 — Contract Load: Use Glob to check for .rune/contract.md.
- Distinctive: line 172
If no contract exists → proceed normally (contract is optional)
- Very specific: line 184
REQUIRED SUB-SKILL: Use rune:plan
- Distinctive: line 188
Create implementation plan: exact files to create/modify, change order, dependencies, active decision constraints
- Very specific: line 189
If multiple valid approaches exist → invoke rune:brainstorm for trade-off analysis
- Very specific: line 192
If feature workspace was created, write approved plan to .rune/features/<name>/plan.md
- Distinctive: line 215
NEVER load multiple phase files at once.
- Distinctive: line 216
If the coder model needs info from other phases, it's in the Cross-Phase Context section of the current phase file.
- Very specific: line 227
Write ONE test for the next behavior — vertical slicing required, see rune:test references/vertical-tdd.md.
- Distinctive: line 229
Run the test to verify it FAILS — expected: RED because implementation doesn't exist yet
- Very specific: line 232
Gate: Test MUST exist and MUST fail.
- Distinctive: line 236
Goal: Write the minimum code to make tests pass.
- Distinctive: line 245
Do NOT surrender. Do NOT tell user "no solution exists." Do NOT try a 4th variant of the same approach.
- Distinctive: line 246
Do NOT try a 4th variant of the same approach.
- Distinctive: line 247
MUST invoke brainstorm(mode="rescue") before giving up.
- Very specific: line 256
Signal dispatch ordering: When fix emits code.changed, 4 listeners react (preflight, sentinel, test, review).
- Distinctive: line 258
Stage 2: test (after Stage 1 passes — no point testing non-compliant code)
- Very specific: line 300
No truncated code files (// ..., // rest of code, bare ellipsis) — agent MUST complete all output
- Distinctive: line 303
Gate: If sentinel finds CRITICAL security issue → STOP, fix it, re-run.
- Distinctive: line 304
Gate: If completion-gate finds UNCONFIRMED claim → STOP, re-verify.
- Very specific: line 316
Before entering ANY Phase N+1, assert: Phase N completed in TodoWrite | gate condition met | no BLOCK from sub-skills | no unresolved …
- Very specific: line 322
REQUIRED SUB-SKILL: Use rune:verification — run lint, type check, full test suite, build.
- Very specific: line 337
RECOMMENDED SUB-SKILL: Use rune:git — stage specific files (git add <files>, NOT git add .), generate semantic commit message from diff.
- Distinctive: line 348
NEVER treat a Cancel/Pause signal as a Steer or NewTask.
- Distinctive: line 349
If ambiguous between Cancel and Steer → ask user: "Did you mean stop, or change approach?" </HARD-GATE>
- Distinctive: line 433
MUST run scout before planning
- Distinctive: line 434
MUST get user plan approval before writing code
- Distinctive: line 435
MUST write failing tests before implementation (TDD) unless explicitly skipped
- Distinctive: line 436
MUST NOT commit with failing tests
- Distinctive: line 437
MUST NOT modify files outside approved plan scope without user confirmation
- Distinctive: line 438
MUST run verification (lint + type-check + tests + build) before commit
- Distinctive: line 439
MUST NOT say "all tests pass" without showing actual test output
- Very specific: line 440
MUST NOT contradict .rune/decisions.md without explicit user override
- Distinctive: line 478
All applicable phases complete + Self-Validation passed:
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cook
Purpose
The primary orchestrator for feature implementation. Coordinates the entire L2 mesh in a phased TDD workflow. Handles 70% of all user requests — any task that modifies source code routes through cook.
<HARD-GATE>
Before starting ANY implementation:
1. You MUST understand the codebase first (Phase 1)
2. You MUST have a plan before writing code (Phase 2)
3. You MUST write failing tests before implementation (Phase 3) — unless explicitly skipped
This applies to EVERY feature regardless of perceived simplicity.
</HARD-GATE>Workflow Chains (Predefined)
Full detail moved to
references/modes.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:deploy,rune:fix,rune:graft,rune:incident,rune:journal,rune:neural-memory,rune:sentinel,rune:verification,rune:watchdog.
Phase Skip Rules
Not every task needs every phase:
Nano task: DO → VERIFY → DONE (no phases, auto-detected)
Simple bug fix: Phase 1 → 4 → 6 → 7
Small refactor: Phase 1 → 4 → 5 → 6 → 7
New feature: Phase 1 → 1.5 → 2 → 3 → 4 → 5 → 6 → 6.5 → 7 → 8 (6.5: conditional — requires requirements.md)
Complex feature: All phases (incl. 6.5) + brainstorm in Phase 2
Security-sensitive: All phases + sentinel escalated to opus
Fast mode: Phase 1 → 4 → 6 → 7 (auto-detected, see below)
Multi-session: Phase 0 (resume) → 3 → 4 → 5 → 6 → 7 (one plan phase per session)Determine complexity BEFORE starting using the Rigor Assessment below. Create TodoWrite with applicable phases.
Rigor Assessment (Progressive Scaling)
Before selecting a workflow chain or phase set, compute the task's rigor level from risk signals. This prevents over-engineering trivial changes while ensuring full ceremony for critical ones.
| Risk Signal | Weight | Detection |
| Files affected: 1 | 0 | Estimate from task description + scout |
| Files affected: 2-3 | +1 | |
| Files affected: 4+ | +3 | |
| Cross-module impact (changes span 2+ directories) | +2 | scout identifies touch points across boundaries |
| Security-sensitive code (auth, crypto, payments, secrets) | +3 | Keyword match in file paths or task description |
| Public API change (exports, routes, schema) | +2 | Task modifies interfaces consumed by external code |
| Database schema change | +2 | Task mentions migration, schema, ALTER, column |
| New dependency added | +1 | Task requires npm install or equivalent |
| Code will be imported by other modules | +1 | New exports or modifications to shared utilities |
Rigor level mapping:
| Score | Level | Maps To | Phases |
| 0 | Nano | nano chain | DO → VERIFY → DONE |
| 1-2 | Fast | fast mode | Phase 1 → 4 → 6 → 7 |
| 3-5 | Standard | bugfix / refactor | Phase 1 → 2 → 4 → 5 → 6 → 7 |
| 6-8 | Full | feature | Phase 1 → 1.5 → 2 → 3 → 4 → 5 → 6 → 7 → 8 |
| 9+ | Critical | security / full + adversary | All phases + sentinel@opus + adversary |
Rules:
- Security signal (+3) automatically floors rigor at Standard — NEVER nano/fast for security code
- User can override: "full pipeline" forces Full, "just do it" forces Nano
- If rigor upgrades mid-task (e.g., scout reveals cross-module impact not obvious from description), announce: "Rigor upgrade: [signal detected] — upgrading from Fast to Standard."
- Announce chosen level: "Rigor: Fast (score 2 — single file, no security)"
Nano Mode (Auto-Detect)
Full detail moved to
references/modes.md(progressive disclosure). Read that file before executing this section.
<HARD-GATE>
Nano mode MUST NOT be used for:
- Any code that will be imported/called by other code
- Security-relevant files (auth, crypto, payments, .env, secrets)
- Database schema changes
- Public API changes
If any of these are detected mid-task, STOP and upgrade to Fast/Full mode.
</HARD-GATE>Fast Mode (Auto-Detect)
Full detail moved to
references/modes.md(progressive disclosure). Read that file before executing this section.
Phase 0.5: ENVIRONMENT CHECK (First Run Only)
SUB-SKILL: Use rune:sentinel-env — verify the environment can run the project before planning.
Auto-trigger: no .rune/ dir (first run) OR build just failed with env-looking errors AND NOT fast mode. Skip silently on subsequent runs. Force with /rune env-check.
Phase 1: UNDERSTAND
Goal: Know what exists before changing anything.
REQUIRED SUB-SKILLS: Use rune:scout. For non-trivial tasks, use rune:ba.
- Create TodoWrite with all applicable phases for this task
- Mark Phase 1 as
in_progress - BA gate: Feature Request / Integration / Greenfield → invoke
rune:ba. Task > 50 words or business terms (users, revenue, workflow) → invokerune:ba. Bug Fix / simple Refactor → skip. BA produces.rune/features/<name>/requirements.mdfor Phase 2. Synthesis-mode auto-trigger: if user pasted a spec > 200 words, conversation has > 1000 words on this feature,.rune/features/<name>/requirements.mdalready exists (continuation), or user said "synthesize"/"just write the spec" → BA Step 1.4 activates Synthesis Mode (extract + cite sources + confirm), skipping the 5-question elicitation. Cook does NOT need to choose mode — BA detects automatically. - Decision enforcement:
Globfor.rune/decisions.md; if exists,Read+ extract constraints for Phase 2. Plan MUST NOT contradict active decisions without explicit user override. 4b. Contract enforcement: If.rune/contract.mdwas loaded in Phase 0.6, list applicable contract sections for this task (e.g.,contract.securityfor auth work,contract.datafor database changes). These rules constrain Phase 2 planning and Phase 4 implementation.
Phase 1 Step 3.5 — Clarification Gate
Ask 2 questions before planning: (1) "What does success look like?" (2) "What should NOT change?"
Skip if: bug fix with clear repro steps | user said "just do it" | fast mode + <10 LOC | hotfix chain active. Complexity revealed → escalate to rune:ba.
- Invoke scout to scan the codebase (Glob + Grep + Read on relevant files)
- Summarize: what exists, project conventions, files likely to change, active decision constraints
- Python async detection: if Python project detected,
Grepfor async indicators (async def,await,aiosqlite,aiohttp,asyncio.run). If ≥3 matches → flag as "async-first Python" — new code defaults toasync def - Explore-Before-Commit: If scout reveals multiple viable approaches (e.g., 2+ libraries, 2+ architectural patterns), do NOT commit to an approach yet. Instead:
- List alternatives with 1-line trade-off each
- Flag to Phase 2 (plan) for formal comparison
- Separating "thinking" (Phase 1) from "committing" (Phase 2) prevents premature lock-in
- Mark Phase 1 as
completed
Gate: If scout finds the feature already exists → STOP and inform user.
Phase 1.5: DOMAIN CONTEXT (L4 Pack Detection)
Full detail moved to
references/domain-context.md(progressive disclosure). Read that file before executing this section.
Phase 1.7: WORKFLOW ORCHESTRATION (Multi-Skill Sequences)
Full detail moved to
references/orchestration.md(progressive disclosure). Read that file before executing this section.
Phase 0: RESUME CHECK (Before Phase 1)
Goal: Detect if a master plan already exists for this task, or if a --template was specified. If so, skip Phase 1-2 and resume/load the workflow.
Step 0.4 — Template Detection: If user passed --template <name>:
- Search installed pack templates for the name:
Globforextensions/*/templates/<name>.mdandextensions/pro-*/templates/<name>.md - If found:
Readthe template file → parse phases, signals, connections, acceptance criteria - Generate a master plan from the template: each template phase becomes a plan phase
- Write plan files to
.rune/plan-<template-name>.md+.rune/plan-<template-name>-phaseN.md - Announce "Loading template:
<name>(<pack>)" → skip Phase 1, 1.5, 1.7, 2 → proceed to Phase 4 with Phase 1 of the template - If template not found: warn user and fall through to normal workflow
Step 0.5 — Cross-Project Recall: Call neural-memory (Recall Mode) with 3-5 topics relevant to the current task. Always prefix queries with the project name (e.g., "ProjectName auth pattern" not "auth pattern").
- Use
Globto check for.rune/plan-*.mdfiles - If a master plan exists matching the current task:
- Step 0.55 — Spec-Backfill Gate (HARD-GATE): Before resuming,
Glob.rune/features/*/requirements.md. If NO requirements doc exists AND the task is a Feature / Integration / Greenfield (same classification as the Phase 1 BA-gate — NOT a bug fix, refactor, or trivial change), the plan was produced without a spec (e.g., abrainstorm → planbypass that skippedba). Do NOT resume blindly:- Invoke
rune:bato backfill requirements (5-question elicitation, or Synthesis Mode if the plan + conversation already carry enough context) → produces.rune/features/<name>/requirements.md. - Re-invoke
rune:planto reconcile the existing plan against the new spec — if the plan contradicts a locked Decision or misses a requirement, revise the affected phase files and get user re-approval (Re-Planning protocol). - THEN resume. For Bug Fix / Refactor / trivial tasks, skip this gate — no spec is expected.
- Invoke
- Read the (reconciled) master plan → find first
⬚ Pendingor🔄 Activephase → load ONLY that phase file → announce "Resuming from Phase N" → skip to Phase 4
- Step 0.55 — Spec-Backfill Gate (HARD-GATE): Before resuming,
- If no master plan exists → proceed to Phase 1 as normal
Step 0.6 — Contract Load: Use Glob to check for .rune/contract.md. If it exists:
Readthe contract file and parse each## sectionas a named rule set- Hold contract rules in context — they apply as hard gates throughout all phases
- Any code change that violates a contract rule → STOP and inform user before proceeding
- If no contract exists → proceed normally (contract is optional)
<HARD-GATE>
Contract violations are NON-NEGOTIABLE. If `.rune/contract.md` exists and a planned or implemented change violates any rule, cook MUST stop and report the violation. The user must explicitly override ("ignore contract rule X") to proceed.
</HARD-GATE>This enables multi-session workflows: Opus plans once → each session picks up the next phase.
Phase 2: PLAN
Goal: Break the task into concrete implementation steps before writing code.
REQUIRED SUB-SKILL: Use rune:plan
- Mark Phase 2 as
in_progress - Feature workspace (opt-in) — for non-trivial features (3+ phases), suggest creating
.rune/features/<feature-name>/withspec.md,plan.md,decisions.md,status.md. Skip for simple bug fixes, fast mode. - Create implementation plan: exact files to create/modify, change order, dependencies, active decision constraints
- If multiple valid approaches exist → invoke
rune:brainstormfor trade-off analysis - Frontend detection — if task touches
.tsx/.jsx/.vue/.svelte/.css, component files, or mentions "UI/page/screen/design/layout/landing": invokerune:designBEFORE plan approval. Pass hintmode: "tweaks-default"— design proposes ONE opinionated default per.rune/design-system.md(Step 2.7), not a 5-option menu. User replies with tweaks ("more professional", "darker") rather than picking from a list. If.rune/design-system.mdis missing, design creates it first. - Present plan to user for approval
- If feature workspace was created, write approved plan to
.rune/features/<name>/plan.md - Mark Phase 2 as
completed
Gate: User MUST approve the plan before proceeding. Do NOT skip this.
Phase 2.5: RFC GATE (Breaking Changes Only)
Full detail moved to
references/plan-gates.md(progressive disclosure). Read that file before executing this section.
<HARD-GATE>
Breaking change without RFC = BLOCKED. No exceptions.
"It's just a small change" is the #1 excuse for production incidents from unreviewed breaking changes.
</HARD-GATE>Phase 2.5: ADVERSARY (Red-Team Challenge)
Full detail moved to
references/plan-gates.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:adversary.
Phase-Aware Execution (Master Plan + Phase Files)
Full detail moved to
references/orchestration.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:plan.
<HARD-GATE>
NEVER load multiple phase files at once. One phase per session = small context = better code.
If the coder model needs info from other phases, it's in the Cross-Phase Context section of the current phase file.
</HARD-GATE>Phase 3: TEST (TDD Red)
Goal: Define expected behavior with failing tests BEFORE writing implementation.
REQUIRED SUB-SKILL: Use rune:test
- Mark Phase 3 as
in_progress - Eval definitions (Full/Critical rigor only): Before writing tests, define capability evals (pass@k) and regression evals (pass^k) in
.rune/evals/<feature>.md. Capability evals test "can the system do this new thing?" — regression evals test "did we break existing behavior?" Skip for Fast/Standard rigor levels. - Write ONE test for the next behavior — vertical slicing required, see
rune:testreferences/vertical-tdd.md. Bulk-writing tests = horizontal violation, blocks Phase 4 - Python async pre-check (if async-first Python flagged in Phase 1): verify
pytest-asynciois installed andasyncio_mode = "auto"is inpyproject.toml— if missing, warn user before writing async tests - Run the test to verify it FAILS — expected: RED because implementation doesn't exist yet
- Mark Phase 3 as
completed(one cycle); Phase 4 implements that one cycle, then loop returns here for the next test
Gate: Test MUST exist and MUST fail. If test passes without implementation → test is wrong, rewrite. If 2+ tests staged before any GREEN → tdd.horizontal.violation signal, unwind to one test.
Phase 4: IMPLEMENT (TDD Green)
Goal: Write the minimum code to make tests pass.
REQUIRED SUB-SKILL: Use rune:fix
Reuse Ladder (climb before you write)
Full detail moved to
references/reuse-ladder.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:brainstorm,rune:debug,rune:plan.
<HARD-GATE>
Do NOT surrender. Do NOT tell user "no solution exists."
Do NOT try a 4th variant of the same approach.
MUST invoke brainstorm(mode="rescue") before giving up.
</HARD-GATE>Phase 5: QUALITY (Staged)
Goal: Catch issues before they reach production.
Quality checks run in two stages — spec compliance gates code review. Reviewing code quality before verifying it matches the spec wastes effort on code that may need rewriting.
Signal dispatch ordering: When fix emits code.changed, 4 listeners react (preflight, sentinel, test, review). Cook coordinates dispatch order — do NOT let all 4 fire simultaneously:
- Stage 1: preflight + sentinel (parallel — independent checks)
- Stage 2: test (after Stage 1 passes — no point testing non-compliant code)
- Stage 3: review (after test passes — review verified code only)
STAGE 1 (parallel):
Launch 5a (preflight) + 5b (sentinel) simultaneously.
Wait for BOTH to complete.
If 5a returns BLOCK → fix spec gaps, re-run 5a. Code review CANNOT start on non-compliant code.
If 5b returns BLOCK → fix security issue, re-run 5b.
STAGE 2 (after Stage 1 passes):
Launch 5c (review) + 5d (completion-gate) simultaneously.
If any returns BLOCK → fix findings, re-run the blocking check only.Remediation Cycle Counter
Full detail moved to
references/quality-loop.md(progressive disclosure). Read that file before executing this section.
Upstream Inconsistency Protocol
Full detail moved to
references/quality-loop.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:ba,rune:plan.
5a. Preflight (Spec Compliance + Logic) — STAGE 1
REQUIRED SUB-SKILL: Use rune:preflight
- Spec compliance: compare approved plan vs actual diff
- Logic review, error handling, completeness
- Must pass before 5c (review) can start — no point reviewing code quality if it doesn't match the spec
5b. Security — STAGE 1
REQUIRED SUB-SKILL: Use rune:sentinel
- Secret scan, OWASP check (no injection/XSS/CSRF), dependency audit
5c. Code Review — STAGE 2
REQUIRED SUB-SKILL: Use rune:review
- Pattern compliance, code quality, performance bottlenecks
- Reviewer reads code independently — does NOT rely on implementer's claims
- Reviewer isolation (when invoked via
team): The review agent MUST be a separate context window from the implementing agent. Author reasoning contaminates review — the reviewer should never have seen the implementation's reasoning chain. Sonnet implements, a fresh Sonnet reviews.
5d. Completion Gate — STAGE 2
REQUIRED SUB-SKILL: Use rune:completion-gate
- Validate agent claims match evidence trail (tests ran, files changed, build passed)
- No truncated code files (
// ...,// rest of code, bare ellipsis) — agent MUST complete all output - Any UNCONFIRMED claim → BLOCK
Gate: If sentinel finds CRITICAL security issue → STOP, fix it, re-run. Non-negotiable. Gate: If completion-gate finds UNCONFIRMED claim → STOP, re-verify. Non-negotiable.
Per-Phase Rules (Project-Specific)
Full detail moved to
references/quality-loop.md(progressive disclosure). Read that file before executing this section.
Checkpoint Protocol (Opt-In)
Invoke rune:session-bridge after Phase 2, 4, and 5 to save intermediate state. OPT-IN — activate only if task spans 3+ phases, context-watch is ORANGE, or user explicitly requests checkpoints. Before spawning subagents, invoke rune:context-pack to create structured handoff briefings.
Phase Transition Protocol (MANDATORY)
Before entering ANY Phase N+1, assert: Phase N completed in TodoWrite | gate condition met | no BLOCK from sub-skills | no unresolved CRITICAL findings. If any fails → STOP, log "BLOCKED at Phase N→N+1: [assertion]", fix, re-check.
Key transitions: 1→2: scout done | 2→3: plan approved | 3→4: failing tests exist | 4→5: all tests pass | 5→6: no CRITICAL findings | 6→6.5: lint+types+build green | 6.5→7: convergence.clean or documented escalation (features with requirements.md; others pass through).
Phase 6: VERIFY
REQUIRED SUB-SKILL: Use rune:verification — run lint, type check, full test suite, build. Then rune:hallucination-guard to verify imports and API signatures. ALL checks MUST pass before commit.
Quickstart execution: if .rune/features/<name>/quickstart.md exists (plan Step 3.7 boundary artifact), execute its validation blocks — run each command, compare against its Expect line. Any mismatch = verification FAIL (treat like a failing test). If the environment cannot run a block (no browser, no DB), SKIP it with the reason named in the Cook Report — a skipped quickstart is visible debt, never silent.
Phase 6.5: CONVERGE (Spec↔Code Gap Scan)
Full detail moved to
references/converge-phase.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:converge.
<HARD-GATE>
A P1 story with a CRITICAL convergence gap (missing/contradicts) MUST NOT be committed as "done."
Either remediate within the round cap, or escalate with the gap documented — never claim completion over a known dead path.
</HARD-GATE>Phase 7: COMMIT
RECOMMENDED SUB-SKILL: Use rune:git — stage specific files (git add <files>, NOT git add .), generate semantic commit message from diff. If working from master plan: update phase status 🔄 → ✅, announce next phase or "All phases complete."
Phase 8: BRIDGE
Full detail moved to
references/bridge-phase.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:session-bridge.
Autonomous Loop Patterns
Full detail moved to
references/autonomous-patterns.md(progressive disclosure). Read that file before executing this section.
<HARD-GATE>
NEVER treat a Cancel/Pause signal as a Steer or NewTask. User safety signals take absolute priority.
If ambiguous between Cancel and Steer → ask user: "Did you mean stop, or change approach?"
</HARD-GATE><HARD-GATE>
"Bad work is worse than no work." Cook MUST produce this report rather than attempting a 4th variant of a failing approach. Escalating is not failure — shipping broken code is.
</HARD-GATE>Deviation Rules
Full detail moved to
references/recovery.md(progressive disclosure). Read that file before executing this section.
Error Recovery
Full detail moved to
references/recovery.md(progressive disclosure). Read that file before executing this section.
Analysis Paralysis Guard
Full detail moved to
references/paralysis-guard.md(progressive disclosure). Read that file before executing this section.
<HARD-GATE>
5+ consecutive read-only tool calls (Read, Grep, Glob) without a single write action (Edit, Write, Bash) = STUCK.You MUST either:
- Act — write code, run a command, create a file
- Report BLOCKED — state the specific missing piece: "Cannot proceed because [X]"
Stuck patterns (all banned):
- Reading 10+ files to "fully understand" before acting
- Grepping every variation of a string across the entire repo
- Reading the same file twice in one investigation
- "Let me check one more thing" — repeated after 5 reads
A wrong first attempt that produces feedback beats perfect understanding that never ships.
</HARD-GATE>
Called By (inbound)
- User:
/rune cookdirect invocation — primary entry point team(L1): parallel workstream execution (meta-orchestration)
Calls (outbound)
| Phase | Sub-skill | Layer | Purpose |
| 0 / 8 | neural-memory | ext | Recall context at start; capture learnings at end |
| 0.5 | sentinel-env | L3 | Environment pre-flight (first run only) |
| 1 | scout | L2 | Scan codebase before planning |
| 1 | onboard | L2 | Initialize project context if no CLAUDE.md |
| 1 | ba | L2 | Requirement elicitation for features |
| 1 | logic-guardian | L2 | Conditional: when .rune/logic-manifest.json exists — protect complex business logic before any edits |
| 2 | plan | L2 | Create implementation plan |
| 2 | brainstorm | L2 | Trade-off analysis / rescue mode |
| 2 | design | L2 | UI/design phase for frontend features — invoke with mode: "tweaks-default" (one opinionated default + accept natural-language tweaks, not a 5-option menu) |
| 2.5 | adversary | L2 | Red-team challenge on approved plan |
| 3 | test | L2 | Write failing tests (RED phase) |
| 4 | fix | L2 | Implement code changes (GREEN phase) |
| 4 | debug | L2 | Unexpected errors (max 3 loops) |
| 4 | db | L2 | Schema changes detected in diff |
| 4 | worktree | L3 | Worktree isolation for parallel implementation |
| 5a | preflight | L2 | Spec compliance + logic review |
| 5b | sentinel | L2 | Security scan |
| 5c | review | L2 | Code quality review |
| 5 | scope-guard | L3 | Verify changed files match approved plan scope (flag out-of-scope files before commit) |
| 5 | perf | L2 | Performance regression check (optional) |
| 5 | audit | L2 | Project health audit when scope warrants |
| 5 | review-intake | L2 | Structured review intake for complex PRs OR Issue Triage Mode for issue tracker items (state machine: needs-triage / needs-info / ready-for-agent / ready-for-human / wontfix). When external feedback source is an issue (not PR comment), review-intake auto-detects and runs Issue Triage Mode — emits triage.classified + agent.brief.ready (for AFK pickup) |
| 5 | sast | L3 | Static analysis security testing |
| 5d | completion-gate | L3 | Validate agent claims against evidence trail |
| 5 | constraint-check | L3 | Audit HARD-GATE compliance across workflow |
| 6 | verification | L3 | Lint + types + tests + build |
| 6 | hallucination-guard | L3 | Verify imports and API calls are real |
| 6.5 | converge | L3 | Spec↔code gap scan for features with requirements.md — dead buttons, missing backends, contradicted decisions |
| 7 | journal | L3 | Record architectural decisions |
| 8 | session-bridge | L3 | Save context for future sessions |
| any | context-pack | L3 | create structured handoff briefings before spawning subagents |
| any | skill-forge | L2 | When new skill creation detected during cook |
| 1.5 | L4 extension packs | L4 | Domain-specific patterns when stack matches |
Data Flow
Full detail moved to
references/contracts.md(progressive disclosure). Read that file before executing this section.
Constraints
- MUST run scout before planning
- MUST get user plan approval before writing code
- MUST write failing tests before implementation (TDD) unless explicitly skipped
- MUST NOT commit with failing tests
- MUST NOT modify files outside approved plan scope without user confirmation
- MUST run verification (lint + type-check + tests + build) before commit
- MUST NOT say "all tests pass" without showing actual test output
- MUST NOT contradict
.rune/decisions.mdwithout explicit user override
Mesh Gates
Full detail moved to
references/contracts.md(progressive disclosure). Read that file before executing this section. Mesh links used there:rune:ba,rune:scout.
Structured Output Contract (Prompt-as-API Pattern)
Full detail moved to
references/structured-output.md(progressive disclosure). Read that file before executing this section.
Output Format
Full detail moved to
references/contracts.md(progressive disclosure). Read that file before executing this section.
Returns
Full detail moved to
references/contracts.md(progressive disclosure). Read that file before executing this section.
Document Ownership
Full detail moved to
references/contracts.md(progressive disclosure). Read that file before executing this section.
Anti-Patterns
Full detail moved to
references/anti-patterns.md(progressive disclosure). Read that file before executing this section.
Sharp Edges
<MUST-READ path="references/sharp-edges.md" trigger="before declaring done — review all 18 failure modes"/>CRITICAL failures (always check): skipping scout | writing code without plan approval | "done" without evidence trail | surrendering without Approach Pivot Gate | breaking change without RFC | treating Cancel/Pause as scope change.
Self-Validation
Full detail moved to
references/contracts.md(progressive disclosure). Read that file before executing this section.
Done When
All applicable phases complete + Self-Validation passed:
- User approved plan | All tests PASS (output shown) | preflight+sentinel+review PASS | build green
- Convergence:
convergence.cleanOR skip announced (no requirements.md) OR escalation documented — never silent - Cook Report emitted with commit hash | Session state saved to .rune/ via session-bridge
Cost Profile
~$0.05-0.15 per feature. Haiku for scanning (Phase 1), sonnet for coding (Phase 3-4), opus for complex planning (Phase 2 when needed).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

