agentleFS
ZmokiZmoki/zmoki-astro-starter/.claude/skills/brand/SKILL.md

brand

Skill4 starsChanged 5 months agoMITView on GitHub

Work on the site's brand guidelines. The living guideline is the internal style guide under /-/astro/brand/ (color, typography, forms, components, voice & tone) — this skill orients you there and helps you improve or adapt it, keeping the implementation in sync. Use when the user wants to evolve the brand: recolor/re-skin, define a custom brand color, swap fonts, rewrite voice/tone or house style, adapt components/forms, add a new guide/section, or edit any brand page.

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use caveman, karpathy-guidelines and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    caveman

    Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules

    Also in 4 projects that use this

  • PostHogSkill

    karpathy-guidelines

    Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria. Based on https://github.com/multica-ai/andrej-karpathy-skills.

    Also in 3 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start here: run /run and open the page you're changing.

    line 29
  2. Distinctive:

    Settle the change with the user: if the direction is open (which color, which font, what the voice should be).

    line 49
  3. Distinctive:

    The page leads: If the guideline page and the code disagree, that's the bug to fix — don't let a change land in one without the other.

    line 81
  4. Very specific:

    WCAG AA is non-negotiable: Every text/background pair must clear ≥ 4.5:1 (normal text) or ≥ 3:1 (large text, borders, focus rings, UI).

    line 86

“Common” is measured: kept by at least 6 in 10 of the 12 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

The brand guideline is the style guide under /-/astro/brand/. Those pages are the source of truth for how the site looks and sounds — read the relevant one first, and let it lead the work. This skill orients you across them and helps you improve or adapt a guideline, then bring the implementation into line so the two never drift.

The pages are an internal, noindex living style guide. They read the site name from site.name (src/site.config.ts); the rest of the copy is written directly in the pages — you edit it there.

The guideline pages (source of truth)

Page (/-/astro/brand/…)FileGoverns
index/src/pages/-/astro/brand/index.astroThe system home — section cards/summaries
color/src/pages/-/astro/brand/color.astroPalette, swatches, usage conventions
typography/src/pages/-/astro/brand/typography.astroTypefaces, roles, prose specimen
forms/src/pages/-/astro/brand/forms.astroInputs, labels, action button, states
components/src/pages/-/astro/brand/components.astroNav, footer, hero, cards, links, buttons
voice/src/pages/-/astro/brand/voice.astroVoice pillars, house style, rewrites
og/src/pages/-/astro/brand/og.astroOG / social cards — templates + anatomy

Start here: run /run and open the page you're changing. It shows the current guideline live, and its .astro frontmatter holds the data you'll usually edit.

Where each guideline is implemented

A guideline page is documentation; the behavior it documents lives in code. When you adapt a guideline, change both — the page (so the guideline stays true) and its implementation (so the site matches) — in the same pass.

GuidelineImplemented in
Colorsrc/design-tokens.mjs (the zmoki-* scales) → Tailwind utilities
Typographyastro.config.mjs (fonts — self-hosted via Astro's Fonts API) + tailwind.config.mjs (fontFamily, headingFontStack → the --font-* CSS variables) + <Font> tags in BaseLayout.astro & BrandLayout.astro
Voice & toneThe voice.astro page is the artifact — no separate implementation
Components/formsThe actual components in src/components/ and src/layouts/

Workflow

  1. Orient. Open the relevant guideline page (/run → /-/astro/brand/…) and read it. It is the current truth — work from it, not from memory.
  2. Settle the change with the user if the direction is open (which color, which font, what the voice should be). Ask the user rather than guessing.
  3. Adapt the guideline + implementation together. The task references below carry the concrete how-to (files, commands, gotchas):
    • Recolor / re-skin / custom brand color → references/colors.md
    • Swap fonts (sans / serif / mono) → references/typography.md
    • Rewrite voice, tone, house style → references/voice.md
    • Adapt components or forms → references/components.md
    • Add a new guide/section (iconography, imagery, motion, …) → references/adding-a-guide.md
  4. Keep the docs honest. AGENTS.md (Color system / Fonts) and SETUP.md (Design) summarize the system for tooling — update them if conventions changed.
  5. Verify (below).

OG / social-share cards are a separate, deeper skill — run /og-images. They read the brand tokens, so a color or font change flows into them automatically; /og-images covers card-specific tuning.

Verify (all tasks)

npm run format      # Tailwind class order is plugin-enforced — always format
npm run check       # 0 errors
npm run build       # must pass

Then /run and eyeball the guideline page you changed plus a couple of real pages (/, a blog post) — the page and the live site should agree. Each task reference adds specific checks (contrast, compiled utilities, retired-font grep).

Guardrails

  • The page leads. If the guideline page and the code disagree, that's the bug to fix — don't let a change land in one without the other.
  • No inline hex in templates — colors ride zmoki-* utilities generated from src/design-tokens.mjs (the only home for raw hex, plus src/og/theme.ts, which reads from it).
  • WCAG AA is non-negotiable. Every text/background pair must clear ≥ 4.5:1 (normal text) or ≥ 3:1 (large text, borders, focus rings, UI). Fix the shade, don't ship a failing pair. Details in references/colors.md.
  • Don't reintroduce role tokens (zmoki-primary, -accent, …). The system is palette-group-based, not semantic-role-based.
  • Font definitions live once in astro.config.mjs (fonts). Both layouts render <Font> tags that reference it — there's no per-layout font URL to keep in sync; change the family in the config, not the layouts.

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.