yeguang112

Frontend Design Pipeline — Data skill for Claude Code

Data community

Agent skill for frontend design governance: intent -> brand DESIGN.md -> signed guidelines (do/never) -> frozen HTML -> tokens & component contract -> change control -> screenshot acceptance.

How to install Frontend Design Pipeline

This entry records only its repository, not the path inside it, so there is no exact command to give. Open yeguang112/frontend-design-pipeline and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Frontend Design Pipeline does

Agent skill for frontend design governance: intent -> brand DESIGN.md -> signed guidelines (do/never) -> frozen HTML -> tokens & component contract -> change control -> screenshot acceptance. 前端设计链路规则包。

Alternatives in Data

  • Data Contract — This document defines which files belong to the system (auto-updatable) and which belong to the user (never to 32.5k ★
  • Sprite Gen — Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame 763 ★
  • Query Token Info — Search tokens and fetch metadata, real-time market data, and K-Line candlestick charts by keyword or contract 483 ★

README

前端设计链路(Frontend Design Pipeline)

[![CI](https://github.com/yeguang112/frontend-design-pipeline/actions/workflows/ci.yml/badge.svg)](https://github.com/yeguang112/frontend-design-pipeline/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Node](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org) [![AE](https://img.shields.io/badge/agent-skill-6f42c1.svg)](SKILL.md)

**An agent skill that turns "make it look good" into a governed pipeline:** intent → brand DESIGN.md → signed guidelines (do / never) → frozen HTML → tokens & component contract → change control → screenshot acceptance. 中文说明为主,规则可直接用于 Claude Code / Codex / DSH / Cursor 等 agent。

让 AI 前端「风格可控、实现一致、验收客观、长期不漂移」。 形态:**Agent Skill(主)+ Prompt 存根(备)**。品牌规范库来自 [awesome-design-md](https://github.com/VoltAgent/awesome-design-md)(MIT), 结构参考 [open-design](https://github.com/nexu-io/open-design)(Apache-2.0)。


1. 它解决什么

用户一句话
   │
   ▼
P0 意图识别 ──► Design Read(产物/受众/氛围/表盘/置信度)
   │
   ▼
P1 风格路由 ──► 10 风格族 ──► 58 品牌 DESIGN.md ──► 1 主 + ≤1 辅参考
   │
   ▼
P2 准则校准 ──► frontend-guidelines.md(正面清单 + 反面清单)◄──┐
   │              │ 用户签收 v1.0                              │ 迭代
   │              ▼                                           │
P3 HTML 静态稿 ──► prototype/index.html(全状态/三档视口)──────┘
   │
   ▼
P4 冻结 ──► design/frozen/ + freeze-manifest.json(只读)
   │
   ▼
P5 Token + 组件 ──► tokens.json/css/md + components.md(先定死)
   │
   ▼
P6 跨端落地 ──► App / 小程序(只换单位,不换视觉)
   │
   ▼
P7 变更控制 ──► 八项自检矩阵 + 漂移检测(每次改动)
   │
   ▼
P8 截图验收 ──► 逐 route × state × viewport 截图 + A1–A12 客观判定

AI 做前端有三个稳定失败模式:

  1. 风格不可控:每次生成的都像另一个产品,且默认滑向「紫渐变 + 玻璃 + 大圆角卡片」。
  2. 实现不一致:同一个按钮在不同页面三种高度,颜色/字号/圆角每次重新发明。
  3. 长期漂移:改到第 20 屏时,已经没人记得最初的设计方向。

本链路的答案:

失败模式 机制
风格不可控 意图识别 → 10 个风格族 → 58 个品牌 DESIGN.md → 与用户确认 frontend-guidelines.md(正面/反面清单)
实现不一致 HTML 静态稿冻结 → 提取 tokens → 组件契约「先定死、只引用」
长期漂移 变更自检矩阵 + 设计指纹 + 逐 tab