◎Home
← All posts

Claude Code Skills for Brand Colors: Stop Re-Explaining Your Palette to Your Agent

2026-10-07 · zhoujingkang · Founder

Ask your agent to style a settings page and watch what happens without a brand system in context: it invents a blue it used on another project, pairs it with a gray that fails contrast, and ships both before anyone measures anything. A skill fixes the root cause — a small Markdown file the agent loads on its own that carries your brand contract: named color roles, measured values, and the rule that every pairing gets checked. This article covers the ColorwayKit skill — a one-file install that routes every color job to our MCP server — the three-step setup, and how the file contract composes with live measurements.

What is this claude code skill?

A skill is an instruction file your coding agent reads by itself — no copy-pasting context into every conversation. The ColorwayKit skill is one Markdown file (SKILL.md) that lives in your agent's skills folder; Claude Code loads it natively, and Cursor, Codex or Gemini CLI reach the same engine through the MCP server. The content is what matters: the token contract — 23 named color roles for light and dark mode — a tool map for every color job, and the rule that no text/background pair ships unmeasured.

That last part is the difference between a style guide nobody opens and a system the agent actually follows. "Use our brand orange for primary" is a suggestion; "primary is #EA580C, and anything you put on top of the page background must pass the ratio you can check with check_pair" is a contract with a number attached.

What comes in the skill?

The colorwaykit-for-agents repository holds one standard SKILL.md, and that single file carries the whole workflow: a setup section with a fill-in-your-token placeholder, a tool map for all eight MCP tools (theme generation, full exports, color-blindness reports, pair checks, cloud projects), workflow rules that keep the agent from inventing colors, and a file-contract fallback for projects that ship DESIGN.md. Everything is plain Markdown — no build step, no lock-in.

Copy it into your agent's skills folder, paste your token, and it is live for every conversation. When your brand evolves, you regenerate the values on the site and the same skill serves the new numbers.

How do I set it up in Claude Code or Cursor?

Three steps, about five minutes:

  • Copy SKILL.md from the GitHub repo into ~/.claude/skills/colorwaykit/ (Claude Code), and replace ck_YOUR_TOKEN_HERE with your token from My Projects → Agent tab.
  • Generate or fetch your theme: paste the brand hex from your logo into the Brand Theme Engine, or just ask the agent — get_theme produces the verified theme from one hex.
  • Reload and ask your agent "what is our primary color?" — the right answer is the role name, the hex and its measured ratio, not a guess.

Skills or MCP — which one do I need?

They are two halves of one system, and they compose:

  • Skills (file): the contract is versioned with your code, works offline, and applies to every teammate and every CI run — best as the default source of truth.
  • MCP (live): the agent pulls the current engine output mid-task, validates a color pair it just invented, hands over every export file, and reads cloud projects you tuned in the browser — best for checking work as it happens.
  • Recommended setup: keep the skill as the contract, connect the MCP server as the measurement tool. The file tells the agent what to do; MCP lets it prove the result.

What actually changes once the skill is loaded

The measurable difference shows up in review. Without a contract, an agent asked for "a muted label on a cream panel" picks #A89890 on #FFF7F3 — which measures 2.63:1 against the 4.5:1 body-text threshold, APCA Lc 49.7. Both fail, and nothing in a prompt-only workflow ever catches it.

With the skill loaded and MCP connected, the agent checks the pair before it lands: check_pair returns the failing numbers plus #7d6e67, a fix that keeps the hue and just clears 4.5:1. The label ships accessible on the first pass instead of the second review.

Keeping the skill in sync with your brand

A skill is only as good as the values in it. When the brand evolves, regenerate the theme in the Brand Theme Engine, export a fresh DESIGN.md, and commit the diff — the change is reviewable line by line. The MCP server always reads the latest engine output, so the live checks never lag behind the rebrand even before you update the file.

Continue with a tool

References

FAQ

Where does the ColorwayKit skill live?

In the free colorwaykit-for-agents repository on GitHub — SKILL.md sits at the repo root. The skills page links to it and walks through the setup.

Do skills work outside Claude Code?

Yes. The skill is plain Markdown for Claude Code's skills folder, and the MCP server it drives works with any client that supports Streamable HTTP — Cursor, Codex and Gemini CLI included (setup at colorwaykit.com/mcp).

Do I need both a skill and the MCP server?

They compose, and the combination is the recommended setup: the skill is the versioned contract your team ships, the MCP server is the live measurement tool that validates pairs and pulls freshly tuned themes on demand.

How much does all of this cost?

The skill is free to install, and the Brand Theme Engine and the contrast checker are free to use. The MCP server comes with a free account — all tool calls share the asset credit pool with web exports: 10 per month on Free, 100 per month on Plus, unlimited on Pro.

Try it on your own brand color

Paste one hex into the Brand Theme Engine and get a full light & dark web theme — semantic tokens, contrast-checked, export-ready.

Open the Brand Theme Engine →