cook
Orchestrate coding agents with review loops, parallel races, repeat passes, and task-list progression. Use when: the user asks to "cook" something, wants iterative refinement, wants to race multiple approaches, or needs to work through a task list.
Best use case
cook is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Orchestrate coding agents with review loops, parallel races, repeat passes, and task-list progression. Use when: the user asks to "cook" something, wants iterative refinement, wants to race multiple approaches, or needs to work through a task list.
Teams using cook should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How cook Compares
| Feature / Agent | cook | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Orchestrate coding agents with review loops, parallel races, repeat passes, and task-list progression. Use when: the user asks to "cook" something, wants iterative refinement, wants to race multiple approaches, or needs to work through a task list.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Cook — Agent Orchestration CLI
`cook` wraps your coding agent (Claude Code, Codex, OpenCode) in composable workflows: review loops, repeat passes, parallel races, and task-list orchestration.
**Important: Never use `--sandbox none`.** The default sandbox mode (`agent`) is correct when running as a skill. It preserves the parent agent's security boundaries.
## Quick reference
```sh
# Single work call
cook "Implement dark mode"
# Review loop (work → review → gate, repeat until DONE)
cook "Implement dark mode" review
# Repeat 3 times
cook "Improve the design" x3
# Race 3 versions, pick the best
cook "Implement dark mode" v3 pick "cleanest implementation"
# Two approaches, pick the winner
cook "Auth with JWT" vs "Auth with sessions" pick "best security"
# Work through a task list
cook "Do the next task in PLAN.md" \
ralph 5 "DONE if all tasks complete, else NEXT"
# Everything composes
cook "Implement dark mode" review v3 "cleanest result"
```
## Operators
Operators compose left to right. Loop operators wrap everything to their left.
### Loop operators
| Operator | Effect |
|----------|--------|
| `review` | Add a review→gate loop (up to 3 iterations by default) |
| `review N` | Review loop with up to N iterations |
| `xN` / `repeat N` | Run work N times sequentially |
| `ralph N "gate"` | Outer gate for task-list progression (DONE/NEXT) |
Custom review/gate prompts (positional shorthand):
```sh
cook "work prompt" "review prompt" "gate prompt"
cook "work prompt" "review prompt" "gate prompt" "iterate prompt" N
```
### Composition operators
| Operator | Effect |
|----------|--------|
| `vN` / `race N` | N identical runs in parallel worktrees |
| `vs` | 2+ different runs in parallel worktrees |
| `pick ["criteria"]` | Resolver: pick one winner (default) |
| `merge ["criteria"]` | Resolver: synthesize all results |
| `compare` | Resolver: write comparison doc, no merge |
### Composition examples
```sh
cook "A" vs "B" pick "criteria" -y # two approaches, pick winner
cook "A" vs "B" merge "best of both" -y # synthesize both
cook "A" vs "B" compare # comparison doc only (no prompts)
cook "A" v3 "criteria" -y # race 3, implicit pick
cook "A" x3 vs "B" x3 pick "best" -y # per-branch loop operators
```
> **Agents must always pass `-y`** on composition commands to avoid hanging on prompts.
## Flags
```
-y, --yes Auto-accept all prompts (REQUIRED for agents)
--max-iterations N Max review iterations
--work-agent AGENT Per-step agent override
--review-agent AGENT
--work-model MODEL Per-step model override
--review-model MODEL
--hide-request Hide the templated request panel
```
**IMPORTANT: Always use `-y` when invoking cook as an agent.** Composition commands (v3, vs, pick, merge) prompt for confirmation ("Apply Run N?", "Remove worktrees?"). Without `-y`, the process hangs waiting for interactive input that agents cannot provide. This flag auto-accepts all prompts.
## Prerequisites
Before running cook:
1. The project must have `cook init` run (creates COOK.md, .cook/config.json)
2. For composition operators (vs, vN), the working tree must be clean (commit first)
## When to use cook vs doing the work directly
Use cook when:
- The user explicitly asks to "cook" or "let it cook"
- Multiple iterations of refinement are needed (review loops)
- Multiple competing approaches should be tried (races, vs)
- A task list needs sequential progression (ralph)
- The user wants autonomous completion without manual review cycles
Do the work directly when:
- It's a simple, one-shot change
- The user wants to review each step interactivelyRelated Skills
cookiy
Cookiy provides AI agents with comprehensive user research capabilities, enabling them to design studies, conduct AI-moderated interviews, recruit participants, and generate insight reports using natural language. It manages the underlying Cookiy MCP server for seamless operation.
setup-browser-cookies
Import cookies from your real Chromium browser into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages. Use when asked to "import cookies", "login to the site", or "authenticate the browser". (gstack)
setup-browser-cookies
Import cookies from your real Chromium browser into the headless browse session. Interactive picker UI lets you select which cookie domains to import. Use before QA testing authenticated pages. Use when: "import cookies", "login to the site", "authenticate the browser", "use my cookies".
buy-cookies
Buy cookies, cookie dough, and cookie gift boxes through Lobster Cookies. Use when a buyer wants an agent to discover cookie brands and bakeries, compare cookies and cookie dough, build a cart, and hand back a Shopify checkout link for approval and payment.
cookie-security-analyzer
Cookie Security Analyzer - Auto-activating skill for Security Fundamentals. Triggers on: cookie security analyzer, cookie security analyzer Part of the Security Fundamentals skill category.
feature-engineering-cookbook
Feature engineering techniques catalog: numeric/categorical/time-series/text transformations, feature selection, feature store design. Use this skill for data preprocessing and feature design involving 'feature engineering', 'variable transformation', 'encoding', 'scaling', 'feature selection', 'feature store', 'feature importance', etc. Enhances the data-engineer's feature engineering capabilities. Note: model design and training management are outside this skill's scope.
cookie-policy-page-generator
When the user wants to create or optimize a cookie policy page. Also use when the user mentions "cookie policy," "cookies," "cookie consent," "GDPR cookies," "cookie banner," "cookie notice," "tracking cookies," or "cookie settings." For legal overview, use legal-page-generator.
cookie-policy-malik-taiar
Guide for drafting cookie policies compliant with GDPR and the ePrivacy Directive. Includes CNIL 2020 recommendations, a reference template, and best practices. Use when drafting or revising a cookie policy for a website or application.
space-cooking-adventure
太空料理 - 轻松搞笑的章节,Stella尝试用盖亚食材创造美味食物,结果既有灾难也有惊喜
cookbook-audit
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
cookmode-v2-source-of-truth
Documents and explains the CookMode V2 codebase as it exists. Use this when the user needs factual information about the current implementation, architecture, file locations, or how components work. DOES NOT suggest improvements unless explicitly asked.
cookoff
This skill should be used when moving from design to implementation. Triggers on "let's build", "implement this", "looks good let's code", "ready to implement". Presents options for parallel agent competition (cookoff), single subagent, or local implementation. Each agent creates own plan from shared design for genuine variation.