/agents-skills:figma-specsfrom agents-skills
Snapshots Figma files into design specs anchored to stable node IDs and component keys, detects drift between design and code, and generates precise re-touch lists. Use when Figma organization changes frequently or to sync design to code.
Ships in agents-skills. 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.
The pain: designs change, and the Figma file's organization changes too — pages, sections, and frames get moved and renamed. Every move introduces tiny differences (a spacing tweak, a color shift, a renamed layer), they accumulate, and the team re-touches code constantly, often for changes that aren't really changes. This skill fixes that by tracking the design the way the design actually identifies itself, not by where it currently sits — and it does so without depending on any paid Figma feature.
Figma node IDs and published component / style / variable keys are stable across moves, renames, and reorganization, and they come back from an ordinary Figma read. A frame dragged to another page keeps its node ID; a published component keeps its key wherever it lives. So key every spec to those ids, never to a page/section/frame name or a position — those are exactly what designers move. When something moves, its id is unchanged and the link holds; the only thing that changed is a human-readable locator, which the refresh updates without touching code.
Drift is only actionable if you know which code a changed component maps to. Do not depend on Figma Code Connect for this — it needs paid Dev Mode and a publishing step that may not be available or allowed. Instead the mapping lives in the spec itself and is built locally:
scout agent to grep the codebase for the component/token whose name matches the Figma component or variable (e.g. Figma Button/Primary → src/ui/Button.tsx). Record the candidate file:line and a confidence.get_code_connect_map can seed/verify the mapping for free — use it when present, never require it.The mapping is stored in each spec's frontmatter (code: + code_source: discovered | operator | code-connect) and in the index, so it is git-versioned and owned by you, not by a Figma plan.
Read via the Figma MCP. Register the Figma Dev Mode MCP under the server key figma so these mcp__figma__* tools — and the design-mapper agent's tool grants — resolve. (The figma@claude-plugins-official plugin instead exposes them under mcp__plugin_figma_figma__*; if you use the plugin, allowlist that prefix in .claude/settings.json and re-key the design-mapper agent's tools.) All but the last tool work without Code Connect:
get_variable_defs — the variables/styles in a selection (color, spacing, typography). These tokens are where the "tiny differences" live; diffing them is the core drift signal.get_code — the design's generated implementation, as a reference for what changed (not as the diff target).get_image — a screenshot for visual-fidelity confirmation when a property diff is ambiguous.get_code_connect_map — optional: node id → Code Connect component, only if Code Connect is configured. Skip silently if not.If even variable reads aren't available (no Dev Mode at all), degrade to operator-exported tokens/screenshots and mark confidence low.
Git-versioned, under design-specs/, keyed by stable id (git is the history — no version in the name):
design-specs/_index.md — registry: stable id ⇄ human name ⇄ kind (token/component/screen) ⇄ mapped code path ⇄ last-synced.tokens.spec.md — variables/styles by key: name, value, and the code token it maps to.component/<componentKey>-<slug>.spec.md — per published component: its key, the mapped code file:line, the tokens/props/states it uses, and its current human locator (informational).screen/<nodeId>-<slug>.spec.md — per screen/flow: its node id, the components it composes (by key), and the locator.Frontmatter carries figma_id / figma_key, kind, code + code_source, last_synced, and locator (the movable human path — informational). The id/key is canonical and never changes; the locator is allowed to drift.
/figma-init-spec)Pull the design system via the Figma MCP and write the spec set anchored to ids/keys. Discover domains (component groups, screen flows) from the file. For each component, build the design→code map with scout (name discovery) + operator confirmation; seed from Code Connect only if it's already there. Report how many components are mapped vs unmapped.
/figma-refresh-spec)Re-read Figma, diff against the snapshot by stable id, and classify each entry:
| Drift | What it means | Action |
|---|---|---|
| Moved / reorganized | same id/key, different page/section/frame | update the locator only — no code change. This is the churn the team keeps wrongly re-touching; report it as "reorg, no-op". |
| Renamed | same id, new name | update the label; no code change. |
| Changed | a token/dimension/spacing/state value differs | record the exact before → after delta and the mapped code path → a line on the re-touch list. |
| Added | a new id/key | spec it; run scout to propose its code mapping. |
| Removed | an id/key is gone | mark the spec deprecated; flag the now-dead code. |
| Code moved | mapped file:line no longer matches | re-run scout to relocate it; update code:. |
The report is split into two lists: "reorganization only — ignore" and "real changes — re-touch", the latter with each exact delta and the code file it maps to (or "unmapped — needs a code owner" when no mapping exists yet). That is the whole point: stop re-touching on moves, and act once on each genuine change instead of letting tiny diffs pile up.
get_code output as the diff. Diff the variables/properties (get_variable_defs) by id, not regenerated code, which varies run to run.Working output in caveman (load the caveman skill); ids, keys, token values, and before→after deltas stay byte-exact (they are the drift evidence). Durable prose written into the specs goes through the humanizer skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub skyfox675/agents-skills --plugin agents-skills32 skills in this plugin
/browser-diagnosisReproduce and root-cause a front-end bug in a real browser using whichever browser MCP is connected — Chrome (claude-in-chrome), Playwright, Cypress, or Chrome DevTools — not just one. Drive the page as the signed-in user, watch the network and console, capture the failing request/response, shim/mock to isolate the fault, and record a repro, then hand the evidence to the issue being filed. Use whenever a symptom needs live-browser evidence (the toast says failed but it saved, a column shows zero, a click 404s) and from the /…-use-browser command family (and the engine-pinned /…-use-chrome, /…-use-playwright, /…-use-cypress variants), the /…-use-aws-browser commands, and the diagnostician agent. Picks the available MCP automatically and degrades gracefully when none is connected./cavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested./ci-flake-huntingThe authoritative method for hunting, root-causing, and fixing CI flakes so the merge queue stops ejecting correct PRs and churn drops. A flake is a test that fails then passes on retry with NO code change explaining it — every red speculative merge-queue build ejects a correct PR and disarms its auto-merge, so a live flake taxes every PR behind it. Encodes the loop — MINE CI history for real flakes → REPRODUCE harsher-than-CI → ROOT-CAUSE the real mechanism (hydration/render race, settle race, mock-order, loading-state race, click-through fragility) → FIX FORWARD (test or component, never mask) → VERIFY by re-running many times → UNSTICK the PRs the flake stranded → REPEAT. And how to tell a true code flake from transient INFRA (CDN/mirror outage, expired token mid-suite, rate-limit/WAF, external-service cap, cloud state-lock, CI-provider billing/outage, upstream bump) which must NOT be code-fixed. Use whenever chasing CI instability, "deflake this spec", "CI keeps ejecting my PR", "is this a flake or real", a shard that intermittently reds the queue, or running the ci-flake-hunter lane. Distinct from ci-speed-hunting (which owns slow-but-green jobs — flake never touches timing/sharding).Other plugins' skills for the same job