xiaohongshu
xiaohongshu
design-to-production
Guided workflow for implementing HTML design prototypes as production React components with glassmorphism styling and quality standards enforcement. Use when converting design prototypes to production code.
Full skill instructions
Guided workflow for converting HTML prototypes to production React components.
TL;DR: Provide HTML file path → analyze → map components → scaffold → implement → validate
Auto-triggered by keywords:
# Step 1: Analyze HTML prototype
./.claude/skills/design-to-production/scripts/extract-structure.sh <html-file-path>
# Step 3: Scaffold component (after interactive mapping)
./.claude/skills/design-to-production/scripts/scaffold-component.sh \
--name "ComponentName" \
--module "practice" \
--template "interactive-card"
# Step 5: Validate implementation
./.claude/skills/design-to-production/scripts/validate.sh <component-path>
glassmorphism_hints_panel_1.html1. ANALYZE → Extract structure from HTML
2. MAP → Choose shadcn components + glassmorphism classes
3. SCAFFOLD → Generate .tsx file with boilerplate
4. IMPLEMENT → Write component logic (guided by TODOs)
5. VALIDATE → Check quality standards
User provides: HTML file path (e.g., .superdesign/design_iterations/glassmorphism_hints_panel_1.html)
Script runs:
./scripts/extract-structure.sh .superdesign/design_iterations/glassmorphism_hints_panel_1.html
Output: hints-panel-structure.json with:
SKILL.md presents: Summary of detected structure
SKILL.md guides you through 4 decisions:
HintsPanelpracticeFor each interactive element:
<button class="btn-glass">Show Hint</button>Button from @shared/ui/buttonCommon mappings:
| HTML Element | shadcn Component |
|---|---|
<button class="btn-*"> | Button |
<div class="glass-card"> | Card |
<input type="text"> | Input |
<select> | Select |
| Badge/chip | Badge |
class="glass-card neon-glow-purple text-glow"className="glass-card neon-glow-purple text-glow"styles/glassmorphism.cssScript generates .tsx file using template:
./scripts/scaffold-component.sh \
--name "HintsPanel" \
--module "practice" \
--template "interactive-card" \
--props "title:string,hints:IHint[],onShowHint:(index:number)=>void"
Output: modules/practice/components/HintsPanel.tsx with:
SKILL.md reminds:
modules/practice/components/HintsPanel.tsxUser writes: Business logic, event handlers, state management
./scripts/validate.sh modules/practice/components/HintsPanel.tsx
Checks:
any typesOutput: Pass/fail + suggestions for fixes
Choose the right template for your component:
| Template | Use For | Includes |
|---|---|---|
interactive-card | Buttons, forms, user actions | Card, Button, Input, event handlers |
display-card | Read-only content, stats | Card, Typography, badges |
layout-section | Page sections, containers | Layout wrapper, grid/flex patterns |
HTML: <button class="btn-glass">Action</button>
React: <Button className="btn-glass" onClick={handleAction}>Action</Button>
HTML: <div class="glass-card neon-glow">Content</div>
React: <Card className="glass-card neon-glow"><CardContent>Content</CardContent></Card>
HTML: <h1 class="gradient-text">Title</h1>
React: <h1 className="gradient-text">Title</h1>
SKILL.md is self-sufficient for:
Load references when needed:
| Need | Load |
|---|---|
| Full glassmorphism class list | references/glassmorphism-mapping.md |
| shadcn component decision guide | references/shadcn-component-guide.md |
| Complex layout patterns | references/common-patterns.md |
| Complete worked example | examples/hints-panel-complete/ |
Script not found: Ensure you're in project root (frontend/)
Invalid glassmorphism class: Check styles/glassmorphism.css for approved classes
Validation fails: Run quality-reviewer to see detailed errors
Version: 1.0.0 | Updated: October 2025 Pattern: Follows module-scaffolder optimization structure
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience