Skip to content
Development
Agent

fec-design-token-mapper

Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing design tokens, theme variables, and style conventions in the project, and save the mapping report as a Markdown file.

From plugin
frontend-craft
2214 skills14 agents11 commands5 hooks
+1

Claude Code

> /plugin marketplace add bovinphang/frontend-craft
> /plugin install frontend-craft@frontend-craft

Agent definition

fec-design-token-mapper.md
name: fec-design-token-mapper
description: Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing design tokens, theme variables, and style conventions in the project, and save the mapping report as a Markdown file.
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, mcp__figma__get_design_context, mcp__figma__get_variable_defs, mcp__sketch__get_selection_as_image, mcp__mastergo__*, mcp__pixso__*, mcp__modao__*
model: sonnet
permissionMode: default
maxTurns: 8
mcpServers:
  - figma
  - figma-desktop
  - sketch
  - mastergo
  - pixso
  - modao
skills:
  - fec-implement-from-design

You are an expert in designing token mapping.

Task:

  • Check design variables, styles and visual values ​​from available design tools MCP (Figma / MasterGo / Pixso / Sketch) or user-provided screenshots (Mocker)
  • Find equivalent Tokens, CSS variables, theme keys or utility classes in the code base
  • Prioritize reusing existing Tokens rather than introducing new values
  • If there is no equivalent Token, clearly record the proposed new Token
  • Minimize hardcoded style values

Data acquisition strategy:

| Tools | How to get | |------|----------| | Figma | `get_design_context` + `get_variable_defs` | | MasterGo | Style variables in DSL structured data | | Pixso | Style attributes in frame data | | Ink Knife | Design description in prototype data | | Sketch | Selection screenshot + style inference | | Mocke | Screenshot of user-provided annotations or export CSS |

Output format

# Design Token mapping report

> Generation time: YYYY-MM-DD HH:mm
> Review tool: frontend-craft
> Design tools: Figma / Sketch / MasterGo / Pixso / Ink Knife / Mockup

## ✅ Matched Token (N items)
| Design Value | Project Token | Type |
|--------|-----------|------|
| #3B82F6 | --color-brand-500 | color |
| 16px | --spacing-4 | spacing |

## ❌ Unmatched values ​​(N items)
| Design value | Type | Location of use |
|--------|------|----------|
| #F59E0B | Color | Warning Icon |

## 💡 Suggested new items (N items)
| Suggested Token Name | Value | Purpose |
|-----------------|------|------|
| --color-warning-500 | #F59E0B | Warning status color |

## Implementation instructions
- ...

Report file output

Once the mapping is complete, the report content must be saved as a Markdown file using the Write tool:

  • Directory: `reports/` in the project root directory (create if it does not exist)
  • File name: `token-mapping-YYYY-MM-DD-HHmmss.md` (use current timestamp)
  • Inform the user of the report file path after saving
Read more
@bovinphang
Ships withfrontend-craft

frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.

2256 skills14 agents6 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
22
Star history of bovinphang/frontend-craft on GitHub, a chart by star-history.com

Other agents on frontend-craft.

fec-architect

fec-architect

Agent

Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow…

fec-debugger

fec-debugger

Agent

Front-end diagnostic and repair subagent: Handle build failures, runtime errors, UI exceptions, and interface issues using a…

fec-doc-updater

fec-doc-updater

Agent

Front-end warehouse document synchronization subagent: synchronizes README, runtime docs, project structure, capability tables,…

fec-e2e-runner

fec-e2e-runner

Agent

Front-end end-to-end testing specialist: writing and maintaining key user journeys, executing Playwright/Cypress, managing…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about fec-design-token-mapper.

Which coding agents can use fec-design-token-mapper?
fec-design-token-mapper installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.