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.

Good fit 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.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xuanbingbingo/claude-standard-dev-team/frontend-developer
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/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-developer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00164 $0.03563
Opus 5.5 $0.00066 $0.01425
Sonnet 5.5 $0.00033 $0.00713
Haiku 4.5 $0.00016 $0.00356

Measured 1mo ago against content hash 6ccf8f8273a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (104 stars, last pushed 4mo ago), licensed MIT. It adds 164 tokens to every session and 3,563 once invoked, about $0.0007 per session on Opus 5.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

frontend-developer

Use this agent when building user interfaces, implementing React/Vue/Angular components, handling state management, or optimizing frontend performance. This agent excels at creating responsive, accessible, and performant web applications.

PMDevSolutions/Aurelius · 43 tokens

frontend-specialist

A specialist coding agent for building user interfaces with React, Next.js, Vue, or Svelte. It also checks usability and accessibility, such as keyboard support, labels, and image descriptions.

smorky850612/Aurakit · 51 tokens

frontend-designer

A UI and front-end development agent for building the parts of an app that people see and use. It works with React, Vue, HTML/CSS, Tailwind, and design tokens from Figma.

workdd/my_claude_code_setting · 84 tokens

fullstack-ui-designer

Frontend designer for fullstack applications. Use to create distinctive, production-grade UI components. Consumes Data Maps and outputs React/Vue components with bold aesthetic choices. Avoids generic AI aesthetics.

cfircoo/claude-code-toolkit · 44 tokens

ui-engineer

Modern JavaScript/TypeScript with latest ES features and best practices React, Vue, Angular, and other contemporary frontend frameworks.

bl1nk-bot/bl1nk-agents-manager · 29 tokens

designer

UI/UX implementation agent for frontend work. Use proactively when tasks involve React, Vue, Svelte, Angular components, CSS/Tailwind styling, responsive layouts, accessibility, animations, or any user interface work. Builds polished, accessible interfaces.

goamaan/claudeops · 51 tokens