gztcode/figma-to-code-parity-agent/component-mapper

Claude Code and agent skill by gztcode/figma-to-code-parity-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Map Figma components and repeated UI patterns to existing project components before implementation. Use for Figma-to-code tasks to avoid duplicated buttons, inputs, cards, navigation bars, rows, tabs, chips, and other one-off clones.

Install

npx vskill@latest install gztcode/figma-to-code-parity-agent/component-mapper

SKILL.md

The same SKILL.md was published earlier as gztcode/figma-to-code-parity-agent/component-mapper.

Component Mapper

当项目使用 Code Connect 或已有组件库时,同时参考 ../../references/code-connect-mapping.md。本 skill 的目标是让 Agent 调用真实组件,而不是重新画一套视觉相似 UI。

Input

  • Figma design analysis
  • Project path
  • Project profile
  • Target platform
  • Existing source files 和 component directories
  • Optional Code Connect mappings

Output

  • Component mapping table
  • Prop mapping table
  • Variant mapping table
  • Component coverage percentage
  • Reuse plan
  • Missing component list
  • One-off implementation exceptions

Must

  • 按 name、role、visual pattern 和 usage 搜索 existing components。
  • 优先使用 project profile 中记录的 component inventory 和 Code Connect/component mapping。
  • 可用时优先使用 Code Connect 或 documented mappings。
  • 将 repeated Figma components 映射到 existing code components。
  • 记录每个 component 需要的 props、variants、states 和 styling hooks。
  • 识别什么时候应该小幅扩展 component,而不是 duplicate。
  • 对 component gap 按三类输出:已有类似组件、页面局部特有组件、应进入 Design System 的基础组件。
  • 将核心 component gaps 交给 implementation-gate 判定。
  • 按 ../../references/evidence-schema.md 输出 figma component、platform component、mapped props、mapped variants 和 confidence。
  • 计算 critical component coverage。
  • 区分 semantic components 和 decorative containers。

Must Not

  • 不允许把已有 Button、Input、Card、Tab、Toolbar、Row、Avatar、Badge 或 Dialog component 重建成 one-off。
  • 不允许在 Code Connect mapping 缺失时静默 fallback 到 one-off UI;必须报告 mapping gap。
  • 不允许把核心基础组件缺口留给 builder 手写局部 UI。
  • 搜索项目之前,不允许声称某个 component 不存在。
  • 当 project component 无法表达 Figma variant 且会造成 harmful changes 时,不允许强行使用。
  • 不允许为了匹配 static screenshot 而绕过 accessibility、state 或 interaction behavior。
  • 不允许机械地把 Figma layer names 当作 code component names。

Evidence

  • 使用过的 search paths 和 patterns
  • Component mapping table:Figma component/pattern -> code component
  • Prop/variant mapping table
  • Coverage percentage
  • Mapping confidence
  • Reused component list
  • 被扩展的 components 及原因
  • Missing components 及证据

Failure Mode

出现以下情况时,报告 limitation:

  • required component 不存在,且创建它会影响 shared architecture。
  • Existing components 与 Figma design 冲突,需要 design-system approval。
  • Code Connect mappings 过期或指向 missing code。

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gztcode/figma-to-code-parity-agent/component-mapper/badge)](https://verified-skill.com/skills/gztcode/figma-to-code-parity-agent/component-mapper)

Something wrong with this skill or its page? Tell us.