/install react-design-draft
React Design Draft Generator v3
Transforms user content into information-dense, visually refined React design drafts. Core advantage: every element is independently editable, restructuring-capable, and version-controllable.
Task
Only generates React design drafts from content. Does NOT: write production apps, edit existing projects, or replace full development workflows.
Execution Flow
User Content → Step 1: Parse & Match → Step 2: Confirm & Advise → Step 3: Generate → Step 4: Post-Generation Guide
Step 1: Parse & Match
Read references/content-layout-mapping.md for the three-dimension system.
- Check keyword shortcuts — scan user input against
references/style-presets.md. If a preset keyword matches, use that as defaults. - Parse content structure — extract: content type, key units count, density level.
- Auto-select three dimensions: Layout × Style × Palette.
- Allow user override — if user specifies any dimension explicitly, override that dimension only.
Step 2: Confirm & Advise (MANDATORY)
Never skip. Present the selected combination AND adaptation advice before generating:
📐 Layout: \x3Cname> — \x3Creason>
🎨 Style: \x3Cname> — \x3Creason>
🎯 Palette: \x3Cname> — \x3Creason>
📊 Density: \x3Clevel> — \x3CN> key units
📋 Adaptation Advice:
- Aspect ratio / Mobile-friendly / Recommended output
🔄 Alternative options:
- If you want \x3CX>, try --style \x3Calt>
- If targeting \x3CY>, try --layout \x3Calt>
确认生成?或指定调整:--layout / --style / --palette
Only skip if user says "直接生成".
Step 3: Generate React 4-Piece Set
Read references/react-output-spec.md for output spec.
Read references/aesthetics-guide.md for style CSS details.
Read references/density-standards.md for quality thresholds.
Output: design-tokens.css + data.js + components/*.jsx + App.jsx
Step 4: Post-Generation Guide (MANDATORY)
Always append after generation. This is the #1 advantage of React design drafts. See references/react-output-spec.md "Interactive Edit Guide" section for the full template. Must include:
- File Tree with edit-responsibility annotations
- Quick Edits map (user intent → file → action)
- Component Hierarchy tree (editable structure)
- Restructure hint: tell user they can extract/refactor components
Rules
- Three-dimension combination: Layout × Style × Palette. See
references/content-layout-mapping.md. - Content-first: Layout serves content structure. Every visual element carries information.
- Density = signal per pixel: Minimum quality score 16/25. See
references/density-standards.md. - Data-driven: All data in
data.js. Components receive via props. Zero data in JSX. - Design tokens as single source of truth: All visual values reference CSS variables. No magic numbers.
- Anti-AI-slop: See
references/aesthetics-guide.md. - Pre-generation consultation mandatory: Always show planned combination + advice first.
- Post-generation edit guide mandatory: Always output Component Map & Edit Guide.
- Component granularity: Each visual concern = own component. Extract ComparisonBlock, StepList, QuestionList etc. Avoid monolithic components > 80 lines.
- Local-first fonts: Prioritize local CJK fonts over web fonts. See
references/aesthetics-guide.md"Font Strategy" and "Local Font Registry".
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install react-design-draft - After installation, invoke the skill by name or use
/react-design-draft - Provide required inputs per the skill's parameter spec and get structured output
What is React Design Draft?
Generate React design drafts (4-piece set) from content. Invoke for 'design draft'/'设计稿'/'生成页面'/'信息图'/'知识卡片'. Do NOT use for editing existing code. It is an AI Agent Skill for Claude Code / OpenClaw, with 38 downloads so far.
How do I install React Design Draft?
Run "/install react-design-draft" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is React Design Draft free?
Yes, React Design Draft is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does React Design Draft support?
React Design Draft is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created React Design Draft?
It is built and maintained by AI花生 (@edwardwason); the current version is v3.0.0.