Impeccable:76K 星的 AI 前端设计技能包,让 Claude Code 做出好设计

Impeccable: The 76K-Star AI Frontend Design Skill — Stop Getting Generic Designs from Claude Code

Tech-Experiment #前端设计#Coding Agent#Claude Code#UI设计#Skill#开源工具
🇨🇳 中文

问题很具体:让 Claude Code 做前端,出来的设计总是那个样子——Inter 字体、蓝紫渐变、到处套卡片、图标上面配圆角方块。不是 Claude 不努力,是所有模型都在同一套 SaaS 模板上训练的。

Impeccable 从 Anthropic 官方的 frontend-design skill 出发,补上了这个缺口:给 AI 一套有设计判断力的工作语言。

GitHub: https://github.com/pbakaus/impeccable | ⭐ 76,323 | Apache-2.0 | JavaScript

76K 星是这个规模 skill 仓库里罕见的数字——它的定位比通用 coding skill 窄很多,但在前端设计这个垂直场景里击中了痛点。


两层设计指导

Impeccable 做两件事:

1. 给 AI 上下文(PRODUCT.md)

/impeccable init 检查项目,询问产品受众、用途、约束、调性,然后写入 PRODUCT.md。这份文件存的是「产品真相」——不是视觉指向,是目标受众是谁、产品在什么场景下运行、什么不能做。

后续的所有 /impeccable 命令都会读这份文件,所以 AI 不会每次都从零猜。如果已有视觉系统,写进 DESIGN.md,模型就知道参考什么,不用重新发明。

2. 给 AI 24 个操作命令

/impeccable <command> <target>

不同命令对应不同的设计阶段:

阶段命令
建立设计系统init, document, extract, shape
细化质量polish, audit, critique, harden
调整风格bolder, quieter, distill, colorize, typeset, layout
添加细节animate, delight, overdrive, onboard
浏览器实时live, generate

24 个命令详解

几个最常用的:

/impeccable craft <target> — 完整的「从设计到实现」流程,带视觉迭代,适合从零起步。

/impeccable polish <target> — 上线前最后一遍对齐设计系统,相当于 AI 做 final review。

/impeccable audit <target> — 可访问性、性能、响应式布局的技术检查。

/impeccable critique <target> — UX 层面的设计评审:信息层级、清晰度、情感共鸣。

/impeccable bolder / quieter — 「太无聊了」或「太嗨了」时用,一句话调整设计强度。

/impeccable live — 在浏览器里开启视觉变体模式,AI 实时生成并展示变体,不用手动挑。

/impeccable generate <element> — 针对某个具体元素(hero section、导航栏等)自动生成多个变体。

用法示例:

/impeccable audit blog           # 审查博客页面
/impeccable polish settings      # 设置页上线前最后打磨
/impeccable harden checkout      # 结账页加错误处理和边界 case
/impeccable critique landing     # 落地页 UX 评审

也可以直接描述意图:

/impeccable redo this hero section

61 条确定性检测规则

这是 Impeccable 最有意思的一个设计决策:把「AI 检测」和「规则检测」分开。

61 条确定性规则不需要 LLM,不需要 API Key,CLI 和浏览器扩展直接跑,毫秒级返回结果。LLM 只处理无法规则化的主观判断(比如视觉层级、情感共鸣)。

这个分工的好处:

  • 确定性规则快、便宜、离线可用,适合嵌进 CI
  • LLM critique 只跑在真正需要主观判断的地方,减少不必要的 API 消耗

反模式清单

Impeccable 明确列出了十类 AI 生成设计的常见问题,作为负面约束:

  • 字体:避免 Arial、Inter、系统默认字体——这些是「我没有想字体」的信号
  • 颜色:避免灰底白字(对比度不够);避免纯黑纯灰(永远要加色调)
  • 布局:避免到处套卡片,尤其是卡片套卡片
  • 图标:避免标题上方的圆角方块图标 tile——那是 SaaS 模板的标配
  • 动效:避免 bounce/elastic 缓动曲线(2015年的味道)

这份清单本身就值得贴在项目文档里,跟不跟 Impeccable 用都有参考价值。


安装

推荐方式(一行命令):

npx impeccable install

检测你本机已安装的 Harness(Claude Code、Cursor、Codex、Grok Build 等),让你选择安装范围(当前项目或全局),完成后在 AI 工具里跑 /impeccable init 就能用。

Claude Code 插件市场:

/plugin marketplace add pbakaus/impeccable

Git 子模块(团队使用):

git submodule add https://github.com/pbakaus/impeccable .impeccable
npx impeccable link --source=.impeccable --providers=claude,cursor

支持的 Harness:Claude Code、Cursor、Codex、Grok Build、Gemini CLI、Hermes、Veto、OpenCode、Pi、VS Code Copilot、DeepSeek Harness 等。


局限

  • 不自己写代码:Impeccable 是指导框架,实际代码由你选择的 AI 生成。PRODUCT.md 的质量决定了命令的效果上限——初始化时如果随便填,后面的命令也得不到好结果。
  • live/generate 依赖浏览器:实时变体功能需要浏览器扩展,纯 CLI 场景下用不了。
  • Apache-2.0 但引擎二进制单独分发:skill 文件是 Apache-2.0,但 ~/.impeccable/bin/ 里的引擎二进制是独立下载的,许可证条款见 impeccable.style。

Apache-2.0 开源(skill 部分)。引擎二进制从官网单独分发,使用前请确认各自许可条款。开源仅供学习参考。


🇬🇧 English

Impeccable: The 76K-Star Frontend Design Skill for AI Coding Agents

The pattern is familiar: ask Claude Code to build a frontend and you get the same results — Inter everywhere, blue-to-purple gradients, cards nested in cards, rounded-square icon tiles above every heading. Not Claude’s fault; every model trained on the same SaaS templates.

Impeccable starts from Anthropic’s official frontend-design skill and fills the gap: a design language that gives your AI coding agent real design judgment.

GitHub: https://github.com/pbakaus/impeccable | ⭐ 76,323 | Apache-2.0 | JavaScript


Two Layers of Design Guidance

1. Give AI durable context (PRODUCT.md)

/impeccable init inspects your project, asks about product audience, purpose, operating context, constraints, voice, and evidence — then writes PRODUCT.md. This is “product truth” — not visual direction, but who the audience is, what environment the product runs in, what’s off-limits.

All subsequent /impeccable commands read this file, so the AI never guesses from scratch. Existing visual systems go in DESIGN.md.

2. Give AI 24 design commands

Design stage → command mapping:

StageCommands
Build design systeminit, document, extract, shape
Refine qualitypolish, audit, critique, harden
Adjust stylebolder, quieter, distill, colorize, typeset, layout
Add detailanimate, delight, overdrive, onboard
Live browserlive, generate

61 Deterministic Detector Rules

The key architectural decision: separate rule-based detection from LLM critique.

61 deterministic rules run with no LLM and no API key — the CLI and browser extension execute them in milliseconds. LLM checks only run for subjective judgment (visual hierarchy, emotional resonance). This makes the deterministic checks fast, cheap, offline-capable, and CI-embeddable.


The Anti-Pattern List

Impeccable explicitly names what to avoid in AI-generated design:

  • Fonts: no Arial, Inter, system defaults — these signal “I didn’t think about fonts”
  • Color: no gray text on colored backgrounds; no pure black/gray (always add a tint)
  • Layout: no card nesting; no rounded-square icon tiles above headings
  • Motion: no bounce/elastic easing

Even without using Impeccable, this list is worth keeping in your project docs.


Installation

One-line install (recommended):

npx impeccable install
# then inside your AI tool:
/impeccable init

Detects installed harnesses (Claude Code, Cursor, Codex, Grok Build, etc.), asks project vs. global scope, installs and configures.

Claude Code plugin marketplace:

/plugin marketplace add pbakaus/impeccable

Git submodule (for teams):

git submodule add https://github.com/pbakaus/impeccable .impeccable
npx impeccable link --source=.impeccable --providers=claude,cursor

Supported harnesses: Claude Code, Cursor, Codex, Grok Build, Gemini CLI, OpenCode, Pi, VS Code Copilot, Hermes, Veto, and more.


Constraints

Impeccable is a guidance framework — actual code is written by your chosen AI. PRODUCT.md quality sets the ceiling for command effectiveness. The live/generate browser iteration features require the browser extension; pure CLI doesn’t get them. The skill files are Apache-2.0; the engine binary at ~/.impeccable/bin/ is distributed separately from impeccable.style — check its terms before use.


Apache-2.0 (skill files). Engine binary distributed separately from impeccable.style — verify terms before use. For technical reference only.

💬 评论与讨论

使用 GitHub 账号登录后发表评论

关于本站 · 免责声明

🍄 Mushroom Research Blog 是非营利、免费公开的个人科技观察博客与公众号 XStack18,不接受商业合作、不代表任何企业或机构立场,也不谋求商业利益。我们以个人视角客观中立地记录和分析 AI、Web3 等领域的最新模型发布与技术动态——不止转述新闻标题或二手信息,而是给出有独立思考的深入分析,希望帮更多人获得有价值的一手科技认知。

⚠️ 文中介绍的开源代码与模型,仅供学习交流与技术借鉴。它们大多仍处于早期阶段,有待进一步研究和验证,请勿直接用于工作或生产环境;如需采用,请先自行充分测试,并核实其许可证与安全性。
Open-source code and models featured here are shared for learning and reference only. Most are early-stage and still need further study and verification — please don't use them directly in your work or in production. Test them thoroughly and check their licenses and security first.

  1. 本站文章均为作者基于公开信息的个人研究与观点整理,不代表文中提及的任何公司、产品、模型的官方立场,未与其构成商业关联或合作关系。
  2. 科技行业信息更新极快,我们尽力保证内容准确、及时,但不对完整性、实时性做绝对保证,具体请以相关企业/项目官方公告为准。
  3. 文中引用的第三方商标、产品名称、图片、数据等版权归原权利人所有,我们会尽量注明来源;如你认为存在版权疑问或侵权,请通过下方邮箱联系我们,收到通知后会尽快核实处理(更正、加注来源或删除)。
  4. 文章内容仅为技术科普与个人观点,不构成投资、法律或其他专业建议,据此进行任何决策的后果需自行判断和承担。

📮 侵权 / 勘误 / 合作咨询:[email protected]