Builds a screen from a prepared Figma design pack (design.md, spec.json, assets/) and loops on automated checks until the implementation matches the spec. No Figma token or Dev Mode seat required.
Ships in charcoal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You have been given the design as files: design/design.md says what the design is,
design/spec.json says the same thing as facts a script can check, and design/assets/
holds its bitmaps. That is everything. You do not need Figma, a token, or a seat.
flowchart LR
pack[design.md<br>spec.json<br>assets/] --> build[Build the screen]
build --> app[Running app]
app -->|check-design.mjs| ask{Matches the spec?}
ask -->|No, here is what is off| build
ask -->|Yes| done[Done]
The loop is the point. Read the pack once, build the frame tree outside in, use the token where one is given, then let the check tell you what is still wrong.
No pack? prepare-figma-design makes one from a figma.com link with a read-only
token. Do not implement from Figma MCP's get_design_context instead: it returns
reference markup, and building from markup means transliterating it — you rewrite someone
else's DOM and inherit a structure that was never meant to be code.
Stale pack? If the design has moved, the pack is regenerated by whoever has the token, not patched by hand here. A hand-edited pack and a real design disagree silently.
- instance "Icon Button" 32×32 at (296, 8) — `Size=S, Type=Default, State=Default`
flex-direction: row; padding: var(--charcoal-space-10); border-radius: var(--charcoal-radius-oval)
- instance "24 / Close" 24×24 at (300, 12) — `24 / Close`
- vector "Shape" 14×14 at (305, 17)
color: var(--charcoal-color-icon-tertiary-default)
Each line is one element: its box, then its materials, then the component and variant it
came from. The nesting is the structure to build. Position children with their parent's
gap and padding, not with offsets on the children — the coordinates are there to
identify an element, not to be typed into your CSS.
Values with a token are written as that token. Values without one are literal — and that is information too: it means the design system has no opinion here and you should not go looking for a token.
Widths and heights are geometry, not tokens. The design says a card is 294px wide
because the layout says so. There is no token for it and none is expected. If you find
yourself writing height: var(--charcoal-text-line-height-100) for a 72px header, the
number matched and the meaning did not.
A color is read against what it sits on. White is the resting text color of five
different roles at once, and nothing about the color says which. What says it is the
surface underneath, so a white label inside a primary container is written
text/on-primary/default rather than whichever white token sorts first.
Where the surface does not settle it, the pack says so instead of picking:
color: #ffffff /* text/on-on-img/default | text/on-primary/default | text/on-negative/default | text/on-positive/default | text/on-discovery/default */
That is the design system offering several words for this color and the design not saying which. Choose the role the element actually plays.
A gradient or a pattern is named, not valued. background: linear gradient /* no token for this; read it from the design */ means there is a fill here that the design
system has no word for and the pack cannot write as a value. Open the design and copy
it. The one thing it does not mean is an unpainted box.
There is no markup, on purpose. The pack says what the design is. Turning that into components, props and state is the implementation, and it is yours to write.
Where an element has words they are given as text: — use them verbatim. A node name is
its Figma layer, which is often a label rather than what it says.
check-design.mjs decides when you are done. Run it, fix what it names, run it again.
An implementation that has never been rendered is a guess, however carefully it was built
from the pack — and the most expensive mistake it can make is invisible from the source:
a screen can import every component, write every value as a token, and render with none
of them applied.
With the app running:
node <this-skill>/bin/check-design.mjs --spec design/spec.json --url http://localhost:4173
<this-skill> is wherever this skill was installed:
${CLAUDE_PLUGIN_ROOT}/skills/implement-figma-design under the Claude Code plugin,
.claude/skills/implement-figma-design or .agents/skills/implement-figma-design under
npx skills.
It names what is off — outermost first, because a container in the wrong place moves everything inside it — and says nothing about how well you did. The first thing it asks is whether charcoal's variables resolve at all, because that failure is the one the source cannot show you. Fix that before reading anything below it: until the tokens land, every box will look wrong for the same single reason.
Needs playwright installed in the project being checked — it is resolved from there,
not from wherever this skill lives — and without it the check declines rather than
guessing.
check-design.mjs writes nothing at all: findings go to stdout, and the exit code is
what a script should branch on.
| Path | R/W | What |
|---|---|---|
--spec <path> | read | The spec from the pack. |
--url <url> | read | The running app, over HTTP. |
playwright | read | Resolved from the project being checked, not from where this skill is installed. |
It is one frame as the designer drew it. It does not carry:
Search Field
is often your TextField. Check the names against your library's exports rather than
trusting them — a wrong component mapping costs more than a wrong color.--theme dark and --theme light give different token names
for the same drawing, and the pack does not record which was used. Ask if it matters.What SKILL.md sets; muted values are Claude Code's defaults
/charcoal:implement-figma-designfrom charcoal
npx claudepluginhub pixiv/charcoal --plugin charcoal7 skills in this plugin
/choosing-charcoal-stylingUse before writing or editing any code that imports @charcoal-ui, and whenever a project's charcoal setup is unverified or incomplete. Decides between the CSS variables, Tailwind and styled-components routes, and names the setup steps that are silently missing in most projects./choosing-charcoal-tokensUse before choosing any color, text style, spacing, radius or border value in code that uses @charcoal-ui, and whenever a literal is about to be written where a token exists — a hex color, a px padding or gap, a font-size, a border-radius or border-width. Charcoal has one correct token for each of these and the choice is prescribed, not a matter of taste. Also use when reviewing such code, or when deciding how dense, how loud or how bordered a screen should be./prepare-figma-designUse when you have a figma.com link or a local .fig export, and someone needs to build that design — including when you will build it yourself. One command turns it into the design's structure, its materials named as your own design tokens, the text of every node and the bitmaps it uses, as three files to commit. No Dev Mode seat: a read-only personal access token, or no credential at all from a .fig. Hand those files to implement-figma-design, which needs no Figma access./setting-up-charcoal-css-variablesUse before writing or editing any code that imports @charcoal-ui/react, and whenever a project's charcoal setup is unverified, incomplete or being finished. Charcoal components render completely unstyled unless BOTH @charcoal-ui/theme/css/v2/light.css is imported AND the .ch-token-v2 class is on <html>; importing dist/index.css alone, or adding the stylesheet without the class, silently produces correct geometry with no colors at all./setting-up-charcoal-styledUse before writing or editing code that uses @charcoal-ui with styled-components, TokenInjector, createTheme or addThemeUtils, and whenever such a project's charcoal setup is unverified or incomplete./setting-up-charcoal-tailwindUse before writing or editing code that uses @charcoal-ui with Tailwind, and whenever such a project's charcoal setup is unverified or incomplete. The v2 token route still needs the theme CSS and the .ch-token-v2 opt-in, which the preset does not supply.Other plugins' skills for the same job