agentleFS
stephenturnerstephenturner/skill-brand-yml/SKILL.md

brand-yml

Skill7 starsChanged 9 months agoMITView on GitHub

Create a _brand.yml file for Quarto projects that captures brand colors, typography, and identity in a structured YAML format. Use this skill whenever the user mentions _brand.yml, brand.yml, Quarto branding, brand identity for Quarto, or wants consistent colors and fonts across Quarto documents, websites, presentations, or Shiny apps. Also trigger when the user asks to extract brand colors or fonts from a website, PDF brand guidelines, or style guide for use with Quarto. Even if the user just says "set up my brand" or "make my Quarto docs match our brand," this is the right skill.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 1

    1. stephenturner/skills★ 8100% same

    Edited · 0

    None found.

    Wrote their own version · 3

    1. posit-dev/skills★ 557same name
    2. worldbank/geoPovLearn★ 2same name
    3. BrightGold70/skills★ 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

Show its rules and text

We split this skill into the rules it gives an agent

30 rules. 0 are common, 15 are distinctive, and 15 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 15

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the full specification:

    line 12
  2. Distinctive:

    If the source is ambiguous, ask which approach the user prefers.

    line 34
  3. Distinctive:

    Use web search to fill gaps when helpful:

    line 38
  4. Distinctive:

    Verify exact hex values for well-known brands if the user gives a name but not a code (e.g., "use UVA colors").

    line 41
  5. Very specific:

    Check Google Fonts for available weights and styles when setting up typography.fonts entries.

    line 42
  6. Distinctive:

    Follow these rules strictly:

    line 46
  7. Very specific:

    Use the simple string form whenever the complex mapping form is not needed.

    line 50
  8. Very specific:

    Keep color.palette flat. No nesting.

    line 51
  9. Very specific:

    Prefer hex color values everywhere.

    line 52
  10. Very specific:

    Never set color inside typography.base.

    line 54
  11. Very specific:

    Prefer source: google over source: bunny for web fonts.

    line 58
  12. Very specific:

    Use placeholder file paths under a logos/ directory.

    line 63
  13. Very specific:

    Add a comment telling the user to download and place the logo files next to _brand.yml.

    line 64
  14. Distinctive:

    When a brand provides a range of shades/tints, pick the midpoint as the palette entry.

    line 67
  15. Distinctive:

    Create aliases for Bootstrap primary color names (blue, red, green, orange, etc.) when a brand color maps naturally to one.

    line 68
  16. Distinctive:

    Only include if the user specifically asks for Bootstrap, Quarto format, or Shiny theme customizations.

    line 72
  17. Distinctive:

    Before presenting the output, mentally check:

    line 76
  18. Very specific:

    Every color.palette reference used in theme colors actually exists in the palette.

    line 78
  19. Distinctive:

    No circular references in color aliases.

    line 79
  20. Very specific:

    Complex brands or when the user requests a file: Create the file at /home/claude/_brand.yml, then copy it to …

    line 90
  21. Distinctive:

    Search for the official hex values.

    line 102
  22. Distinctive:

    After fetching the page and CSS:

    line 106
  23. Very specific:

    Look for CSS custom properties (--brand-primary, --color-accent, etc.) first.

    line 107
  24. Very specific:

    Check <link> tags for Google Fonts imports to identify font families and weights.

    line 109
  25. Very specific:

    If the user only provides a primary color and a font name, generate a minimal file with just color.primary, color.foreground, …

    line 113
  26. Distinctive:

    Do not invent colors or fonts the user did not provide or that you cannot verify.

    line 117
  27. Very specific:

    Do not include the defaults section unless explicitly requested.

    line 118
  28. Very specific:

    Do not use color inside typography.base.

    line 119
  29. Distinctive:

    Do not include empty sections or fields with default values that add no information.

    line 120
  30. Distinctive:

    Do not use RGB, HSL, or named CSS colors.

    line 121

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

brand-yml: Create Brand Identity Files for Quarto

Generate a valid _brand.yml file from brand guidelines, a website, a description, or an existing file that needs refinement.

Before You Start

Read the full specification:

Read references/brand-yml-spec.md

This reference contains every allowed field, syntax variants, and the complete annotated example. Consult it whenever you are unsure about field names, nesting, or allowed values.

Workflow

1. Gather Brand Information

Determine the input source. The user may provide one or more of these:

Website URL -- Use web_fetch to retrieve the page. Extract CSS custom properties, meta theme colors, prominent hex values, font-family declarations, and Open Graph metadata. If the page links to a CSS file, fetch that too. Look for Google Fonts or Bunny Fonts <link> tags.

Uploaded brand guidelines (PDF, image, or document) -- Read the uploaded file. Extract named colors (with hex values), font families, usage rules (which font is for headings vs. body), and logo file references.

Manual description -- The user describes their colors, fonts, and identity in plain text. Ask clarifying questions only if critical information is missing (primary color and at least one font are the minimum viable brand).

Existing _brand.yml -- The user uploads or pastes a file to fix, extend, or modernize. Validate it against the spec, identify issues, and propose corrections.

If the source is ambiguous, ask which approach the user prefers.

2. Research and Resolve

Use web search to fill gaps when helpful:

  • Match proprietary or unknown fonts to the closest Google Fonts equivalent. Always note the substitution and the original font name in a YAML comment.
  • Verify exact hex values for well-known brands if the user gives a name but not a code (e.g., "use UVA colors").
  • Check Google Fonts for available weights and styles when setting up typography.fonts entries.

3. Assemble the _brand.yml

Follow these rules strictly:

Structure rules:

  • Include only fields that apply. An empty or default-value field should be omitted entirely.
  • Use the simple string form whenever the complex mapping form is not needed. For example, name: Acme instead of name: { short: Acme }.
  • Keep color.palette flat. No nesting. Names follow Sass variable conventions (lowercase, hyphens).
  • Prefer hex color values everywhere. Use 6-digit hex (#RRGGBB).
  • Refer to color.palette names in theme color fields (primary, success, etc.) whenever a palette entry exists for that color.
  • Never set color inside typography.base. Base text color comes from color.foreground automatically.

Typography rules:

  • For source: google or source: bunny, list only the weights and styles actually used by the brand. Omit weight and style if all defaults are fine.
  • Prefer source: google over source: bunny for web fonts.
  • For source: file, include placeholder paths and add a comment explaining where to download the font files. Every source: file font must have at least one entry in files.
  • For proprietary fonts, suggest a Google Fonts substitute, include the substitute as a source: google entry, and add a comment noting the original proprietary font name.

Logo rules:

  • Use placeholder file paths under a logos/ directory.
  • Add a comment telling the user to download and place the logo files next to _brand.yml.

Color palette guidance:

  • When a brand provides a range of shades/tints, pick the midpoint as the palette entry.
  • Create aliases for Bootstrap primary color names (blue, red, green, orange, etc.) when a brand color maps naturally to one.
  • Map semantic theme colors (primary, success, warning, danger, info) to palette names when possible.

defaults section:

  • Only include if the user specifically asks for Bootstrap, Quarto format, or Shiny theme customizations. Do not add it by default.

4. Validate

Before presenting the output, mentally check:

  • Every color.palette reference used in theme colors actually exists in the palette.
  • No circular references in color aliases.
  • Font families referenced in base, headings, monospace have a matching entry in typography.fonts.
  • No color key inside typography.base.
  • All source: file fonts have a files list with at least one entry.
  • The YAML is syntactically valid (proper indentation, quoting of hex values, no trailing commas).
  • Hex color values are quoted (YAML interprets unquoted # as a comment).

5. Deliver the Output

Short/simple brands (fewer than ~40 lines of YAML): Present the _brand.yml in a fenced YAML code block in chat.

Complex brands or when the user requests a file: Create the file at /home/claude/_brand.yml, then copy it to /mnt/user-data/outputs/_brand.yml and present it with the present_files tool.

Always include a brief summary after the YAML listing:

  • The colors extracted and their roles.
  • The fonts chosen (noting any substitutions).
  • Any fields the user may want to customize further.
  • Instructions for downloading logo or font files if placeholders were used.

Common Patterns

University or Organization with Known Colors

Search for the official hex values. Universities often publish brand guides online. Use those exact values rather than guessing from a screenshot.

Website Extraction

After fetching the page and CSS:

  1. Look for CSS custom properties (--brand-primary, --color-accent, etc.) first.
  2. Fall back to computed styles on key elements (header background, link color, heading font-family).
  3. Check <link> tags for Google Fonts imports to identify font families and weights.

Minimal Brand

If the user only provides a primary color and a font name, generate a minimal file with just color.primary, color.foreground, color.background, and typography.base. Do not pad with unnecessary fields.

What Not to Do

  • Do not invent colors or fonts the user did not provide or that you cannot verify.
  • Do not include the defaults section unless explicitly requested.
  • Do not use color inside typography.base.
  • Do not include empty sections or fields with default values that add no information.
  • Do not use RGB, HSL, or named CSS colors. Always convert to hex.

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.