pattern-stack/claudecode-patterns/figma-snapshot
Claude Code and agent skill by pattern-stack/claudecode-patterns
- community
Checking that the SKILL.md file is still in the repository.
Snapshot a Figma frame's metadata, tokens, design-context, and screenshot to local files under `.ai-docs/figma/<slug>/` so downstream agents (design-builder, design-grader, spec authors) don't re-call the Figma MCP every iteration. Universal — not tied to design-loop; usable for spec writing, design audits, refactor planning.
Install
npx vskill@latest install pattern-stack/claudecode-patterns/figma-snapshotSKILL.md
The same SKILL.md was published earlier as pattern-stack/claudecode-patterns/figma-snapshot.
Figma Snapshot
Extract a Figma frame to a structured, locally-cached set of files so downstream consumers don't re-call the Figma MCP each iteration.
When to use
- Before invoking
/design-loopagainst afigma-type reference (mandatory) - Starting work on a UI surface that references a Figma frame
- Re-snapshotting after a Figma update (
--force) - Ad-hoc: spec writing, design Q, design audits, refactor planning
- Anywhere you want the tokens / metadata / screenshot in-repo without re-fetching
Inputs
| Arg | Required | Default | Notes | |
|---|---|---|---|---|
figma_url | yes | — | Figma frame URL (must include node-id) | |
--slug | no | derived from frame name | Output directory name under .ai-docs/figma/ | |
--force | no | false | Re-snapshot even if a fresh one exists |
Prerequisites
figma-dev-modeMCP server loaded in this session (mcp__figma-dev-mode__get_metadataetc. visible)- If not:
/plugin install figma, restart session
Process
- Parse
figma_url→ extractfileId+nodeId(node-id in URL uses-; MCP uses:— convert) - Derive slug if not provided: kebab-case of the frame's name (from metadata), or use
frame-{nodeId} - Check idempotency: if
.ai-docs/figma/<slug>/snapshot.yamlexists, was written < 7 days ago, and--forceis not set → print existing summary and exit - Call MCP tools sequentially:
mcp__figma-dev-mode__get_metadata→ frame tree (XML-ish prose)mcp__figma-dev-mode__get_variable_defs→ design tokens (prose map)mcp__figma-dev-mode__get_design_context→ generated React+Tailwind referencemcp__figma-dev-mode__get_screenshot→ rendered PNG
- Parse + write outputs (see "Output files" below)
- Write
summary.mdas the primary downstream-consumable artifact - Sanity check:
reference.pngdimensions within 10% of metadata bounding-box - Print summary to stdout (caller relays to user)
Output files
snapshot.yaml shape
summary.md shape (the consumable artifact)
Constraints
- Idempotent: same input + same Figma state = same output (modulo timestamps in
snapshot.yaml) - Sanity-check: image dimensions ≈ metadata bbox; flag mismatch in
summary.md"Known gaps" - Don't overwrite
tokens.jsonsilently when re-snapshotting — diff and surface changes in the printed summary - Don't write to a directory with uncommitted changes without
--force
Authoring guidance for summary.md
The summary is what downstream agents READ INSTEAD OF the Figma MCP. Make it complete:
- A grader should be able to grade a build against
summary.md+reference.pngwithout ever touching the MCP - A builder should be able to implement against
summary.md+tokens.json+design-context.tsx - A spec author should be able to write a falsifiable checklist from
summary.md
Err on the side of including more, not less. Re-snapshot is cheap (5 MCP calls); under-documented snapshots cost full rounds.
Related
- `/design-loop` — primary consumer (figma-type references)
- `design-reference` canvas — references this skill in the
figmatype - Figma Dev Mode MCP server — the data source
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/figma-snapshot/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pattern-stack/claudecode-patterns/figma-snapshot)