跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
设计与 UI

cook

Design cooking — the co-creation front-end that DISCOVERS a design instead of assuming one exists. USER-INVOKED ONLY — triggers when the user types /cook, /cook <surface>, says "cook the design", "let's cook this", "help me figure out the look", "i don't know what this should look like", "design this with me", or "what should X look like". Runs FRAME (ground the surface + pull real references) > DIVERGE (generate 2-3 genuinely distinct directions as real gpt_image renders the user reacts to, because design is discovered by reacting to artifacts not answering questions) > CONVERGE (grill's engine to pin the three dials, the locked accent, type hierarchy, focal layout, and the full state set) > EMIT a design brief that design-taste's pre-flight + visual-ui-loop build against. Surface-agnostic (dashboard UI, a feature's UX shape, branding, a CLI's interaction design). Read-only on code, any FSM state, never auto-fires, never transitions the FSM. The AI brings directions the user did not a

elai · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add DITlieD/ELAI-archive --skill cook

技能说明


name: cook description: Design cooking — the co-creation front-end that DISCOVERS a design instead of assuming one exists. USER-INVOKED ONLY — triggers when the user types /cook, /cook , says "cook the design", "let's cook this", "help me figure out the look", "i don't know what this should look like", "design this with me", or "what should X look like". Runs FRAME (ground the surface + pull real references) > DIVERGE (generate 2-3 genuinely distinct directions as real gpt_image renders the user reacts to, because design is discovered by reacting to artifacts not answering questions) > CONVERGE (grill's engine to pin the three dials, the locked accent, type hierarchy, focal layout, and the full state set) > EMIT a design brief that design-taste's pre-flight + visual-ui-loop build against. Surface-agnostic (dashboard UI, a feature's UX shape, branding, a CLI's interaction design). Read-only on code, any FSM state, never auto-fires, never transitions the FSM. The AI brings directions the user did not ask for; the human's aesthetic call is final. license: MIT compatibility: "Designed for Codex. Works on Codex with explicit $cook invocation. Requires the gpt-bridge MCP for the DIVERGE render phase." metadata: version: "1.0.0" author: "elai"

Cook is design discovery, not design specification. The premise: neither side knows what the thing should look like yet, and that is normal — design is DISCOVERED through reacting to concrete artifacts, not specified up front. Cook's job is to help the user think: bring real, distinct directions to react to, narrow toward the one that resonates, and hand off a design brief a build can run against.

Why this exists: design-taste.md (the anti-slop quality bar) opens with "declare the design read before any visual work" — it ASSUMES the read already exists and only judges whether the output is generic. visual-ui-loop.md is the build-time critique loop. Neither helps you ARRIVE at the read when you and the AI both start blank. Cook is the missing front-end: it produces the design read + dials + brief that design-taste judges and visual-ui-loop builds. Flow: cook (discover the read) -> design-taste (taste bar) -> visual-ui-loop (build + screenshot-critique).

What makes cook NOT grill: grill is a convergence engine (recommended-answer-first, resolve-the-known-fork, codebase-already-settles-it). Early design is DIVERGENT first — forcing convergence before the user has reacted to real options railroads them into the AI's first idea, which is the opposite of discovery. Cook diverges first (generate + react), THEN borrows grill's convergence engine to pin the decisions once a direction is chosen.

HARD CONSTRAINT — USER-INVOKED ONLY

NEVER auto-fire cook off a keyword or the shape of a task. It runs ONLY when the user explicitly asks to cook/design something with you in the current message. An unprompted design interrogation (or worse, an unprompted burst of image generation) is friction and burns the rate-limited gpt-bridge pool. If a task looks design-shaped and underspecified, OFFER it in one line ("want to cook the look for this before i build it ?") and wait.

WHEN TO INVOKE

  • user types /cook or /cook <surface>
  • user says "cook the design", "let's cook this", "help me figure out the look", "design this with me", "i don't know what this should look like", "what should X look like"
  • user hands a visual/UX surface with no clear direction and asks to discover it together

When NOT to invoke:

  • the design is already decided (a mock, a brief, or a clear reference exists) — go to design-taste's pre-flight + build, no cooking
  • the user wants ONE exact image rendered — that is a direct gpt_image call, not a discovery loop
  • a pure fact lookup ("what's the contrast ratio rule") — that is oracle / design-taste, not cook
  • the user gave a concrete build command — do not stall them; confirm the one genuine direction if any and proceed

THE METHOD (FRAME > DIVERGE > CONVERGE > EMIT)

1 FRAME (silent reasoning + grounding, before any render). Through mcp_think (GRC is mandatory here; built-in thinking is disabled), establish: the surface and its operator task, who it is for, the hard constraints (existing accent/tokens, brand, platform, the Tauri-webview stack if it is the dashboard), and the design space — which axes can actually vary (structure, color, motion, density, voice). Then GROUND THE DIRECTIONS: do not generate from the model's defaults (that is where AI-slop is born — design-taste.md names the same handful of tells every untrained model reaches for). Pull real prior-art / references first: WebSearch the pattern, name 2-3 real design languages or products whose look fits the read, optionally an oracle call. Each DIVERGE direction will be anchored to one of these named references, not a vibe. If it is a dashboard surface, read what already exists (codegraph-elai / dashboardRules.md component vocabulary + the locked accent) so a direction does not fight the system.

2 DIVERGE (real gpt_image renders — the core of discovery). Generate 2-3 GENUINELY DISTINCT directions (not three variations of one safe idea — distinct structure/color/voice, each anchored to a different named reference from FRAME). Render each as a real image, because a layout/feel is decided by SEEING it, not reading a description.

  • Construct every prompt per .Codex/rulebook/gpt-image-prompting.md: a written VISUAL SPEC not keyword soup, the aspect ratio + style folded into the prompt text (gpt_image is PROMPT-ONLY — no size/quality/n params), reference looks described IN WORDS, exact text-in-image rules if the mock carries labels.
  • gpt_image is ASYNC: gpt_image returns {job_id, account}; poll gpt_image_status until done; gpt_image_result harvests the saved file. Re-prompt with the FULL spec to iterate (gpt_image_retry), never a terse "make it better".
  • Present the renders and let the user REACT. Reaction is the signal — "this one, but calmer", "the second's color
阅读完整来源 ↗