阻止 Claude 代码/光标猜测界面。将任何网站的设计系统提取成符合规范且通过官方 @google/design.md linter 的规范 DESIGN.md。
概览
阻止 Claude Code、Cursor 和 Gemini CLI 猜测你的 UI。BrandMD 会将任何网站的设计系统提取成通过官方 @google/design.md linter 的 a。 当AI编码代理不知道你的颜色、字体、间距、组件和布局规则时,会生成通用界面。运行一个命令,在项目根中 DESIGN.md,代理在写代码前就有了品牌上下文。输出是官方 DESIGN.md 格式:YAML frontmatter,带有机器可读的标记和规范的散文段落。默认提取在本地运行,没有API密钥。 每个生成的 DESIGN.md 都能验证干净: 传递多个URL以合并品牌代币跨页面:npx brandmd https://site.com https://site.com/pricing https://site.com/docs -o DESIGN。
概述(AI 翻译)
阻止 Claude Code、Cursor 和 Gemini CLI 猜测你的 UI。brandMD 会将任何网站的设计系统提取成一个 spec-valid DESIGN.md,并通过官方 @google/design.md 打印。
AI编码代理在不了解你的颜色、字体、间距、组件和布局规则时,会生成通用界面。运行一个命令,在项目根中插入DESIGN.md,你的代理在写代码前就已经有了品牌上下文。输出是官方 DESIGN.md 格式:带有机器可读标记和规范散文段落的YAML前置文件。默认提取在本地运行,没有API密钥。
每个生成的DESIGN.md都能验证干净:
传递多个URL以合并品牌代币跨页面:npx brandmd https://site.com https://site.com/pricing https://site.com/docs -o DESIGN.md
输出到你的堆栈读取的输出:
DESIGN.md(默认):用于Claude代码、光标、Gemini CLI、Codex、Stitch--json:脚本、MCP服务器和代理工具链的原始提取令牌--css:CSS 自定义属性,可直接插入任意项目--tailwind:Tailwind v4@theme区块--html:可视化、可分享的品牌指南
结合:
--agent:也写作’。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
brandmd
Stop Claude Code, Cursor, and Gemini CLI from guessing your UI. brandmd extracts any website’s design system into a spec-valid DESIGN.md that passes the official @google/design.md linter.
AI coding agents generate generic screens when they don’t know your colors, fonts, spacing, components, and layout rules. Run one command, drop DESIGN.md in your project root, and your agent has brand context before it writes code. Output is the official DESIGN.md format: YAML frontmatter with machine-readable tokens plus canonical prose sections. Default extraction runs locally with no API key.
npx brandmd https://stripe.com -o DESIGN.md
Every generated DESIGN.md validates clean:
npx @google/design.md lint DESIGN.md # 0 errors, 0 warnings
Pass multiple URLs to merge brand tokens across pages: npx brandmd https://site.com https://site.com/pricing https://site.com/docs -o DESIGN.md
Outputs to whatever your stack reads:
DESIGN.md(default): for Claude Code, Cursor, Gemini CLI, Codex, Stitch--json: raw extracted tokens for scripts, MCP servers, and agent toolchains--css: CSS custom properties, drop into any project--tailwind: Tailwind v4@themeblock--html: visual, shareable brand guide
Combine with:
--agent: also writes.cursor/rules/brand.mdcandSKILL.mdto both.agents/skills/brand-style/(the universal Agent Skills path used by skills.sh across 50+ agents) and.claude/skills/brand-style/(backward-compat for direct Claude Code users). No manual wiring. Picked up automatically by Claude Code, Cursor, Codex, Gemini CLI, Kiro CLI, and the rest of the skills.sh ecosystem. Schema-compatible with Anthropic Claude Code Skills, google/skills, and vercel-labs/agent-skills.--dark: also extract dark mode tokens--vision: adds illustration style, photography mood, copywriting voice, and microcopy patterns from a screenshot. RequiresGEMINI_API_KEY(free at aistudio.google.com/apikey). Usesgemini-3.8-flash; setBRANDMD_VISION_MODELto pick another model. If the screenshot or the vision call fails the CSS-onlyDESIGN.mdis still written and the run exits 1.
Works as brand context for Claude Code, Cursor rules, Gemini CLI, Codex, Google Stitch, MCP servers, and any coding agent that reads markdown.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add yuvrajangadsingh/brandmd