Claude-skill-registry figma-to-page
Generates React code for a full page based on pasted Figma 'Inspect' details. Uses the page scaffolder.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/figma-to-page" ~/.claude/skills/majiayu000-claude-skill-registry-figma-to-page && rm -rf "$T"
manifest:
skills/data/figma-to-page/SKILL.mdsource content
Figma to Page Workflow
- Ask for the page name in
(e.g.,PascalCase
).UserProfile - Ask the user to paste all details from the Figma 'Inspect' panel for the entire page.
- Execute scaffolder:
- Run
chmod +x .claude/skills/react-page-scaffolder/scripts/create-page.sh - Run
.claude/skills/react-page-scaffolder/scripts/create-page.sh {{PAGE_NAME}} - Report the output (the new file paths). Let
be the new directory (e.g.,{{PAGE_DIR}}
).src/pages/userprofile
- Run
- Generate Code:
- Read the user-pasted Figma details.
- Generate the TSX code for
.{{PAGE_DIR}}/{{PAGE_NAME}}.tsx - Generate the corresponding CSS for
.{{PAGE_DIR}}/{{PAGE_NAME}}.module.css
- Write Files:
- Write the new TSX content, overwriting the template.
- Write the new CSS content, overwriting the template.
- Lint: Run
to clean up the new files.yarn lint:fix {{PAGE_DIR}} - Report that the page has been created and populated from Figma details.