Install
openclaw skills install react-design-draftGenerate React design drafts (4-piece set) from content. Invoke for 'design draft'/'设计稿'/'生成页面'/'信息图'/'知识卡片'. Do NOT use for editing existing code.
openclaw skills install react-design-draftTransforms user content into information-dense, visually refined React design drafts. Core advantage: every element is independently editable, restructuring-capable, and version-controllable.
Only generates React design drafts from content. Does NOT: write production apps, edit existing projects, or replace full development workflows.
User Content → Step 1: Parse & Match → Step 2: Confirm & Advise → Step 3: Generate → Step 4: Post-Generation Guide
Read references/content-layout-mapping.md for the three-dimension system.
references/style-presets.md. If a preset keyword matches, use that as defaults.Never skip. Present the selected combination AND adaptation advice before generating:
📐 Layout: <name> — <reason>
🎨 Style: <name> — <reason>
🎯 Palette: <name> — <reason>
📊 Density: <level> — <N> key units
📋 Adaptation Advice:
- Aspect ratio / Mobile-friendly / Recommended output
🔄 Alternative options:
- If you want <X>, try --style <alt>
- If targeting <Y>, try --layout <alt>
确认生成?或指定调整:--layout / --style / --palette
Only skip if user says "直接生成".
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
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:
references/content-layout-mapping.md.references/density-standards.md.data.js. Components receive via props. Zero data in JSX.references/aesthetics-guide.md.references/aesthetics-guide.md "Font Strategy" and "Local Font Registry".