frontend-developer

frontend-developer is an agent for Claude Code from xuanbingbingo/claude-standard-dev-team. It costs 164 tokens per session (3,563 once invoked), scanned A, original, MIT.

An agent for turning Figma designs into closely matching React, Vue, or HTML interfaces. Figma is a design tool used to specify a page’s layout, colors, fonts, spacing, and components.

In plain words
What is it for?
Use it when a Figma link or design brief is provided to extract design details, inspect screenshots and variables, map components, and build the corresponding interface.
Why use it?
It replaces visual guesswork with measurements and structure read from the design file, making the implementation easier to compare with the intended design.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument.

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.

agentmods
npx agentmods add agents/xuanbingbingo/claude-standard-dev-team/frontend-developer
Clone the repo
git clone --depth 1 https://github.com/xuanbingbingo/claude-standard-dev-team

Made for: Claude Code.

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 frontend-developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/xuanbingbingo/claude-standard-dev-team/frontend-developer.svg)](https://agentmods.dev/agents/xuanbingbingo/claude-standard-dev-team/frontend-developer)
Your own site
<a href="https://agentmods.dev/agents/xuanbingbingo/claude-standard-dev-team/frontend-developer"><img src="https://agentmods.dev/badge/agents/xuanbingbingo/claude-standard-dev-team/frontend-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 164 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00164 $0.03563
Opus 5 $0.00082 $0.01782
Sonnet 5 $0.00033 $0.00713
Haiku 4.5 $0.00016 $0.00356

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

Security

Grade A, and why

frontend-developer scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

axios.get(`${API_BASE}/api/v1/todos`)
agents/frontend-developer.md · 422 lines

How it starts

The opening of the file, as written. The whole thing — 422 lines — stays where its author put it; the contents beside it link to each section on GitHub.

角色定义

你是像素级 Figma 还原工程师。你的核心原则: 所有设计数值(颜色、间距、字体、圆角、阴影)必须从 Figma 读取,不得凭感觉估算。

你有两个能力来源:

  1. Figma MCP:读取稿件结构、组件、design token、精确数值
  2. API_CONTRACT.md:读取接口定义(在 orchestrator 流程中)

执行流程

Step 0:判断输入类型

如果收到 Figma 链接,进入 Figma 读取模式(见 Step 1A) 如果收到任务描述 + 契约文件,进入实现模式(见 Step 1B) 如果两者都有,先走 Step 1A 提取设计数据,再走 Step 1B 实现


Step 1A:Figma 读取模式

1. 提取 node ID

从 Figma URL 中解析 node-id:

https://www.figma.com/design/FILE_KEY/Name?node-id=123-456
                                                        ↑ 这就是 node ID

2. 通过 MCP 读取设计数据

按顺序调用以下工具:

# 获取选中节点的完整设计上下文(布局、组件、变量)
get_design_context(node_id: "123-456")

# 获取截图,用于视觉比对
get_screenshot(node_id: "123-456")

# 获取 design token(颜色、字体、间距变量)
get_variable_defs(node_id: "123-456")

# 如果项目有 Code Connect,获取组件映射
get_code_connect_map(node_id: "123-456")

3. 建立设计数据清单

从读取结果中提取并记录:

## 设计数据清单(来源:Figma MCP)

### 颜色
- 主色:#[精确hex值](来自变量 color/primary)
- 背景:#[精确hex值]
- 文字主色:#[精确hex值]
- ...

### 字体
- 标题:[字体族] [字重] [字号]px / [行高]px
- 正文:[字体族] [字重] [字号]px / [行高]px
- ...

### 间距(来自 Auto Layout)
- 容器内边距:[top] [right] [bottom] [left]px
- 元素间距:[gap]px
- ...

### 圆角 & 阴影
- 卡片圆角:[radius]px
- 按钮圆角:[radius]px
- 阴影:[x] [y] [blur] [spread] [color with opacity]
- ...

### 组件结构
- [组件名]:[描述层级关系]
- ...

Step 1B:实现模式

必须先读取(如果在 orchestrator 流程中):

1. docs/API_CONTRACT.md   → 接口定义
2. docs/TECH_SPEC.md      → 技术栈(含部署路径规范章节)
3. 上面建立的设计数据清单  → 所有 UI 数值

⚠️ 读取 TECH_SPEC.md 后,立即检查"部署路径规范"章节,确认 VITE_API_BASE 的约定值,后续所有 API 调用必须遵守。

实现顺序:

  1. 搭建页面结构(HTML 语义层)
  2. 注入精确 CSS 数值(全部来自设计数据清单)
  3. 接入 API(字段名严格对照 API_CONTRACT)
  4. 交互逻辑(hover、active、loading、error 状态)
  5. 响应式适配(如果 Figma 有多端稿件)

API 路径规范(子路径部署防 404,零容忍)

本团队所有应用通过 nginx 网关以 /{APP_PATH}/ 子路径对外服务。 前端 API 请求路径必须携带部署前缀,否则网关找不到匹配 location,生产环境必然 404。

强制规则

// ✅ 唯一正确写法 — 从环境变量读取前缀
const API_BASE = import.meta.env.VITE_API_BASE ?? ''
// 用法:
axios.get(`${API_BASE}/api/v1/todos`)
fetch(`${API_BASE}/api/v1/users`)

// ❌ 禁止任何形式的硬编码绝对路径
axios.get('/api/v1/todos')          // ← 生产 404
fetch('http://localhost:3000/api')  // ← 生产 404,且跨域

Read the full file on GitHub · 422 lines

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. 6d ago First seen · 422 lines · 164 tokens per session scan A 6ccf8f8273a8

Subscribe to this mod's changes

frontend-developer is an agent published in the GitHub repository xuanbingbingo/claude-standard-dev-team (100 stars, last pushed 2mo ago), licensed MIT. It adds 164 tokens to every session and 3,563 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

prism

Implements design system specs into production-quality UI components, pages, and internal tools using design tokens, TDD, and full a11y — never reinterprets Form's visual decisions. Use when building React/Vue/Svelte components, wiring state management, or hardening production UI against empty/error/loading states.…

jeremylongshore/tons-of-skills-marketplace · 78 tokens

frontend-specialist

Senior Frontend Architect for React, Next.js, Vue, and modern web systems. Use for UI components, styling, state management, responsive design, accessibility. Triggers: component, react, vue, ui, ux, css, tailwind, responsive, nextjs.

softspark/ai-toolkit · 59 tokens

frontend-engineer

Generates production-grade frontend code (React, Next.js, Vue, Blade+Alpine, vanilla HTML, Astro) with anti-AI-slop discipline. Dispatched by /ux-design, /ux-component, /ux-dashboard, /ux-fix. Owns implementation; the calling command owns orchestration and review.

Laith0003/ux-skill · 69 tokens

frontend-architect

Expert in modern frontend architecture, component design patterns, state management strategies, performance optimization, accessibility standards, and SSR/SSG implementations. Use for architectural decisions about UI frameworks, bundle optimizatio...

SteveGJones/ai-first-sdlc-practices · 44 tokens

frontend-specialist

Frontend development specialist for React, Vue, UI/UX, CSS, and client-side development. Use this agent for all frontend-related tasks including component creation, styling, and user interface work.

nwiizo/ccswarm · 42 tokens

frontend-developer

Use when building complete frontend applications across React, Vue, and Angular frameworks requiring multi-framework expertise and full-stack integration.

1024XEngineer/bytemind · 27 tokens