/dev:frontend-implementfrom dev
Rewrites generic-looking UI into a deliberate design by applying theme tokens and component library variants from design review findings. Use when a UI looks AI-generated or needs design-review fixes.
Ships in dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill turns a design review's findings into code that makes a UI look designed for its product rather than generated. Its rules say what to change: composition, surface, type, motion, colour. The design system decides where each change goes. A new look means new or changed tokens in the theme and new variants in the component library, and screens only compose. Restyling a screen with inline values does not make the change. It hides the change where nobody can reuse or review it.
Done means: every issue in the review is addressed, or left with a stated reason; the direction is written down and visible in every area you changed; the diff passes the design-system audit; every new or changed variant has a story; the implementation log exists.
| Related | Role |
|---|---|
/designer:review (designer plugin) | produces a measured review this skill applies (summary.md) |
.claude/designer.json (designer plugin) | names the theme file and the component library, the direction when a project has one |
| design-system guardrails (dev plugin, sibling folder) | the rules every change here obeys |
Read the design-system guardrails: ../design-system-guardrails/SKILL.md, relative to this
skill's directory (in the dev plugin, skills/frontend/design-system-guardrails/SKILL.md).
This skill assumes its five rules and its decision tree. Nothing below overrides them.
Collect the inputs:
| Input | Usually comes from | If it is missing |
|---|---|---|
| The review | /designer:review (writes summary.md), a /designer:ui run's verify.json, or a human reviewer. Each issue has a location, a severity and a recommendation. | Get one first, for example /designer:review <screenshot>. This skill applies findings; it does not invent them. |
| The paths to change | the review's locations, or the caller | Trace them from the review's locations. Ask the caller only if a location matches more than one place. |
| The direction | the theme file and component library .claude/designer.json names, a /designer:ui run's plan.md and its stories, or the user's brief | Infer it from the product: audience, domain, existing brand assets. Record it in the log as an assumption. |
| Screenshots of the current state | the review, or the caller | Work from the code. |
| The change | Lands in | Not in |
|---|---|---|
| colour, gradient stop, shadow, radius, border, font, type size, leading, tracking, easing, keyframes, texture image | a token in the theme file, named by role and defined for every mode | a hex, rgb(), hsl() or oklch() literal, or a Tailwind arbitrary value, in a component or screen |
| a new look for an existing component | a variant in the library, with a story | classes passed at the call site |
| a new building block | a library component with tokens only, a variants API and a story per variant and state | a styled element inside a screen |
| where things sit and the space between them | the screen, using the spacing scale and layout primitives | appearance classes on a component |
| a composition used a third time | a recipe in the library, with a story | a copy in each screen |
Two facts that change decisions:
Generated UI keeps landing on the same choices, and your own first instinct will reach for several of them. None of the items below is a default. Each needs a reason from the direction before it appears. When the project's style guide or brand asks for one, keep it, because the brief outranks this list.
Swapping one item for another from the same list does not fix anything. Removing a default does not give you a design either. Every change should trace back to the direction.
A review that judges whether a UI looks generated raises issues in these same five areas, with remedies such as "gradients/texture", "micro-interactions" and "bespoke palette". Take those words as naming the area that needs work, not the technique to use. Gradients, glass and glow are all on the list above.
A UI does not need changes in all five areas. Change the areas the review or the direction calls for.
A direction is one decision that makes the five areas agree. Write one sentence per area, specific enough that someone else would choose the same tokens. Take it from the style guide, the brand or the brief, and say so when you inferred it instead.
This example shows the shape; it is not a direction to reuse:
Field instrument. Composition: dense left-aligned columns, one oversized reading per screen. Surface: flat planes separated by hairline borders, no shadows. Type: a condensed grotesque for figures and headings over a plain text face. Colour: a cool neutral ground with one saturated signal colour kept for state. Motion: state changes only, fast and linear.
Named styles such as Swiss, brutalist and editorial are useful shorthand, but only once you have written them out this way for this product. "Glass" and "warm luxury" lead straight to the defaults list.
Goal: a hierarchy the eye can follow. Each view has one dominant element, and sizes and
positions differ because importance differs. Layout belongs to the parent, so this is the
one area where screens do the work: grid placement from the column scale (7 beside 5, not
6 beside 6), gaps from the spacing scale, overlap through negative margins on the same
scale, and layout primitives (Grid, Stack) instead of ad-hoc wrappers.
// Screen: placement and spacing only. Each card's look is its variant.
<Grid cols={12} gap="6">
<FeatureCard variant="lead" className="col-span-7 row-span-2" />
<FeatureCard className="col-span-5" />
<FeatureCard className="col-span-5 -mt-8" />
</Grid>
If the scale cannot express a column template, give it a name in the Grid primitive or
the theme. Do not write it as an arbitrary value in the screen.
Goal: surfaces that differ by role (page, raised, sunken, inverse), with depth shown the way the direction says, whether that is hairlines on flat planes, hard offset shadows or layered tints. Every shadow, border treatment, surface colour and texture, including a noise image, is a theme token. Components expose them as variants.
@theme {
--shadow-raised: …; /* built for this direction */
--color-surface-raised: …;
}
const cardVariants = cva("rounded-md border border-border", {
variants: {
surface: {
flat: "bg-surface",
raised: "bg-surface-raised shadow-raised",
inverse: "bg-surface-inverse text-surface-inverse-foreground",
},
},
defaultVariants: { surface: "flat" },
});
Goal: a type scale with real contrast between display and body, defined once. A display
size, including a fluid clamp(), belongs in one text token together with its line height
and letter spacing. In Tailwind v4 a --text-* token carries --line-height and
--letter-spacing sub-properties. Font families are font tokens. A Heading component
exposes the sizes as variants, so screens never write type classes.
@theme {
--font-display: …; /* chosen for this product */
--text-display: clamp(…);
--text-display--line-height: …;
--text-display--letter-spacing: …;
}
<Heading size="display">Welcome</Heading>
Choose the pairing from the direction: a display face with a character the product can own, and a text face that reads well at body size.
Goal: motion that confirms something happened (pressed, saving, saved, failed) rather than
decorating. Interactive and loading states live inside the component (guardrails Rule 3).
Easing curves are --ease-* tokens and keyframe animations are --animate-* tokens.
Durations come from a small named set, not a new number for each component. Every animation
has a reduced-motion form, written with motion-reduce: inside the component.
Start with CSS transitions on those tokens. Add an animation library only if the project already uses one or the direction needs gesture or layout animation, and record the new dependency in the log.
Goal: a palette drawn from the product (brand assets, domain, audience). It is held as
primitives in the theme and used only through semantic tokens, in every mode. A new look
means new token values, and each gradient stop is a token. Every text-on-surface pair meets
WCAG AA contrast: 4.5:1 for body text, 3:1 for large text and interface parts. Tailwind's
default palette classes (bg-blue-500) are primitives used directly, so the guardrails
reject them in components as well.
/* The theme file is the only place raw colour values live. */
:root { --brand-ground: …; --brand-ink: …; --brand-signal: …; }
.dark { --brand-ground: …; --brand-ink: …; --brand-signal: …; }
@theme inline {
--color-background: var(--brand-ground);
--color-foreground: var(--brand-ink);
--color-accent: var(--brand-signal);
}
// Do not: each raw value is a new source of truth, and the audit fails it.
<Card className="bg-[#0d0d0d] text-[#e8e4dd]" />
// Do: the look is a variant, and its colours are tokens.
<Card surface="inverse" />
Check the diff you produced, not the whole repo:
bun <this skill's directory>/../design-system-guardrails/scripts/audit-ui.ts <paths>.
It exits non-zero on hardcoded colours, arbitrary values and inline styles. It also warns
about appearance classes at call sites and about components with no story. Fix what it
reports. Theme and token files are exempt by design./designer:review (designer plugin). It
resolves the judge live from claudish's catalog and calls it through claudish's MCP
tools. External models run only that way: never through the claudish CLI, and never with
a model ID recalled from memory.Write the log where the caller asked. If they gave no location, return it as your report.
## Implementation log
**Review**: {path to the review}
**Paths changed**: {files}
**Direction**: {one sentence per area; mark it "assumed" if inferred}
### Theme
- {token added or changed}: {modes defined}. {why}
### Library
- {component}: {variant or component added or changed}. Story: {story name}
### Screens
- {screen}: {layout change}
### Review issues
| Severity | Issue | Addressed by | Status |
|---|---|---|---|
| {severity} | {issue} | {token, variant or layout change} | done, or left: {reason} |
### Dependencies added
{package and reason, or "None"}
### Verification
- Audit: {command and result}
- Stories: {added}
- Lint, typecheck, tests: {results}
- Contrast, focus, reduced motion, breakpoints: {results}
- Visual check: {what was read and what it showed, or "not done: no screenshot"}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub madappgang/magus --plugin dev19 skills in this plugin
/aggregate-reviewsMerges independent reviews of one target into one report with a consensus tag per finding and a verdict from supplied thresholds; also synthesises research findings. Use when several reviews or votes must become one file a gate reads./architectureRouter for architecture knowledge — 7 architectural styles (layered, hexagonal, clean, modular monolith, microservices, event-driven, CQRS) and the 22 GoF design patterns. Names which file to read; loads none of them./brainstormingExplores solution approaches in parallel across models through claudish, then has an external panel review the chosen plan. Use when the direction is open, or the user asks to brainstorm or compare approaches./browser-debuggingDrives a real browser — claude-in-chrome or browser-use — to verify a UI change, read console and network activity, and reproduce browser-only bugs. Use when checking UI in a running app or chasing a console error./code-roastRoasts code with severity-graded sins, cites file and line, offers redemption. Use when the user asks to roast code, find sins, or shame my code./context-detectionDetects the project stack from its config files, then names the one or two dev skill files to read for this task — it loads none of them. Use at the start of any coding task, or on an unfamiliar or multi-stack repo.Other plugins' skills for the same job