Skill library

Agent skill Frontend

Paper To Code Components

Connect design references and design tools to frontend implementation.

  • Design to code
  • Design systems
  • shadcn/ui

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add millionco/skills --skill paper-to-code-components --agent claude-code --yes

Check this file in your project.claude/skills/paper-to-code-components/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add millionco/skills --skill paper-to-code-components

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an approved Paper artboard or export, the target codebase, and access to its local preview. For live inspection, open the approved Paper file in Desktop and connect Paper MCP.

View operation manual

What this skill helps with

  • Connect design references and design tools to frontend implementation.

Good for

  • Design handoff
Skill name
paper-to-code-components
Scenario
Build one benchmark card from Paper
Deliverable
A benchmark card with typed data, project components and matched-width screenshots.
Skill name
paper-to-code-components

Give the request a concrete task

A request with an unclear outcome

Copy whatever the first artboard looks like and hardcode the chart.

The wrong artboard or an estimated chart point can change what the card communicates.

A workflow with observable results

  1. Choose the source and measure the data
  2. Map the frame to project code
  3. Check the rendered card against the frame

Paper to Code Components operation manual

Turn an approved artboard into a reusable component with evidence for its layout and chart data.

Replace the bracketed details with your own project and target.

  1. Choose the source and measure the data

    Confirm the approved frame, repeated structure and visible chart geometry.

    Prompt · Step 1
    Use paper-to-code-components on [approved Paper benchmark card frame or export] for [target app]. Confirm the canonical frame with me when supplied variants differ. List the layers, typography, reusable rows and individual icon assets. For the chart, record axis scale, segment bounds and error-bar endpoints from the rendered geometry after transforms. Mark missing values and blocked measurements before writing code.
  2. Map the frame to project code

    Reuse meaningful components and store chart measurements in the model.

    Prompt · Step 2
    Use paper-to-code-components to implement [approved benchmark card] using [measured layout and chart data]. Inventory existing project primitives and tokens before adding files. Extract reusable rows with typed data and named slots where helpful. Render each distinct icon from its own approved asset, preserve useful data-paper-* names, and use the actual axis, ranges and coordinates. List any missing font or dependency for approval before introducing it.
  3. Check the rendered card against the frame

    Compare at the original width, then run the available project checks.

    • The displayed axis, segments and uncertainty bounds come from recorded source evidence.
    • Both screenshots show the same frame width and a settled font state.
    Prompt · Step 3
    Use paper-to-code-components to open [local card preview] at [approved Paper frame width] and wait for its fonts to settle. Compare spacing, typography, chart axis, the bar ends and the uncertainty bounds with the approved frame. Capture both references, run the project's available checks for the changed code, and report diffs that remain or measurements you could not verify.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

Repeated rows or distinct iconsReference
Command or reference
SKILL.md · 4. Define Boundaries and Props
Examples
Reuse the row with named slots and give each distinct icon its own artwork.
Chart ranges need precise valuesReference
Command or reference
SKILL.md · 9. Charts and Data Visualizations Are Semantic, Not Pixels
Examples
Measure endpoints after transforms against the intended axis.

Paper to Code Components troubleshooting

What if Paper only provides a placeholder chart?

Keep a placeholder only when the approved source does. Record which data will replace it and which measurements remain unavailable.