by Leonxlnx
Give your agent a target, a bar and time, then let it cook. An agent skill for visual builds that have to match reference images or videos.
# Add to your Claude Code skills
git clone https://github.com/Leonxlnx/cookGuides for using ai agents skills like cook.
See how cook compares with popular alternatives.
cook is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Leonxlnx. Give your agent a target, a bar and time, then let it cook. An agent skill for visual builds that have to match reference images or videos. It has 172 GitHub stars.
cook's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Leonxlnx/cook" and add it to your Claude Code skills directory (see the Installation section above). cook ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
cook is primarily written in JavaScript. It is open-source under Leonxlnx on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cook against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Give your agent a target, a bar and time, then let it cook.
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.
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.
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.
| Path | Holds |
|---|---|
cook/BRIEF.md |
Target, bar, rules, time, deliverable, permissions. Written once after intake. |
cook/SHOTS.md |
One shot per reference: camera, framing, what to take from it. |
cook/ROUNDS.md |
The ledger. Copy templates/ROUNDS.md and add one entry per round. |
cook/refs/ |
The references, numbered R01, R02 for images and V01, V02 for videos. |
cook/stills/rNN/, cook/compare/rNN/ |
Renders and side-by-side images of round NN. |
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.cook/ holds a shipped run: move it to cook-archive/<date>/ and start at step 1.cook/ folder: start at step 1.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.
Collect: what to build, references, bar, time budget, hard rules, deliverable, hardware, usage limits, and what you may download or publish.
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.
References are the minimum bar, not inspiration.
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).references/target-and-bar.md.Write a number per dimension into BRIEF.md: composition, light, color, materials, detail density (near and far), motion.
Defaults unless the brief says otherwise. Full rules: references/rules.md.
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.
Each round:
cook/ROUNDS.md.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.
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.
Stop only when all of these are true:
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.
| File | Read when |
|---|---|
references/intake.md |
Step 1: questions, defaults, writing BRIEF.md. |
references/target-and-bar.md |
Steps 2 and 3: references, shot list, motion analysis, rubric, calibration, measuring. |
references/loop-and-critics.md |
Steps 6 and 7: round details, critic prompts, user feedback, pacing, long runs. |
references/rules.md |
Step 4, and whenever you add anything visible or audible. |
references/ship.md |
Step 8: final render, video spec, repo, honest numbers, privacy scan. |
templates/brief.md |
When a user wants to write the brief themselves. |
templates/ROUNDS.md |
At the start of a run: copy it to cook/ROUNDS.md. |
scripts/side-by-side.mjs |
Every round: reference left, render right, one row per shot. |
Give your agent a target, a bar and time, then let it cook.
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.
Install | Quick start | The Cook Loop | Made with this
Use the skills CLI 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.
Attach your reference images and send:
/cook build this ancient greek world in three.js, match the 9 attached references
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.
Want full control? Fill in templates/brief.md and send that instead.
cook/ROUNDS.md, repeat.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.
SKILL.md the loop the agent follows
references/intake.md questions, defaults, the brief
references/target-and-bar.md references, shot list, rubric, calibration
references/loop-and-critics.md rounds, critic prompts, feedback, pacing
references/rules.md assets, sound, ban list, color, rendering
references/ship.md final render, video spec, repo, numbers
templates/brief.md fill-in prompt for your own runs
templates/ROUNDS.md the round ledger
scripts/side-by-side.mjs reference left, render right, one row per shot
Build a comparison image yourself:
node scripts/side-by-side.mjs --out compare.jpg ref1.png render1.png ref2.png render2.png
Athenaion, an ancient Greek world built by Claude Opus 5.5 to match 9 AI-generated reference images. No external assets.
| Total time | ~45h |
| Agents | 55 subagents, up to 12 in parallel |
| Code | ~45k lines of JavaScript |
| Tokens | ~11M output tokens |
| API-equivalent cost | ~$1.8k to $2.3k (ran on a Max plan) |
| Render | 4K on an integrated AMD Radeon 780M |
More demos made the same way:
All demos: leonlin.de/demos
MIT. Made by Leon Lin (@LexnLin).