/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".
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install react-design-draft - 安装完成后,直接呼叫该 Skill 的名称或使用
/react-design-draft触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
React Design Draft 是什么?
Generate React design drafts (4-piece set) from content. Invoke for 'design draft'/'设计稿'/'生成页面'/'信息图'/'知识卡片'. Do NOT use for editing existing code. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 React Design Draft?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install react-design-draft」即可一键安装,无需额外配置。
React Design Draft 是免费的吗?
是的,React Design Draft 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
React Design Draft 支持哪些平台?
React Design Draft 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 React Design Draft?
由 AI花生(@edwardwason)开发并维护,当前版本 v3.0.0。