Leonxlnx/cook

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.

What it solves

Building ambitious visual projects like 3D worlds, launch videos, games, or UI that must match reference images is hard for AI agents. They often stop too early, ignore quality bars, or produce work that looks nothing like the references. Cook solves this by giving the agent a clear target, a quality bar, and a time budget, then running a long autonomous loop of building, checking, and fixing until the output actually matches the references.

How it works

Cook is a skill that you install into agent tools like Claude Code or Codex. You attach reference images and send a command like "/cook build this ancient greek world in three.js, match the 9 attached references". The skill then runs the Cook Loop:

  1. Intake – Asks all open questions up front (with defaults), then never asks again. This lets it run uninterrupted for hours.
  2. Target – Treats references as the minimum bar, not inspiration. Every reference becomes a shot with specific notes. Motion references are analyzed frame by frame.
  3. Bar – Sets a numeric score per quality dimension (composition, light, color, materials, detail, motion). Your own calibration corrects the agent's tendency to overrate itself.
  4. Rules – Enforces zero external assets by default, honest sound and asset policies, a ban list for sloppy work, color rules, and offline rendering on weak GPUs.
  5. Time – Sets a floor for demos (at least 8 hours), a hard cap for small jobs, and usage pacing to avoid hitting limits.
  6. Loop – Builds, renders stills, compares them side by side with references, scores them using fresh-context critics, fixes the weakest part, logs the round, and repeats.
  7. Gate – Shows you stills after every round without pausing. No final video render until you approve.
  8. Ship – Produces the final render with specs: first frame as thumbnail, best scene first, no on-screen text, licensed music, and public repo with honest metrics if desired.

All run state is saved in a cook/ folder in your project, so the agent can resume after a context reset or pass the run to another agent.

Who it's for

This is for AI agent users who want to create high-quality visual works (3D worlds, films, launch videos, games, UI) with a strong requirement to match reference images. It's also for developers who want a structured, long-running autonomous workflow without constant supervision. The README shows it was used to build an ancient Greek world called "Athenaion" over 45 hours using 55 subagents.

Highlights

  • Turns references into a minimum bar with per-shot notes and frame-by-frame analysis for motion.
  • Calibrated numeric scoring per quality dimension to counteract self-overrating.
  • Runs unattended for hours, with baked-in time floors and usage pacing.
  • Shows stills after every round, with final render only after your approval.
  • Keeps all state in a cook/ folder for resumability and handoffs.
  • Ships with a side-by-side comparison script (needs Node 18+ and ffmpeg).
  • Demonstrated on multiple projects: Athenaion, an alpine lake, 10 Chinese landscapes, a golden temple, and an afterglow pianist film.

Related

  • Project
  • Project
  • Project
  • Project