← Back to Skills Marketplace
edwardwason

React Design Draft

by AI花生 · GitHub ↗ · v3.0.0 · MIT-0
cross-platform ✓ Security Clean
38
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install react-design-draft
Description
Generate React design drafts (4-piece set) from content. Invoke for 'design draft'/'设计稿'/'生成页面'/'信息图'/'知识卡片'. Do NOT use for editing existing code.
README (SKILL.md)

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.

  1. Check keyword shortcuts — scan user input against references/style-presets.md. If a preset keyword matches, use that as defaults.
  2. Parse content structure — extract: content type, key units count, density level.
  3. Auto-select three dimensions: Layout × Style × Palette.
  4. 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

  1. Three-dimension combination: Layout × Style × Palette. See references/content-layout-mapping.md.
  2. Content-first: Layout serves content structure. Every visual element carries information.
  3. Density = signal per pixel: Minimum quality score 16/25. See references/density-standards.md.
  4. Data-driven: All data in data.js. Components receive via props. Zero data in JSX.
  5. Design tokens as single source of truth: All visual values reference CSS variables. No magic numbers.
  6. Anti-AI-slop: See references/aesthetics-guide.md.
  7. Pre-generation consultation mandatory: Always show planned combination + advice first.
  8. Post-generation edit guide mandatory: Always output Component Map & Edit Guide.
  9. Component granularity: Each visual concern = own component. Extract ComparisonBlock, StepList, QuestionList etc. Avoid monolithic components > 80 lines.
  10. Local-first fonts: Prioritize local CJK fonts over web fonts. See references/aesthetics-guide.md "Font Strategy" and "Local Font Registry".
Usage Guidance
Install only if you want an agent to help generate React design-draft code from content. Use a fresh or clearly named output directory and confirm the selected layout/style before generation, especially in an existing project, to avoid confusion with existing App.jsx or component files.
Capability Tags
cryptorequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The artifacts coherently describe generating editable React design drafts from user-provided content, with a four-file output structure and post-generation editing guidance aligned to that purpose.
Instruction Scope
The trigger phrases and preset keywords are broad and may activate on ordinary design/page-generation requests, but the skill requires a pre-generation confirmation unless the user explicitly asks to generate directly.
Install Mechanism
The package contains Markdown instructions and references only; no executable install scripts, package dependencies, or runtime bootstrap code were found.
Credentials
The requested environment use is limited to local design draft output and local-first fonts, with no network calls, API keys, credentials, account access, or broad local indexing in the artifacts.
Persistence & Privilege
No persistence, background workers, privilege escalation, credential/session access, destructive commands, or automatic overwrite instructions were found.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install react-design-draft
  3. After installation, invoke the skill by name or use /react-design-draft
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.0
v3.0.0: Three-dimension system (25 layouts x 23 styles x 12 palettes), React 4-piece output, density scoring, local-first CJK fonts, 29 quick presets, Kami editorial style
Metadata
Slug react-design-draft
Version 3.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments