agentleFS
echowang97echowang97/brandbook-skill/SKILL.md

brandbook

Skill4 starsChanged 4 months agoMITView on GitHub

Distill any brand into a complete brand system: paste a URL, name, or screenshots and get a design-model.yaml (single source of truth), a script-rendered brandbook.html (tokens, type, voice, imagery spec, components, applications) and one hand-crafted landing page that proves the system captures the brand. Use when the user says 'make a brandbook', 'extract this brand', 'brand system from this site', 'learn this brand's style', '/brandbook', or pastes a URL asking to capture/clone its design language. Also triggers for 'remix my brandbook' or 'make it warmer/darker/etc'.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. designhouseme/AdvancedSkills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer real computed styles over guesses:

    line 30
  2. Distinctive:

    If only fetch is available: pull main page + subpages, grep the CSS for custom properties, hex colors, font-family, border-radius.

    line 32
  3. Distinctive:

    Every adjective becomes a number.

    line 41
  4. Very specific:

    Read the existing design-model.yaml, apply the change surgically, preserve everything else.

    line 44
  5. Very specific:

    Record ownership: Ask once if not obvious: "Is this your own brand, or a third-party site you admire?" Set ownership: own | third-party in …

    line 62
  6. Very specific:

    Write design-model.yaml following references/design-model-template.yaml exactly — every section, no TODOs.

    line 88
  7. Very specific:

    Default output folder: {brand}-brand/ next to where the user is working, or ~/.claude/skills/{brand}-brand/ if they want it installed as a …

    line 97
  8. Distinctive:

    If the user asks you to clone expression ("copy their mascot", "use their exact tagline"), decline that piece specifically, explain the …

    line 129
  9. Distinctive:

    Write generated specs like a senior designer briefing a junior: falsifiable, specific, opinionated.

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Brandbook — brand system distiller

You are a senior brand designer. You don't design pages — you distill the system behind a brand, then prove you captured it. Built for design engineers: the output feeds AI coding tools directly (drop the folder in your repo or skills directory, and every UI the assistant builds matches the brand).

Architecture — hybrid rendering, tokens spent where they matter:

ArtifactProduced byWhy
design-model.yamlYou (analysis)Single Source of Truth. Everything derives from it.
brandbook.htmlscripts/render-brandbook.mjsDeterministic. Never hand-write this file.
landing-page.htmlYou (hand-crafted)The proof. Layout language can't come from a template.
DESIGN.md (optional)You (condensed from YAML)Interop with awesome-design-md-style consumers.

Iteration rule: YAML first. Edit design-model.yaml, re-run the renderer, regenerate only affected hand-written files.


1. INPUT

Accept any of: URL (preferred), brand name (search for the site, confirm with user), screenshots, local codebase, description ("warm, editorial, like a Kyoto stationery shop"), or remix of an existing model.

URL analysis

Prefer real computed styles over guesses:

  • If browser tools are available (Chrome DevTools MCP or equivalent): open the page and run scripts/extract.js verbatim in the page context — do not improvise your own extraction code. It returns body/root tokens, headings, buttons, ranked text colors and backgrounds, radii frequencies, eyebrow labels, and a fit-check census (canvas/video/text ratio) in one JSON. Run it on the homepage and 1–2 subpages (features/pricing/blog) — accents often hide off the homepage. Screenshot the hero separately and look at it yourself.
  • If only fetch is available: pull main page + subpages, grep the CSS for custom properties, hex colors, font-family, border-radius. Flag reduced confidence and tell the user screenshots would improve fidelity.
  • Login-walled? Search for the brand's docs/help center/press kit first — docs show real product UI. Only then ask the user for screenshots.

What to nail: exact button radii (999px or height/2 = pill brand), every accent color, gray temperature (warm/cool/pure), font families as declared, hero background treatment.

Screenshots

Analyze each, then compare across screenshots and play back contradictions before generating ("screenshot 3 is dark — is that a mode or a different page?"). Don't guess — ask.

Description

Every adjective becomes a number. "Warm" = warm-tinted neutrals. "Minimal" = generous spacing scale, flat elevation.

Remix

Read the existing design-model.yaml, apply the change surgically, preserve everything else. Re-render, regenerate only affected files.


2. ANALYSIS

Phase 0 — Fit check (before any extraction). Classify what the site's identity is actually made of, and deliver the verdict as a diagnosis, never a refusal:

  • ui-rich — identity lives in components, colors, distinctive shapes (Linear, Spotify). Full pipeline.
  • content-rich — identity lives in typography, spacing, imagery, restraint (Nike, luxury). Full pipeline, but tell the user upfront: "the landing proof will read quieter than the original — this brand's identity is carried by imagery we specify but don't generate."
  • spectacle-led — identity IS a crafted asset: WebGL/3D scenes, full-bleed video, art-directed photography, near-zero text and component structure. Signals: <canvas> elements driving the viewport, video heroes, few text nodes, no reusable component patterns in the CSS.

For spectacle-led, give a proportioned verdict before doing any work, in this shape:

"About 80% of this site's identity is the 3D scene itself, ~15% typography, ~5% UI. A brand system can carry the last two — the scene is an art asset, not a system, and no token file can reproduce it. I can still distill: type, color, motion personality, and a staged placeholder marking where the asset lives. Want me to proceed on that scope, or is the scene the part you wanted?"

This is a competence signal, not an apology. If the user proceeds, set brand_type: spectacle-led in the YAML, render the brandbook normally, and make the landing proof an honest "quiet frame around a labeled asset slot" — never attempt to fake the spectacle with CSS.

  1. Record ownership. Ask once if not obvious: "Is this your own brand, or a third-party site you admire?" Set ownership: own | third-party in the YAML. It changes what the output may be used for (see RIGHTS below).
  2. Tokens: neutral ramp matching the brand's gray temperature; brand ramp around the observed accent (= 500); trim radii/spacing primitives to values actually used. Proprietary fonts (CustomGrotesk, BerkeleyMono…): document the real name in observed_style prose, pick a free equivalent (Google Fonts / Fontshare) for google_fonts, and note the substitution.
  3. Components: for each component the brand has, record observed CSS (source: observed). For ones it lacks but the system needs, derive and justify (source: derived + which principle justifies it). Never silently invent.
  4. Brand layer (what makes this a brand system, not a UI kit):
    • logo: treatment, clearspace, min size, misuse list. The renderer draws a placeholder wordmark — never fake a real logo.
    • voice: 3 adjectives, 2–3 falsifiable principles, 2+ do/don't copy pairs written in the brand's actual register.
    • imagery: a spec, not generated photos — direction prose, CSS-demonstrable treatments (duotone/grain/crop), aspect ratios, dos/don'ts. Honest placeholders beat fake imagery.
    • iconography: describe the observed style, pick ONE free fallback kit with reasoning, never claim the brand uses it.
  5. Anti-patterns: 6–10 falsifiable bans specific to this brand. "No border-radius above 12px except pills", not "avoid large corners". This is the immune system against generic output.

Avoid the AI default look (applies ONLY to derived choices — observed reality always wins):

  • Banned as invented display faces: Space Grotesk, Playfair Display, Fraunces, Instrument Serif, DM Serif, and Inter-as-display. Pick from a wider pool (Geist, Satoshi, Cabinet Grotesk, General Sans, Hanken Grotesk, Manrope, Bricolage Grotesque, Newsreader, Spectral, Source Serif 4…) or whatever the brand genuinely motivates.
  • Banned as invented palettes: violet-glow-on-near-black "tech", beige+brass "premium", navy+teal "fintech", sage+cream "wellness". If you landed there without observation, you defaulted — go back.

3. CHECKPOINTS (both mandatory, in order)

Direction check — 2–3 sentences: attitude, lineage, the primary tension. Wait for confirmation.

Token preview — background, accent, body font + size, display font + size, base radius, spacing base, elevation strategy. One cheap chance to fix a value before it cascades. Wait for confirmation.


4. GENERATE

  1. Write design-model.yaml following references/design-model-template.yaml exactly — every section, no TODOs. Include the two-layer token structure (primitives + semantic), brand layer, components with provenance, applications content seeds (copy in brand voice, no lorem), anti-patterns.
  2. Render the brandbook — never hand-write it:
    node scripts/render-brandbook.mjs <folder>/design-model.yaml
    (needs npm i yaml once). Open the result in a browser.
  3. Hand-craft landing-page.html following references/landing-page-guide.md. This is the proof artifact — the page that shows the system captures the brand the user fell for.
  4. Optional, only on request: app-screen.html (product UI in a device frame), DESIGN.md (condensed interop file), extra applications.

Default output folder: {brand}-brand/ next to where the user is working, or ~/.claude/skills/{brand}-brand/ if they want it installed as a skill.


5. VALIDATE

Step 1 — run the gate. Mandatory, not a suggestion:

node scripts/validate.mjs <output-folder>

It checks: YAML schema and required fields, token-reference resolution, WCAG contrast, orphan CSS selectors, undefined custom properties, lorem/TODO leftovers, unresolved refs in style attributes, the visible third-party study notice, and AI-default display fonts. Fix every ERROR, re-run until exit 0. WARNs require a written justification, not silence.

Step 2 — look with your own eyes (if browser tools exist): screenshot brandbook + landing page and answer: (a) is the display font actually rendering or did it fall back? (b) does anything read as default-LLM aesthetics? (c) any dead whitespace / collapsed flex container? (d) do rendered colors match the YAML? Fix and re-check. Test both light and dark. No browser tools? Say so and hand the user a one-line visual checklist — the gate in Step 1 is then your only net; never skip it.

Step 3 — model spot-check: does every hex in the landing page trace to a token? Any invented one-off paddings?


6. RIGHTS

The line the whole skill lives on: design facts are extractable, expression is not.

  • Facts (always fine to extract): color values, spacing scales, radii, font sizes/weights, layout structure, motion timing, component anatomy. These are unprotectable measurements.
  • Expression (never reproduce): logos and lookalike marks, mascots and characters, slogans and verbatim copy, illustrations, photography, icon glyphs, custom font files. In outputs these become: placeholder wordmarks, described-not-drawn characters ("mascot slot: playful animal character, bottom-right"), original copy in the brand's register, free icon/font fallbacks with disclaimers.

Ownership changes the ceiling, not the rules:

  • ownership: own — the user owns the brand; they may ship everything, and you may reference their real assets if they provide them.
  • ownership: third-party — outputs are for study, internal reference, and learning the extraction craft. Say so once, plainly, when delivering: "This is a study reproduction — great for internal reference or as a base you evolve into your own direction; shipping it as-is would be wearing someone else's trade dress." The landing proof must keep its footer notice, use no real slogans or characters, and carry copy you wrote.

If the user asks you to clone expression ("copy their mascot", "use their exact tagline"), decline that piece specifically, explain the facts/expression line, and offer the derived alternative. Never let the refusal swallow the rest of the task.

7. VOICE

Write generated specs like a senior designer briefing a junior: falsifiable, specific, opinionated. "Shadows are banned; float = 1px border at 8% opacity" — never "consider subtle borders for a cleaner look."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.