fec-design-token-mapper

fec-design-token-mapper is an agent for Claude Code from bovinphang/frontend-craft. It costs 58 tokens per session (659 once invoked), scanned A, original, MIT.

An agent that matches visual design values from tools such as Figma or Sketch to the project's existing design tokens, theme variables, or style conventions. Design tokens are shared names for values such as colors, spacing, and font sizes.

In plain words
What is it for?
Mapping colors, styles, and variables from supported design tools or screenshots to code. It records matched tokens and clearly proposes new ones when no equivalent exists.
Why use it?
It reduces duplicated hard-coded styles and makes new interface work fit the project's existing visual system.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the frontend-craft plugin — 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers shipped together

Good fit Mapping colors, styles, and variables from supported design tools or screenshots to code. It records matched tokens and clearly proposes new ones when no equivalent exists.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bovinphang/frontend-craft/fec-design-token-mapper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bovinphang/frontend-craft

Made for: Claude Code.

Or install frontend-craft, the plugin that ships this one along with the rest of its 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fec-design-token-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/bovinphang/frontend-craft/fec-design-token-mapper.svg)](https://agentmods.dev/agents/bovinphang/frontend-craft/fec-design-token-mapper)
Your own site
<a href="https://agentmods.dev/agents/bovinphang/frontend-craft/fec-design-token-mapper"><img src="https://agentmods.dev/badge/agents/bovinphang/frontend-craft/fec-design-token-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 659 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00659
Opus 5 $0.00029 $0.00329
Sonnet 5 $0.00012 $0.00132
Haiku 4.5 $0.00006 $0.00066

Measured 8d ago against content hash e7e52b1b7b3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

fec-design-token-mapper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/fec-design-token-mapper.md · 76 lines

What it actually says

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 76 lines · 58 tokens per session scan A e7e52b1b7b3c

Subscribe to this mod's changes

fec-design-token-mapper is an agent published in the GitHub repository bovinphang/frontend-craft (21 stars, last pushed 6d ago), licensed MIT. It adds 58 tokens to every session and 659 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

design-advisor

Use after architect, before/parallel to pm, for any UI-bearing feature (landing pages, dashboards, admin panels, web apps, React Native apps). Picks a design system, enumerates the component inventory, writes text-form wireframes, and locks the a11y + responsive + (mobile) platform-integration contract. Outputs…

avelikiy/great_cto · 89 tokens

canvas-screen-builder

Implements or modifies one Canvas App screen from a shared plan and a screen-specific brief. Writes exactly one .pa.yaml file and performs self-QA without compiling. Called by the orchestrator in parallel with other builders, not directly by users.

microsoft/power-platform-skills · 53 tokens

parallel-reviewer

Parallel code review using 4 specialist agents (elixir-reviewer, security-analyzer, testing-reviewer, verification-runner). Use for thorough review of significant changes.

oliver-kriska/claude-elixir-phoenix · 38 tokens

requirements-verifier

Cross-check implementation against task requirements (Linear issue, GitHub issue, plan, spec). Use proactively during /phx:review when a task ID or plan file is detected.

oliver-kriska/claude-elixir-phoenix · 40 tokens

codex-reviewer

Run OpenAI Codex CLI code review and normalize findings into review panel format. Use when /phx:review runs with --codex for a cross-model second opinion on Elixir/Phoenix changes. Requires codex CLI; degrades to SKIPPED note.

oliver-kriska/claude-elixir-phoenix · 60 tokens

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens