fujimoon
日本語

Works / Client work

Client work Internal

Brand rules as a Claude Code plugin

The brand book became a single source of truth in code instead of a PDF. Rules are injected before generation and checked after it. A designer now ships frontend PRs with Claude Code.

Client work: company name, specific numbers and screens are withheld.

Role
Design and implementation (one person + AI)
Period
Feb 2026 –
Stack
Claude Code plugin hooks Style Dictionary CSS tokens Node.js

Tools

Claude Code (plugin / skill / hooks) golden-prompt evals

What AI did

On-brand HTML, CSS and documents; automatic flagging of violations; syncing the rules into consuming repositories.

What the human kept

Putting the brand into words (voice, visual judgement rules), the conditions under which the lint applies, final review.

The problem

The brand guideline was a PDF. Whether it was followed depended on human review, and the more the AI produced, the more things drifted. Checking “is this on brand” by hand every time is the least cost-effective investment there is.

Rules the AI can read

Philosophy, voice and wording live in one YAML file; visual judgement rules in one Markdown file. That is the only source of truth. Tokens for web, decks, documents and social are generated from it. The skill description holds no values and only points to the source, so there is nothing to keep in sync.

Before writing

A hook injects where the rules live and the hard no-gos

Generate

Claude Code writes HTML / CSS / documents

After writing

A hook runs the checker and flags violations without blocking the write

Per change

Five golden prompts are scored to catch drift

The check looks for hard-coded colours rather than for token usage: hunting for what breaks the rule misses less than counting what follows it.

Related

Client work Internal anonymized

Parallel agents, one cockpit

Claude Code split into a Leader and Workers, each running in its own git worktree. Instructions and reports travel through files; only short triggers cross the panes. 87% of commits in September 2026 were co-authored with AI.

Claude Code · Zellij · git worktree · spec-driven change management · Codex