# Repository Briefing: Leonxlnx/cook
> Source: https://repoforai.com/repo/Leonxlnx/cook (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Leonxlnx/cook
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B+ (65/100 · Maintenance 26/35 · Adoption 13/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 1,035 ★ total (+36 24h / +168 7d) · 72 forks
- **Topics**: `agent-skills`, `claude-code`, `codex`, `prompting`, `threejs`
- **When to Use**: Best for: Teams building procedural 3D scenes, films, games, or UI that can supply shot-level references, budget for repeated renders and critiques, and assign a reviewer to approve the final stills. Skip if: You need a registered MCP service, deterministic image-diff acceptance, a runtime-enforced spending cap, or a quick implementation with no need for repeated visual review.

## Overview
```text
### Architecture & Core Mechanics
Cook is a Markdown-defined workflow executed by a coding agent. The supplied MCP classification does not match the integration shown here: `SKILL.md` is the skill entrypoint, not an MCP server, and no server transport or registration configuration is identified. The `references/` directory divides the workflow into intake, target and scoring, critic rounds, production rules, and delivery. `templates/brief.md` is the structured intake form, and `templates/ROUNDS.md` provides the round ledger.

The host agent does the building, rendering, and critique work. It collects decisions and defaults up front, turns references into a shot plan, then iterates through build, stills, comparison, critique, and repair. Project state lives under `cook/`, with `cook/ROUNDS.md` recording rounds so the work can resume after a context reset or move to another agent. The separate JavaScript helper, `scripts/side-by-side.mjs`, assembles visual comparisons; it does not orchestrate the loop.

### Key Capabilities & Differentiators
Cook makes reference matching reviewable shot by shot. It maps reference images to shots and calls for frame-by-frame analysis of motion references. The rubric separates composition, lighting, color, materials, near and far detail, and motion. Fresh-context critics rate the stills without carrying over the build history, and the user's assessment calibrates those ratings. Stills are sent after each round without stopping the work; final video rendering waits for user approval.

The workflow covers procedural 3D, films, launch videos, games, and UI, with a default policy of no external assets. Athenaion illustrates the scale a run can reach: a Claude Opus 5.5 build against nine AI-generated references, about 45 hours, 55 subagents with up to 12 in parallel, and 4K rendering on an integrated AMD Radeon 780M. These figures describe one project, not a performance benchmark, required configuration, or limit on model compatibility.

### Trade-offs & Limitations
Compared with a generic agent goal or long-run mode, Cook adds up-front planning and repeated rendering in exchange for a shot list, an explicit rubric, a round ledger, and a final approval gate. These mechanics help when the quality gap is visual and hard to describe in one prompt. For a small UI patch or a job with objective acceptance tests, direct implementation and automated checks are simpler. Critic scores are subjective: a target such as 99.9% is a rubric setting, not measured image similarity or a guarantee of convergence.

The workflow specifies time floors or caps and usage pacing; these are agent instructions, not resource limits enforced by a runtime. Critic calls and rerenders can make long runs expensive: Athenaion reports about 11 million output tokens and an estimated API-equivalent cost of $1,800–$2,300, although it ran on a Max plan. The MIT license covers the repository, not third-party reference media, assets, or music; those rights need separate review.

### Hardware & Deployment Guide
Install with `npx skills add Leonxlnx/cook` for a supported host, or place the skill under `~/.claude/skills/cook` for Claude Code or `~/.codex/skills/cook` for Codex CLI. Invoke it with `/cook` or `$cook`, respectively. The Markdown workflow has no separate Cook service to deploy. Only the comparison helper needs Node 18+ and `ffmpeg` on PATH. For example: `node scripts/side-by-side.mjs --out compare.jpg ref1.png render1.png`.

Provision the host agent and project renderer separately. The workflow includes offline rendering guidance for weaker GPUs, but local rendering does not imply offline model inference—the host determines where model calls and data processing happen. Size render capacity for scene complexity and resolution, and plan model usage around round count and concurrency. No published release is listed, so teams that need reproducible rollouts should pin the repository revision they evaluate.
```

## Key Capabilities
```text
- Integration: Agent skill invoked with `/cook` in Claude Code or `$cook` in Codex CLI; no MCP endpoint is identified.
- Shot planning: Maps reference media to a shot list and calls for frame-by-frame review of motion references.
- Review loop: Renders the reference shots, uses fresh-context critics, and targets the lowest-rated dimension in the next round.
- Handoff: Stores project-local state under `cook/`, with round history in `cook/ROUNDS.md` for resumption or transfer.
- Comparison tooling: `scripts/side-by-side.mjs` uses Node 18+ and ffmpeg to put the reference on the left and the render on the right, one row per shot.
- Approval: Sends stills after each round without pausing the loop and requires user approval before the final video render.
```

## Quick Start / Clone
```bash
npx skills add Leonxlnx/cook
```
