一键导入
design-direction
Use when all design facets are locked and the crit is ready to be synthesized into a final design direction document with deliverables.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when all design facets are locked and the crit is ready to be synthesized into a final design direction document with deliverables.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | design-direction |
| description | Use when all design facets are locked and the crit is ready to be synthesized into a final design direction document with deliverables. |
You are synthesizing a completed design crit into a final design direction. Every enabled facet has been resolved — locked by the user or delegated to you. Your job: weave those individual decisions into a coherent direction document, extract actionable deliverables, and set up the handoff to implementation.
This is Stage 4 of the design crit pipeline. The crit is done. Now you are packaging it.
Before generating anything, verify that the crit is actually complete.
Read .design-crit/state.json. For every facet where "enabled": true, confirm that
"status" is "locked". If any enabled facet is not locked, stop and report:
These facets are still unresolved:
- [facet name] — status: [status]
Then ask: "Want to continue the crit for these facets, skip them, or let me decide them for you?" Route accordingly:
design-crit) to resume the crit loop."skipped" in state.json and proceed with direction generation.
Note skipped facets in the direction document.Only proceed with deliverable generation when ALL enabled facets are locked or skipped.
This is the one stage that needs the full picture, but load strategically to avoid filling context with all HTML files simultaneously.
Read upfront (small files):
state.json — every locked facet's locked_option, locked_summary,
decided_by, decision_rationale, and rounds_completed..design-crit/brief.md — the project brief grounds all rationale..design-crit/crit-session.md — compact summary of all locked decisions.Do NOT read all HTML option files at once. Instead, load them one at a time as you write each section of the deliverables (see Step 3). This keeps context manageable even for projects with 12+ facets.
Read per-facet (only when writing that facet's section):
4. The facet's winning option file — .design-crit/facets/{facet-id}/{locked_option}.html
5. The facet's critique.md — final comparative take and rationale.
6. The facet's feedback files — feedback-round-*.json for decision history.
Load items 4-6 for one facet, write that facet's section in the deliverables, then move to the next facet. Do not accumulate all facets' HTML in context.
Organize by the three lenses:
direction.html — The Design Direction DocumentWrite .design-crit/direction.html. This is the primary deliverable — a polished,
self-contained HTML page presenting the complete design direction. Follow
../../reference/crit-ui.md for exact colors, typography, spacing, and component specs.
Structure the page as follows:
Header section:
state.json > project.name)state.json > project.description)Screen gallery:
Design decisions by lens:
locked_summary as a concise descriptiondecision_rationale explaining why this direction was chosenExpandable decision log:
<details> / <summary> elements for expand/collapse per facetStyling requirements:
design-tokens.json — Extracted Design TokensWrite .design-crit/design-tokens.json ONLY if the crit covered relevant facets. Check
which token-producing facets were locked:
| Facet | Token Category | What to Extract |
|---|---|---|
crit-color-system | colors | Primary, secondary, surface, text, status colors from the locked palette |
crit-typography | typography | Font families, type scale values, line heights, font weights |
crit-density-spacing | spacing | Base unit, spacing scale values, touch target sizes |
crit-layout | layout | Grid column count, sidebar width, content max-width, gutter size |
crit-elevation-shape | elevation | Shadow values per level, border radius scale |
If none of these facets were in the plan, skip this deliverable entirely and note in the terminal: "No token-producing facets were covered — skipping design-tokens.json."
Token JSON structure: Top-level keys are generated (date), project (name), then
one object per category: colors, typography, spacing, layout, elevation. Only
include categories for facets that were actually locked.
Extract token values by reading the locked option HTML files. Parse inline CSS for
concrete values. Use semantic naming ("surface-primary", "text-secondary") not
implementation naming ("blue-500").
decisions.md — Full Markdown Decision LogWrite .design-crit/decisions.md. Version-control-friendly backup of the decision
history for team reference.
Format: Header with project name, date, facet/round counts, and a 2-3 sentence brief
summary. Then a ## Decisions section grouped by the three lenses (What Exists, How It's
Arranged, How It Feels). Each facet gets an #### heading with: locked option name +
summary, decided by (user or auto), round count, rationale, and a round-by-round history
showing options presented, kept/cut, and user comments. End with a ## Skipped Facets
section listing any skipped facets with reason, or "None".
Regenerate .design-crit/overview.html to reflect the completed state.
Every facet row must show:
Add a Completed banner at the top:
direction.html: "View design direction"decisions.md: "View decision log"design-tokens.json (if generated): "View design tokens"After generating all deliverables, present a summary in the terminal listing each file
generated (direction.html, decisions.md, design-tokens.json if applicable,
overview.html) with a one-line description of each. Note that all files live in
.design-crit/.
Then read state.json > project.tech_stack and suggest the implementation handoff:
"Ready to implement? Your project uses [tech stack]. The frontend-design skill can
use these wireframes and design tokens as reference. Run /frontend-design to get started."
If no tech stack is recorded, suggest generically:
"Ready to implement? The wireframes in .design-crit/facets/ and the design tokens in
design-tokens.json are your reference. If you use a frontend scaffolding skill, point
it at these files."
Open direction.html in the user's browser as the final action.
Use when starting a new design project, when context seems insufficient for design decisions, or when explicitly gathering requirements before visual design work.
Use when starting a design critique, visual design review, or wireframing process for any app or service. Orchestrates the full design-crit pipeline from brief through visual facets to design direction.
Use when a design brief is confirmed and the project needs a plan for which design facets to evaluate and in what order.
Use when auditing a design for accessibility — keyboard navigation, screen reader support, touch targets, focus management, color contrast, and cognitive load. Typically runs as the last facet to audit accumulated decisions.
Use when evaluating color palettes, theming, dark mode, contrast, and color tokens for a design system.
Use when evaluating interactive component patterns — buttons, forms, cards, modals, tables, and other UI building blocks.