fec-architect
Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow design, module boundary…
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.
> /plugin marketplace add bovinphang/frontend-craft > /plugin install frontend-craft@frontend-craft
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
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.
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:
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 |
# 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 - ...
Once the mapping is complete, the report content must be saved as a Markdown file using the Write tool:
frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.
Repo: bovinphang/frontend-craft
Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow design, module boundary…
Senior review focusing on front-end code (React/Vue/Next/Nuxt, TypeScript, styles, client-side security). Delegate after writing or modifying the front-end; by…
Front-end diagnostic and repair subagent: Handle build failures, runtime errors, UI exceptions, and interface issues using a unified 5-step diagnostic…
Front-end warehouse document synchronization subagent: synchronizes README, runtime docs, project structure, capability tables, and report descriptions from…
Front-end end-to-end testing specialist: writing and maintaining key user journeys, executing Playwright/Cypress, managing unstable use cases, managing…
Focus on implementing the proxy of UI components accurately according to the design draft, and save the implementation report as a Markdown file. Supports six…