figma-typings-audit
Upgrade @figma/plugin-typings and absorb what the new version exposes. Diffs the .d.ts between the installed and the target…
Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from
Claude Code
$ npx -y skills add awdr74100/figwright --skill figma-codegen --agent claude-code
Codex
$ npx skills add awdr74100/figwright --skill figma-codegen -a codex -y
Cursor
$ npx skills add awdr74100/figwright --skill figma-codegen -a cursor -y
Gemini CLI
$ npx skills add awdr74100/figwright --skill figma-codegen -a gemini-cli -y
GitHub Copilot
$ npx skills add awdr74100/figwright --skill figma-codegen -a github-copilot -y
OpenCode
$ npx skills add awdr74100/figwright --skill figma-codegen -a opencode -y
Windsurf
$ npx skills add awdr74100/figwright --skill figma-codegen -a windsurf -y
name: figma-codegen description: Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a Figma design turned into code — e.g. 'code this design', 'implement this frame', 'build this screen/component', 'turn this Figma into React/Vue', 'convert this design to code' — or whenever a Figma URL or the current Figma selection appears alongside a coding request. Works for full screens, single sections, or one component.
Turn a Figma selection into code that looks like the rest of the project: reuse the components and tokens that already exist, only build what's genuinely missing. The grounded tools do the heavy lifting so you are not guessing from a screenshot. This file is the router; deep detail lives in [`references/`](./references) — load a reference when its step is in play.
Every tool result says so when it applies, so you do not have to check up front: with two or more files connected and none claimed, results carry a `MORE THAN ONE FIGMA FILE IS OPEN` block naming them. It matters because calls otherwise follow whichever file the user last touched, which changes when they switch tabs — so a task can read one file and write to another and report success.
When you see it, claim the file before doing anything else: `list_files` names every connected file, `use_file({ fileName })` claims one for this session (`use_file({ sessionId })` when two open files share a name — Figma allows that, and `x (Copy)` is how it happens). Every later call then reaches that file whatever is in front, including while its tab sits in the background. If the user has not said which file, ask — do not guess from the names.
Run the grounded tools against the selection, then generate — **trust them over the rendered image.**
1. **`get_design_context`** (detail `full`, `dedupeComponents: true`) → the structural tree with tokens resolved to names (`Primary/500`, `spacing/4`), styles deduped into `globalVars`, and each instance's `mainComponent` / `componentProperties`. This is the layout + binding source of truth. Keep `dedupeComponents: true` and don't depth-limit a subtree you'll build from. → **How to read the tree, the per-node fidelity catalog (effects, per-side borders, stroke align, per-corner radius, blend, masks, gradients, image-fit, patterns, Figma Draw repeat groups / brush strokes / text on a path, auto-layout/grid, aspect-ratio, scroll/sticky, stack & stroke-space), Dev Mode annotations as ground truth, and grounding a page too big for one call: [`references/grounding.md`](./references/grounding.md).**
2. **`component_map`** → every Figma component grouped to a local code component with a `status` (high / medium / low / unmapped), `candidate.filePath`, and `matchedProps`.
Never invent a component name `component_map` didn't report.
more code components nearly equally and the join couldn't confidently pick — a **verify-me** pick, not a confident reuse (the analogue of `token_map`'s `ambiguousWith`). Check which of the winning `candidate` + these runner-ups is the right component for _this_ context before importing (a wrong reuse is a silent visual bug), then record the confirmed one in the map file so the next run is certain. Absent when the pick was unambiguous.
component — one element per instance, with its own props.
flag, an active state) → surface as component-extension TODOs, never fake them with ad-hoc markup.
(`instanceCount > 1`), build from its **first instance's** subtree; if that came back `deduped`/`truncated`, drill `get_design_context` on `instances[0].nodeId` once — don't rebuild a repeated component by eye.
`get_component_api` on the component/instance returns the full property API — every VARIANT option and each BOOLEAN/TEXT/INSTANCE_SWAP prop with its default — so the prop space is grounded, not inferred from the instances you happened to see.
COMPONENT or an INSTANCE carries `componentPropertyReferences` (`{ characters | visible | mainComponent: "PropName#1:2" }`). Wire that layer to the prop, not to what it happens to render: `characters: "Label#1:2"` is `{props.label}`, not the literal string in the design, and `visible: "Show Badge#3:4"` renders conditionally. Without it you emit the right markup with **no props at all** — every instance frozen to whatever the one you looked at said.
3. **`token_map`** → every Figma variable joined to a project token with `status` + `ref` + `matchedBy`. A document's shared paint styles (single solid color styles — the token mechanism of pre-variables files) join the same way, marked `source: 'style'`.
hex/px `get_
Free, two-way Figma MCP server. Turn designs into framework-aware code, and push code back to the canvas. Works with Claude Code, Cursor, Codex, and any MCP client.
Upgrade @figma/plugin-typings and absorb what the new version exposes. Diffs the .d.ts between the installed and the target…
Upgrade @modelcontextprotocol/server (the MCP TypeScript SDK v2) and prove the wire contract survived. The SDK is a runtime…
Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design…
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…
小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…