Skip to content
Back to search

cook

SkillWorks with Claude CodeGitHub

Runs the Cook Loop for ambitious visual builds that must match reference images, screens or videos through long autonomous iteration. Use it for 3D worlds made in code (three.js, WebGL, shaders), code-rendered films, launch and motion videos, games and polished UI that must hold up next to references, especially runs of many hours or days while the user is away. Trigger when the user types /cook or $cook, says "cook", "go cook", "let it cook", "iterate until it matches", "match the references", "99%", "99.9%", "9/10 minimum" or "at least 8h", or attaches reference images and asks for a recreation in code. It runs one intake, then loops build, stills, zero-context critics and fixes against a numeric bar, and holds the final render until the user approves.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/leonxlnx--cook/badge.svg)](/listings/leonxlnx--cook)

HTML

<a href="/listings/leonxlnx--cook"><img src="/api/listings/leonxlnx--cook/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Use the [skills CLI](https://github.com/vercel-labs/skills) for supported agents:

npx skills add Leonxlnx/cook

Manual locations:

Claude Code:  ~/.claude/skills/cook
Codex CLI:    ~/.codex/skills/cook

Invoke it as `/cook` in Claude Code or `$cook` in Codex. It also triggers on phrases like "go cook", "iterate until it matches" or "match the references 99%".

The side-by-side script needs Node 18+ and ffmpeg on your PATH. Everything else is plain Markdown.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

SKILL.md · Manifest · 132 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ---
  2. name: cook
  3. description: Runs the Cook Loop for ambitious visual builds that must match reference images, screens or videos through long autonomous iteration. Use it for 3D worlds made in code (three.js, WebGL, shaders), code-rendered films, launch and motion videos, games and polished UI that must hold up next to references, especially runs of many hours or days while the user is away. Trigger when the user types /cook or $cook, says "cook", "go cook", "let it cook", "iterate until it matches", "match the references", "99%", "99.9%", "9/10 minimum" or "at least 8h", or attaches reference images and asks for a recreation in code. It runs one intake, then loops build, stills, zero-context critics and fixes against a numeric bar, and holds the final render until the user approves.
  4. ---
  5. # Cook
  6. Give your agent a target, a bar and time, then let it cook.
  7. This skill runs the Cook Loop: one intake, then a long autonomous loop of build, render, compare, critique and fix until the work holds up next to the references. It is made for runs of 10 to 40 hours or more. The references carry the look. The brief sets the bar, the rules and the time.
  8. Optional companions: /unlazy for effort and completion discipline (the Depth Tree), and any goal, loop or long-run mode the harness offers. Cook works without them.
  9. ## State files
  10. All run state lives in `cook/` at the project root. These files are your memory across context resets and the handoff to any other agent.
  11. | Path | Holds |
  12. |---|---|
  13. | `cook/BRIEF.md` | Target, bar, rules, time, deliverable, permissions. Written once after intake. |
  14. | `cook/SHOTS.md` | One shot per reference: camera, framing, what to take from it. |
  15. | `cook/ROUNDS.md` | The ledger. Copy `templates/ROUNDS.md` and add one entry per round. |
  16. | `cook/refs/` | The references, numbered R01, R02 for images and V01, V02 for videos. |
  17. | `cook/stills/rNN/`, `cook/compare/rNN/` | Renders and side-by-side images of round NN. |
  18. ## Start or resume
  19. - `cook/BRIEF.md` exists and the run is not shipped: you are resuming. Read BRIEF, SHOTS and the last two ROUNDS entries, then start the next round (step 6). Do not re-ask, restart or rebuild what works.
  20. - After every context compaction, do the same before your next action.
  21. - `cook/` holds a shipped run: move it to `cook-archive/<date>/` and start at step 1.
  22. - No `cook/` folder: start at step 1.
  23. ## The Cook Loop
  24. ### 1. Intake (once)
  25. Ask every open question in one message, each with a default, so the user can answer by number or reply "defaults". Skip what the prompt, the attachments or a filled `templates/brief.md` already answer. If nothing is open, say so and start. Questions and defaults: `references/intake.md`.
  26. Collect: what to build, references, bar, time budget, hard rules, deliverable, hardware, usage limits, and what you may download or publish.
  27. Then write `cook/BRIEF.md` and `cook/ROUNDS.md` and start. From now on, never ask a question. The user may be asleep. Decide, log the decision under Decisions in ROUNDS.md, and keep working.
  28. ### 2. Target
  29. References are the minimum bar, not inspiration.
  30. - Study every reference at full size before building anything.
  31. - Write `cook/SHOTS.md`: one shot per reference image, with camera, framing, time of day and what to take from it (light, color, composition, materials, timing).
  32. - Motion references: analyze them frame by frame into a list of effects, transitions and timings. Take from many, never copy one element 1:1.
  33. - Getting references for 3D, UI and motion, and the analysis steps: `references/target-and-bar.md`.
  34. ### 3. Bar
  35. Write a number per dimension into BRIEF.md: composition, light, color, materials, detail density (near and far), motion.
  36. - Stills: a stretch target such as 99.9% similarity. Video: a score out of 10. References at about 8.5 mean a target of 9 or more.
  37. - Models rate themselves too high. When the user gives an estimate, log the gap as the calibration offset and apply it to every later score.
  38. - Keep measured numbers (a command produced them) apart from eyeballed ones (critic scores).
  39. ### 4. Rules
  40. Defaults unless the brief says otherwise. Full rules: `references/rules.md`.
  41. - Zero external assets: every mesh, texture, shader and effect in code, when the point is the flex.
  42. - Sound: code-made only if it truly holds up. Otherwise licensed free libraries, credited.
  43. - Launch videos: real logos and real photos beat drawn SVG people.
  44. - Slop ban list: eyebrow labels, monospace uppercase text, random serif fonts, purple gradients, beige, 01/02/03 counters, glowing orbs, shockwave rings popping out of things, decorative particles, em dashes.
  45. - Color matches the references: never grey or washed out, never oversaturated.
  46. - Weak GPU: keep realtime cheap and get the quality from offline rendering (sub-frame accumulation for motion blur, soft shadows, depth of field, anti-aliasing).
  47. ### 5. Time
  48. - Demos get a floor: at least 8h, and done after 2h means something is wrong. Big builds can take days. Small jobs get a hard cap.
  49. - Log the start time. Read the clock at every round boundary.
  50. - Pace usage: about 20% of a 5h window per hour, about 99% per window, never 100%.
  51. - Depth over breadth: make one shot, scene or element exceptional before you expand.
  52. ### 6. Loop
  53. Before round 1, build the harness: a fixed camera preset per shot, a still renderer and a color check. For side-by-side images use `scripts/side-by-side.mjs` from this skill (Node 18+ and ffmpeg): `node <skill>/scripts/side-by-side.mjs --out cook/compare/r01/all.jpg cook/refs/R01.png cook/stills/r01/R01.png ...`. Every round reuses the harness.
  54. Each round:
  55. 1. Focus: open user feedback first, else the weakest dimension in the weakest shot.
  56. 2. Fix it in depth. Split independent parts across parallel subagents.
  57. 3. Render stills from the shot presets, same framing and aspect as each reference. For motion, render contact sheets and short clips.
  58. 4. Make side-by-side images: reference left, render right.
  59. 5. Measure what can be measured: color per region, frame time, seconds per rendered frame.
  60. 6. Score with fresh-context critics: subagents with zero context that get only the side-by-side images and the rubric, optionally from another model. Your own score is logged, never decisive.
  61. 7. Log the round in `cook/ROUNDS.md`.
  62. 8. Send the stills to the user (Gate) and keep going.
  63. 9. Run the Stop check. If it fails, start the next round now.
  64. Never stop when it first works. Never claim a check that was not run. If something was not measured, write "not measured". Round details, critic prompts and pacing: `references/loop-and-critics.md`.
  65. ### 7. Gate
  66. - After every round, send the stills with a short note: what changed, scores, next focus. Do not pause, and do not end your turn to wait for a reply.
  67. - User feedback beats critic priorities. Log the exact words and address them in the next round.
  68. - Never start the final render, or any other long and costly export, before the user approves the stills in chat. While you wait, keep refining and test the render pipeline on a few short frames.
  69. ### 8. Ship
  70. After approval, render the final deliverable and check the file. For a video on X: the first frame is the thumbnail and must be impressive, best scene first, a new scene every 6 to 7 seconds, no text on screen, licensed music credited, 1080p 30fps is enough. For a public repo: README, credits, the real prompt and honest numbers. Push or publish only if BRIEF.md allows it. Details: `references/ship.md`.
  71. ## Stop check
  72. Stop only when all of these are true:
  73. - Every dimension in every shot meets the bar, by critic median after calibration.
  74. - The time floor is reached (capped jobs have no floor).
  75. - The user approved the stills, and the final deliverable is rendered and its file checked.
  76. Done before the floor means the bar was read too low. Reread the references at full size, check far distance, color and the weakest shot, and start another round. If a hard cap or a usage stop comes first, finish the round, log it and report plainly what is still below the bar.
  77. ## Never
  78. - Ask a question after intake.
  79. - Start the final render before the user approves the stills.
  80. - Copy one reference element 1:1, or name third-party reference clips in public files.
  81. - Let your own score decide a stop.
  82. - Report a number you did not measure or a check you did not run.
  83. - Use 100% of a usage window.
  84. - Put API keys, tokens or private information in anything you publish.
  85. ## Files in this skill
  86. | File | Read when |
  87. |---|---|
  88. | `references/intake.md` | Step 1: questions, defaults, writing BRIEF.md. |
  89. | `references/target-and-bar.md` | Steps 2 and 3: references, shot list, motion analysis, rubric, calibration, measuring. |
  90. | `references/loop-and-critics.md` | Steps 6 and 7: round details, critic prompts, user feedback, pacing, long runs. |
  91. | `references/rules.md` | Step 4, and whenever you add anything visible or audible. |
  92. | `references/ship.md` | Step 8: final render, video spec, repo, honest numbers, privacy scan. |
  93. | `templates/brief.md` | When a user wants to write the brief themselves. |
  94. | `templates/ROUNDS.md` | At the start of a run: copy it to `cook/ROUNDS.md`. |
  95. | `scripts/side-by-side.mjs` | Every round: reference left, render right, one row per shot. |
README.md · README · 108 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. <div align="center">
  2. # cook
  3. **Give your agent a target, a bar and time, then let it cook.**
  4. An agent skill for ambitious visual builds that have to hold up next to references: 3D worlds in code, films, launch videos, games and UI. It runs the Cook Loop, one intake and then a long autonomous loop of build, stills, fresh-context critics and fixes until the work matches.
  5. [Install](#install) | [Quick start](#quick-start) | [The Cook Loop](#the-cook-loop) | [Made with this](#made-with-this)
  6. </div>
  7. ## Install
  8. Use the [skills CLI](https://github.com/vercel-labs/skills) for supported agents:
  9. ```text
  10. npx skills add Leonxlnx/cook
  11. ```
  12. Manual locations:
  13. ```text
  14. Claude Code: ~/.claude/skills/cook
  15. Codex CLI: ~/.codex/skills/cook
  16. ```
  17. Invoke it as `/cook` in Claude Code or `$cook` in Codex. It also triggers on phrases like "go cook", "iterate until it matches" or "match the references 99%".
  18. The side-by-side script needs Node 18+ and ffmpeg on your PATH. Everything else is plain Markdown.
  19. ## Quick start
  20. Attach your reference images and send:
  21. ```text
  22. /cook build this ancient greek world in three.js, match the 9 attached references
  23. ```
  24. The agent asks every open question once, with defaults, then works on its own. You get stills after every round. The final video is only rendered after you approve them.
  25. Want full control? Fill in [templates/brief.md](templates/brief.md) and send that instead.
  26. ## The Cook Loop
  27. 1. **Intake.** All questions up front, each with a default. After that the agent never asks again, so it can run through the night.
  28. 2. **Target.** The references are the minimum bar, not inspiration. Every reference becomes a shot with notes on what to take from it. Motion references get analyzed frame by frame.
  29. 3. **Bar.** A number per dimension: composition, light, color, materials, detail near and far, motion. For example 99.9% for stills or at least 9/10 for a video. Models rate themselves too high, so your own estimate calibrates every score.
  30. 4. **Rules.** Zero external assets by default, honest sound and asset policy, a slop ban list, colors that are neither grey nor oversaturated, offline rendering on weak GPUs.
  31. 5. **Time.** A floor for demos (at least 8h, done after 2h means something is wrong), a hard cap for small jobs, and usage pacing so the run never hits a limit and stalls.
  32. 6. **Loop.** Build, render stills at the reference shots, compare side by side, score with zero-context critics, fix the weakest part, log the round in `cook/ROUNDS.md`, repeat.
  33. 7. **Gate.** Stills go to you after every round without pausing. No final render before you approve.
  34. 8. **Ship.** First frame is the thumbnail, best scene first, no text on screen, licensed music credited, public repo with honest numbers if you want one.
  35. All run state lives in a `cook/` folder in your project, so the agent can resume after a context reset or hand the run to another agent.
  36. ## What's inside
  37. ```text
  38. SKILL.md the loop the agent follows
  39. references/intake.md questions, defaults, the brief
  40. references/target-and-bar.md references, shot list, rubric, calibration
  41. references/loop-and-critics.md rounds, critic prompts, feedback, pacing
  42. references/rules.md assets, sound, ban list, color, rendering
  43. references/ship.md final render, video spec, repo, numbers
  44. templates/brief.md fill-in prompt for your own runs
  45. templates/ROUNDS.md the round ledger
  46. scripts/side-by-side.mjs reference left, render right, one row per shot
  47. ```
  48. Build a comparison image yourself:
  49. ```text
  50. node scripts/side-by-side.mjs --out compare.jpg ref1.png render1.png ref2.png render2.png
  51. ```
  52. ## Made with this
  53. **Athenaion**, an ancient Greek world built by Claude Opus 5.5 to match 9 AI-generated reference images. No external assets.
  54. | | |
  55. |---|---|
  56. | Total time | ~45h |
  57. | Agents | 55 subagents, up to 12 in parallel |
  58. | Code | ~45k lines of JavaScript |
  59. | Tokens | ~11M output tokens |
  60. | API-equivalent cost | ~$1.8k to $2.3k (ran on a Max plan) |
  61. | Render | 4K on an integrated AMD Radeon 780M |
  62. [Post](https://x.com/LexnLin/status/2111582260818239777) | [Repo](https://github.com/Leonxlnx/athenaion)
  63. More demos made the same way:
  64. - Alpine lake: [post](https://x.com/LexnLin/status/2112560562609803311), [repo](https://github.com/Leonxlnx/procedural-alpine-lake)
  65. - 10 Chinese landscapes: [post](https://x.com/LexnLin/status/2112264777309491443), [repo](https://github.com/Leonxlnx/shanshui)
  66. - Golden temple: [post](https://x.com/LexnLin/status/2110657641831956870), [repo](https://github.com/Leonxlnx/golden-temple)
  67. - Afterglow pianist film: [post](https://x.com/LexnLin/status/2114422260346110358), [repo](https://github.com/Leonxlnx/afterglow)
  68. All demos: [leonlin.de/demos](https://leonlin.de/demos)
  69. ## Works well with
  70. - [unlazy](https://github.com/Leonxlnx/unlazy) for effort and completion discipline. Cook sets the target and the bar, unlazy makes sure the work behind it gets done.
  71. - Any goal, loop or long-run mode your agent offers. Cook works without them.
  72. ## License
  73. MIT. Made by Leon Lin ([@LexnLin](https://x.com/LexnLin)).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.