brand-extract
它能做什么
这个工具可以从网站中提取颜色、字体、logo 等设计信息,生成一份“品牌套件”(Brand Kit)。它的做法是直接测量网站本身,而不是凭空猜测。
适用场景
- ✓当你需要为一个现有网站制作品牌指南时。
- ✓当你开始一个设计项目,需要视觉参考时。
- ✓当有人让你“提取某个网站的品牌”时。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/brand-extract/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“从 example.com 提取品牌信息”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会用浏览器访问网站,直接从页面的代码和设计中收集颜色、字体、logo 等数据,然后整理成一份“品牌套件”。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
brand-extract
Turn a live website into a complete, machine-consumable Brand Kit —
identity, semantic color palette, typography, voice — by measuring the real
page, not guessing from memory. This is the methodology behind a brand-extraction
project: the target site is open in a secondary in-app Browser tab, and you
drive it with the agent-browser tool.
The live kit page (brand.html)
The extraction project opens with brand.html as the active tab — a
self-contained brand-kit page (template:
brand-extract/templates/brand-kit.html) that the daemon renders from
brand.json. The daemon pre-seeds it with a deterministic first paint — a
harvested logo, an approximate palette, font families, and a few cover images —
so it is NOT all-skeleton when it opens. Your job is to replace that seed with
measured truth and fill in the rest, progressively, so the user watches it
complete module by module. You never hand-edit it: you write brand.json, then
run od brand preview <brandId> and the daemon re-renders the page (the page
soft-reloads itself while extracting). Optimize for fast first paint and
progressive fill-in — write a partial brand.json and preview it the moment
you have a name, a couple of colors, and a logo, then preview again after each
field group rather than batching the whole kit to the end.
The trap to avoid: an LLM left alone regresses to the mean — Inter, an indigo accent, a purple gradient. That is off-brand for everyone. Every value you emit must trace to something you measured on the page.
The three-step chain
Work in order. Skipping straight to writing brand.json is how off-brand,
hallucinated kits happen.
1. Measure (drive the open Browser tab)
Use agent-browser against the selected browser tab (its URL/title are in
your run context — treat "this page" / "the site" as that tab):
agent-browser get url/get titleto confirm the target.agent-browser snapshotbefore extracting anything.- Harvest the real design language from the DOM/CSS, not the screenshot alone:
- Colors — frequency-rank color literals and resolve the seven semantic
roles:
background,surface,foreground,muted,border,accent,accent-secondary. The most frequent near-white/cream is usually the background; the most frequent chromatic mid-saturation color is usually the accent. - Typography — the
@font-facenames andfont-familydeclarations for display, body, and (if present) mono. Note weights actually used. - Logo (save MULTIPLE candidates) — extract every logo asset you find and
save each as a file under
logos/: the inline header/nav<svg>(write the literal<svg>…</svg>markup verbatim tologos/header.svg— do not just reference it), any<img>logo,apple-touch-icon, favicon, andog:image. Fetch the asset URLs directly — never leavelogo.primaryempty when the site has any mark. Setlogo.primaryto the best vector / transparent lockup (SVG wordmark > apple-touch-icon > favicon > og:image) and list the rest inlogo.alternates; the kit page renders them as switchable thumbnails. (The daemon auto-fetches a favicon/og:image fallback intologos/so the page is never logo-less, but that safety net is no substitute for saving the real wordmark.) - Imagery (save 6–8 of the site's LARGE / COVER / HERO images) — this is
the Images module. Harvest the site's actual big representative pictures and
save them into
imagery/: theog:image/twitter:imagesocial card, the hero/banner art, the largest<img>(resolve the highest-ressrcset/<picture>source), CSSbackground-imagehero blocks, product or app screenshots, and illustration/photography samples. Filter by rendered size — keep only big images (roughly ≥320px on the long edge) and drop icons, sprites, logos, avatars, and tracking pixels. List them inbrand.jsonasimagery.samples(see shape below); the kit page renders them as a clean labeled Images gallery (a thumbnail grid). Pick 6–8 varied, on-brand images — never UI chrome or icons. (The daemon runs a deterministic cover/hero-image fallback at finalize so the gallery is rarely empty, but that safety net is no substitute for picking the real hero images.)
- Colors — frequency-rank color literals and resolve the seven semantic
roles:
…
常见问题
什么是“品牌套件”?
它是一套定义品牌形象的指南和视觉元素,包括颜色、字体、logo 等。
如果网站有安全验证(比如验证码),会怎样?
工具会提示你在浏览器中完成验证,然后继续提取。
这个工具是靠猜测还是真实收集信息?
它直接从网站上测量视觉元素来收集信息,所以结果比较准确。
详情
作者的原始描述
Extract a complete Brand Kit from a live website by driving the in-app browser. Use when a brand-extraction project opens with a site in the Browser tab, or when the user asks to "extract a brand", "pull the brand from <url>", "get the colors/fonts/logo from this site", or build a brand/design system from a reference website. Pairs with the agent-browser tool for measurement and pauses for the use
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1127
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …