Logo Cook

Cook

Cộng đồng
Leonxlnx
cook

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.

Tổng quan

Nhà phát hànhLeonxlnx
Kho mãcook
Tên kỹ năngcook
Sao
46
Bản fork
5
Tệp đi kèm
8
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Leonxlnx công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cook trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Leonxlnx/cook/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Leonxlnx/cook.git \
  .claude/skills/cook
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cook trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Cook ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Cook với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Cook

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.

State files

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.

PathHolds
cook/BRIEF.mdTarget, bar, rules, time, deliverable, permissions. Written once after intake.
cook/SHOTS.mdOne shot per reference: camera, framing, what to take from it.
cook/ROUNDS.mdThe 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.

Start or resume

  • 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.
  • After every context compaction, do the same before your next action.
  • cook/ holds a shipped run: move it to cook-archive/<date>/ and start at step 1.
  • No cook/ folder: start at step 1.

The Cook Loop

1. Intake (once)

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.

2. Target

References are the minimum bar, not inspiration.

  • Study every reference at full size before building anything.
  • 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).
  • Motion references: analyze them frame by frame into a list of effects, transitions and timings. Take from many, never copy one element 1:1.
  • Getting references for 3D, UI and motion, and the analysis steps: references/target-and-bar.md.

3. Bar

Write a number per dimension into BRIEF.md: composition, light, color, materials, detail density (near and far), motion.

  • 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.
  • 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.
  • Keep measured numbers (a command produced them) apart from eyeballed ones (critic scores).

4. Rules

Defaults unless the brief says otherwise. Full rules: references/rules.md.

  • Zero external assets: every mesh, texture, shader and effect in code, when the point is the flex.
  • Sound: code-made only if it truly holds up. Otherwise licensed free libraries, credited.
  • Launch videos: real logos and real photos beat drawn SVG people.
  • 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.
  • Color matches the references: never grey or washed out, never oversaturated.
  • 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).

5. Time

  • 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.
  • Log the start time. Read the clock at every round boundary.
  • Pace usage: about 20% of a 5h window per hour, about 99% per window, never 100%.
  • Depth over breadth: make one shot, scene or element exceptional before you expand.

6. Loop

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:

  1. Focus: open user feedback first, else the weakest dimension in the weakest shot.
  2. Fix it in depth. Split independent parts across parallel subagents.
  3. Render stills from the shot presets, same framing and aspect as each reference. For motion, render contact sheets and short clips.
  4. Make side-by-side images: reference left, render right.
  5. Measure what can be measured: color per region, frame time, seconds per rendered frame.
  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.
  7. Log the round in cook/ROUNDS.md.
  8. Send the stills to the user (Gate) and keep going.
  9. Run the Stop check. If it fails, start the next round now.

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.

7. Gate

  • 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.
  • User feedback beats critic priorities. Log the exact words and address them in the next round.
  • 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.

8. Ship

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 check

Stop only when all of these are true:

  • Every dimension in every shot meets the bar, by critic median after calibration.
  • The time floor is reached (capped jobs have no floor).
  • The user approved the stills, and the final deliverable is rendered and its file checked.

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.

Never

  • Ask a question after intake.
  • Start the final render before the user approves the stills.
  • Copy one reference element 1:1, or name third-party reference clips in public files.
  • Let your own score decide a stop.
  • Report a number you did not measure or a check you did not run.
  • Use 100% of a usage window.
  • Put API keys, tokens or private information in anything you publish.

Files in this skill

FileRead when
references/intake.mdStep 1: questions, defaults, writing BRIEF.md.
references/target-and-bar.mdSteps 2 and 3: references, shot list, motion analysis, rubric, calibration, measuring.
references/loop-and-critics.mdSteps 6 and 7: round details, critic prompts, user feedback, pacing, long runs.
references/rules.mdStep 4, and whenever you add anything visible or audible.
references/ship.mdStep 8: final render, video spec, repo, honest numbers, privacy scan.
templates/brief.mdWhen a user wants to write the brief themselves.
templates/ROUNDS.mdAt the start of a run: copy it to cook/ROUNDS.md.
scripts/side-by-side.mjsEvery round: reference left, render right, one row per shot.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Cook làm được gì?

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 recr...

Vì sao nên dùng Cook trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cook là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cook trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Leonxlnx/cook/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cook?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Cook với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cook với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cook có miễn phí không?

Có. Kỹ năng này được Leonxlnx phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇