Builds or audits frontend pages (landing, app, report) using pre-made themes, tokens, and components. Runs a browser script to test interactions and view states, then reports fixes.
Ships in cc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You don't have to invent a look, and you don't have to guess whether the page feels right. Pick a theme, use its values, build, then let the gate use the page and tell you what to fix.
Order of importance, always: the page solves the problem, then it is easy to use, then it looks good. Polish never covers a broken interaction.
SKILL_DIR below means the folder this file is in.
polish.md instead. It uses the same gate with --audit.If the project has a DESIGN.md, read it first. It names the theme, the main task, the words the product uses, and what the user has rejected. Don't bring back anything listed as rejected.
Read archetypes/<type>.md. Write down the one main task a first-time user comes to do. Step 8 tests it.
Read themes/INDEX.md and pick the theme that fits the product. If DESIGN.md already names one, use that. Then read themes/<name>/theme.md.
Copy into the project:
themes/<name>/tokens.css → tokens.csscomponents/primitives.css → primitives.cssYou can change token values to fit the brand (for example, set --accent to the brand color). You can add a token if you need one. Keep the names and put all values in tokens.css. In a Tailwind project, see the mapping in polish.md.
<head>: the font <link> from the top of tokens.css, then tokens.css, then primitives.css, then your own CSS.var(--…) for every color, font, font size, spacing, radius, and duration.components/usage.md before writing new CSS. Menus, dialogs, drawers, toasts, tooltips and switches are in there, already timed and keyboard-ready. Don't hand-roll them.archetypes/app.md). The gate flips through them.copy.md before writing any text. Write real copy. No lorem ipsum.Read motion/motion.md. It starts with whether a thing should move at all, which depends on how often people see it. Add motion after the page works without it.
First time only: cd SKILL_DIR/gate && npm install
node SKILL_DIR/gate/run.mjs page.html --type landing|app|report [--dark]
The gate looks at the page and then uses it. Each line it prints says what's wrong and where.
| Rules | What the gate does |
|---|---|
| R | Opens the page at 1440, 768 and 390 px and checks tokens, contrast, tap targets, overflow, type sizes, shadows |
| M | Checks motion: durations, easing, what animates, how often it is seen, and a second load with reduced motion |
| S | Flips through every declared view state, screenshots each, and checks nothing around them moves |
| K | Break pass. Doubles the labels, makes the data long, and checks the layout holds |
| B | Hovers and presses every control, clicks what opens, presses Escape, Tabs through the page, scrolls |
| C | Reads the copy: one verb per action, plurals, stale dates, nameless icon buttons, unlabelled inputs |
Screenshots land in .gate/ next to the page: one per width, one per state, break-*.png, 1440-nocopy.png (secondary text hidden) and motion-*.png (six frames of each open and close).
ignore: R07 (optionally with a selector, like ignore: R07 .pricing) to the gate block in DESIGN.md and write down why.--no-interact and --no-break skip those passes when you only changed colors or type.
Start a subagent with fresh context. Give it only the brief and the screenshot paths from .gate/, not the code. Ask it the questions in gate/vision-questions.md for this page type. Fix every answer that points to a problem, then run the gate once more.
Start another fresh subagent and follow gate/walkthrough.md. It gets the main task from step 2 and a browser it drives through gate/walk.mjs. It never sees the code. Fix every place it hesitated or got stuck. Skip this step for reports.
If two fixes didn't settle something, or the user says it feels off and can't say why, stop iterating on one version. Build three variants that differ in one clear way each, then:
node SKILL_DIR/gate/compare.mjs a.html b.html c.html --type app
It writes .gate/compare/compare.html with the three side by side at desktop and phone width, with gate results. Show that to the user and let them pick.
Create it from templates/DESIGN.md if it doesn't exist. Write down the theme, the tokens you changed, the main task, and the verbs the product uses.
Every time the user rejects something, record it twice. Once in words under Rejected, and once as a line in the gate block so the gate fails the next page that does it:
ban: backdrop-filter or ban: text-transform: uppercaseban-text: Get startedverb: deletefreq: constant .command-paletteIn your final message, list what you changed as a table with columns Before, After, Why.
archetypes/app.md (opens in a new tab)archetypes/landing.md (opens in a new tab)archetypes/report.md (opens in a new tab)components/primitives.css (opens in a new tab)components/usage.md (opens in a new tab)copy.md (opens in a new tab)gate/check-theme.mjs (opens in a new tab)gate/compare.mjs (opens in a new tab)gate/fixtures/DESIGN.md (opens in a new tab)gate/fixtures/app.html (opens in a new tab)gate/fixtures/bad.html (opens in a new tab)gate/fixtures/clean.html (opens in a new tab)gate/fixtures/plain.html (opens in a new tab)gate/interact.mjs (opens in a new tab)gate/package-lock.json (opens in a new tab)gate/package.json (opens in a new tab)gate/probe.mjs (opens in a new tab)gate/rules.mjs (opens in a new tab)gate/run.mjs (opens in a new tab)gate/states.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/cc-skills:frontend-railsfrom cc-skills
npx claudepluginhub sorrycc/skills --plugin cc-skills2 skills in this plugin
Other plugins' skills for the same job