AI NewsDev toolsAnnouncement

Cook, an agent skill that rebuilds a visual until it matches

Leon Lin released Cook, an MIT-licensed agent skill. It tells a coding agent to keep refining a visual build until it matches the reference.

AI News

Editorial2 min read

LinkedInX
GitHub social card for the Leonxlnx/cook repository

Image: GitHub

Why it mattersAn agent on a 3D scene or a video can now run its own retry loop. The user sets the reference and the time limit, and does not have to prompt each round.

Most agent sessions for visual work follow the same loop by hand. You ask for a 3D scene or a sprite. The result looks close but not right. You open a new prompt, paste the reference again, point at what to fix, and ask for another try. Four prompts in, the context window is full and the fix for the shoulder breaks the colour.

Leon Lin released Cook on 31 October 2026. The repository has 792 stars and 60 forks. The licence is MIT. Cook is an agent skill. The one-line description reads: "Give your agent a target, a bar and time, then let it cook."

The loop the skill replaces

Cook asks every question at the start, each with a default. The user gives the project brief and the reference images or videos. The user also gives the bar for what counts as good, and how long the agent has to work.

The skill then runs its own loop. The agent builds a first version. It renders stills at the reference shots. It compares them side by side with the references. It scores each dimension with what the README calls "zero-context critics". It fixes the weakest part. It logs the round in cook/ROUNDS.md. It repeats. The stills are sent to the user after every round without pausing.

What it is built on

Cook is written in JavaScript. The repository topics on GitHub list agent-skills, claude-code, codex, prompting and threejs. The visual side uses Three.js for 3D renders. A scene is drawn from code and placed side by side with the reference for the critique.

The README lists the use cases the author aims at: 3D worlds in code, films, launch videos, games and UI. On these jobs, the first draft is almost never right. The iteration loop is where the hours go.

Why the author sets up the loop upfront

The author says the whole setup is a reply to a simple failure mode. An agent asked to build something open-ended runs out of context window before it is done. Cook moves the planning to the front, so the agent can run unsupervised for an hour or more. The skill holds the reference, the bar, the budget and a running critique. Each one is kept in a format that survives a long session.

The maintainer's prior work

Leon Lin is the author of two earlier agent skills that have traction. The first is Unlazy, which stops a coding agent from giving up on a hard task. The second is Taste Skill, which gave agents a sense of which design choices read as good. Cook is the third in that series. It reached 792 stars in three weeks.

Source

Cook on GitHub.

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project