From superpowers-sage
Extracts UI/UX designs from Figma, Paper, Stitch, or Pencil for Sage projects into Blade components and Tailwind v4 tokens. Supports layout, responsive design, visual review, and design-to-code workflows.
npx claudepluginhub codigodoleo/superpowers-sage --plugin superpowers-sageThis skill uses the workspace's default tool permissions.
Route to the right design tool based on the URL the user provides — Paper (preferred), Stitch, Figma, or local assets — to extract layout, content, and visual references for implementation.
Implements Sage design system with Tailwind v4: extracts Figma/Paper tokens to CSS, builds Blade UI atoms and layout components, adds kitchensink page.
Translates Figma designs into production-ready UI code with 1:1 visual fidelity using MCP server. Use for Figma node URLs, selections, or 'implement design' requests.
Translates Figma designs into production-ready UI code with 1:1 visual fidelity using MCP server. Use for node-specific implementations from Figma URLs or desktop selections.
Share bugs, ideas, or general feedback.
Route to the right design tool based on the URL the user provides — Paper (preferred), Stitch, Figma, or local assets — to extract layout, content, and visual references for implementation.
Routing is driven by what the user provided, not by which MCPs happen to be configured.
paper.design/* or *.paper.design/* → paper branch (use mcp__paper__*)figma.com/* → figma branch (use mcp__figma__* / mcp__claude_ai_Figma__*)stitch.withgoogle.com/* (or other known stitch hosts) → stitch branch (use mcp__stitch__*).pen reference:
.pen OR input starts with design/ → pencil branchdesign/ exists in the project root with .pen files:
list the available .pen page files (exclude *.lib.pen) and ask the user
which page to extract before proceeding.docs/plans/<active-plan>/assets/section-*.png exists → offline branchMCP gate: once the branch is known, ToolSearch the corresponding mcp__<tool>__* namespace. If the MCP is NOT configured, stop with this message:
⛔ You sent a {paper|figma|stitch} link but the `{tool}` MCP is not configured.
Configure it and re-run, or send a link from another source.
Do NOT silently fall back to a different MCP.
Pencil MCP gate: For the pencil branch, ToolSearch mcp__pencil__open_document.
If NOT configured:
⛔ .pen file detected but the Pencil MCP is not configured.
Install: claude mcp add pencil -- npx -y @anthropic/pencil-mcp
Restart the session after installing.
mcp__paper__get_basic_info — get document metadatamcp__paper__get_tree_summary — locate the target section nodemcp__paper__get_node_info on the section — capture structure, text, hierarchymcp__paper__get_screenshot — save as assets/section-{name}.pngmcp__paper__get_computed_styles — save as assets/section-{name}.styles.json (typography, colors, spacing — exact values; consumed by verifying for the style spot-check)mcp__paper__get_jsx — save as assets/section-{name}.reference.jsx with this header comment as the FIRST lines of the file:
// REFERÊNCIA ESTRUTURAL APENAS — NÃO COPIAR.
// Sage usa Blade, não React. Use isso só para entender
// hierarquia de componentes e nesting.
mcp__stitch__list_projects — find the projectmcp__stitch__list_screens — enumerate all screensmcp__stitch__get_screen — extract one section at a timemcp__figma__get_file — load the file structureopen_document(filePath) — open the .pen file the user indicatedget_editor_state() — confirm top-level nodes and document is activebatch_get with no nodeIds, readDepth: 1 — map all available sectionspencil-extractor in SURGICAL mode,
passing filePath, sectionId, and planPathpencil-extractor in COMPONENT_MAP mode
to produce design/component-map.mddocs/plans/<plan>/assets/section-*.pngFor each section extracted, output:
### Section: {name}
**Layout:** {grid structure, column arrangement, alignment}
**Headline:** "{exact text}"
**Body:** "{exact text}"
**Components:** {cards, buttons, icons, images — with details}
**Colors:** {background, text, accent — hex values if visible}
**Typography:** {heading size, body size, weight, font family}
**Spacing:** {padding, margins, gaps — approximate}
**Icons:** {icon names/types, from which set}
If there's an active plan in docs/plans/:
assets/section-{name}.mdplan.md frontmatter with design-tool: paper|stitch|figma|offline