/fe:storybook-audit [phase] [path]from Frontend Skills
Manually invoked. Storybook coverage and story-quality audit — cross-references shared UI components against existing stories to find gaps, and checks stories against Storybook 10 practice — CSF3 with satisfies Meta and framework-package types, tier-first titles, a control per prop, keyboard plays that assert behaviour, axe failing the run, no dark-mode or coverage-only stories. Verifies each finding and writes a prioritized report.
Ships in Frontend Skills. 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.
Read when SKILL.md points to them.
Run this only when the user asks for it by name. It writes a report and changes no code; fixing a finding is a separate request.
A manually-invoked, red-team Storybook audit of an app or a specific diff/PR. It is self-contained — every check is spelled out inline, so it runs a full review with zero other skills installed — and each finding is verified against the real code before it lands in a phase-aware, scored report at _reports/storybook-audit.md.
Self-contained — every check is spelled out below, so it runs with no other skill installed. It mirrors
storybook, anddesign-systemfor the tiers; both are the fix targets when installed.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
[phase] — development | production; sets the action-item tiers. Omitted → the phase the project's AGENTS.md records, else production (assume the app is live until told otherwise — the safer default).[path] — a file, directory, or PR/diff to scope the audit to; omitted → the whole repo.Mindset — reviewer/attacker first. Don't assume code is fine because it looks careful; find the sequence that breaks it. Report only findings you can justify as real, each verified before it lands.
AGENTS.md records; else production, so a CRITICAL finding gets Fix-Now urgency instead of a pre-launch discount. Phase sets the action-item tiers._reports/storybook-audit.md exists, read it, but still run every check against the source. Use it only to keep the ID of each finding still present (status UNRESOLVED), carry its WON'T FIX findings forward unchanged — never re-raised as new findings — drop its FIXED findings and any no longer present, continue ID numbering from its highest ID, and take its scores for the score-change row. First run → mark all NEW.file:line evidence.AGENTS.md or a doc it links._reports/storybook-audit.md — overwriting the whole file, so no resolved history accumulates — and post the chat summary (see Output). Recommend fixes in the report; never modify code. Never commit or push without explicit approval."todo". Fix before shipping.Findings are ordered worst-first in the report.
Write to _reports/storybook-audit.md, with one Overall row in the score change:
# <Domain> audit — <app/scope>
**Date:** <YYYY-MM-DD> · **Phase:** <phase> · **Mode:** Report-only · **Branch:** `<branch>` · **Scope:** <what was audited> · **Overall:** <X>/10
## Score change (previous → current)
| Metric | Previous | Current | Δ | Trend |
| --- | --- | --- | --- | --- |
| Overall | <prev/10 or N/A> | <cur/10> | <+N / -N / 0> | <▲ / ▼ / ■ / N/A> |
## Findings
| ID | Severity | Category | Status | Issue | Location |
| --- | --- | --- | --- | --- | --- |
| 1 | HIGH | <category> | NEW | <one-line issue> | `file/path:line` |
**Status:** `NEW` — found this run for the first time · `UNRESOLVED` — still present from an earlier run · `FIXED` — fixed after the audit; the note names the commit · `WON'T FIX` — the owner ruled it not a defect, intended, or accepted as it is; the note gives their reason
### F1 — <title>
- **What:** <the defect, and the concrete evidence that proves it real>
- **Why it matters:** <impact / who it affects> <· the `storybook` rule it breaks>
- **Fix:** <the specific remediation>
- **Note:** <only once `FIXED` (the commit and what changed) or `WON'T FIX` (the owner's reason)>
## Scorecard
| Category | Score | Notes |
| --- | --- | --- |
| Coverage | <X>/10 | <one-line justification> |
| Story quality | <X>/10 | <one-line justification> |
| Titles and tiers | <X>/10 | <one-line justification> |
| Which stories | <X>/10 | <one-line justification> |
| Interactions and accessibility | <X>/10 | <one-line justification> |
| Setup | <X>/10 | <one-line justification> |
## Action items
Tiers by phase — `development` → **Fix Now / Before Launch / Post-Launch**; `production` → **Fix Now / Next Release / Backlog**. Each task references a finding ID.
### <Tier>
| # | Priority | Task (finding ID) | Effort |
| --- | --- | --- | --- |
Every run produces two things:
_reports/storybook-audit.md, in the format above, overwriting the prior run.<X>/10 (with Δ vs last run), a severity count (Critical / High / Medium / Low, i.e. C / H / M / L), the top findings worst-first (id · severity · one-line · file:line), and the report path. Note any "needs confirmation" items.Report-only — this audit recommends fixes in the report; it never modifies code.
Everything needed to run the audit is inlined here; storybook is the fix target if installed, and the tiers are design-system's.
src/ui/ and components/) and where stories live. Stories belong beside their component, the file named like the component's file; a separate stories/ tree is one layout finding, never re-flagged per story.export *) or the component folders; skip type-only, defaults-only and internal helpers.*.stories.tsx, mapped to the component it imports (ignore _Template.stories.tsx).satisfies Meta<typeof X> (not : Meta), type Story = StoryObj<typeof meta>, every story typed : Story; no Template.bind({}), no untyped stories. A file with no single component may annotate Meta plainly.@storybook/nextjs-vite, or @storybook/react-vite outside Next.js) — an import from @storybook/react fails eslint-plugin-storybook's no-renderer-packages; any @storybook/test import is removed in Storybook 9 and later.fn() spies from storybook/test; flag { action: "…" } argTypes.argTypes entry for a union or a ranged number, with a description where the name doesn't say enough; callbacks (spies), children and ref need none. Flag other props with no control, and controls for props that no longer exist./** … */ comment on each story, which the docs page uses; a // comment isn't picked up.open/onOpenChange, value/onChange) keep the arg in step with useArgs or a stateful render wrapper — a bare spy freezes them.Foundations, Assets, Icons, Base, Components, Blocks, Layouts, Pages). A title in a tier the system doesn't have — such as Patterns — or a component titled in the wrong tier is a finding.Disclosure, Display, Feedback, Forms, Navigation, Overlay), allowed in any tier that has grown; a new one is fine when the project records it. Flag product-domain subcategories in a shared package and shape buckets ("Cards").Small, not SmallSize): Default; one story per variant or size that differs in more than colour (otherwise one overview); each reachable state (disabled, loading, empty, error); With… parts; real configurations (real-length text, a full list, the usual container).play asserts behaviour, never markup — canvas and userEvent from its context, screen for portals; queries by role, label or text; flag assertions on tag names, classes, landmarks or hard-coded structure.tags: ["!dev", "!autodocs"].a11y: { test: "error" } in the preview; flag any story that turns a rule off or sets test: "todo" or "off" (a third-party component is fixed or wrapped so the wrapper passes).@chromatic-com/storybook where the project takes visual tests (flag @storybook/addon-essentials). The UI package declares its framework package and storybook as devDependencies and keeps stories out of its build.method: "alphabetical"), sets a dark-mode toolbar global with backgrounds: { disable: true } and nextjs.appDirectory: true, supplies providers and a router as decorators, and mocks I/O modules with sb.mock (paths relative to the preview, with the extension, no alias); a story never wraps itself in providers or mocks the project's own logic.eslint-plugin-storybook's recommended rules are on at error; Tailwind compiles once — the Vite plugin or PostCSS, never both.tags: ["autodocs"] set once in the preview, globally.Fixing is a separate request, after the report is written, and covers only the findings the owner chose. Then update the report in place — never re-run the audit to update it: a re-run re-checks the whole codebase, costs a full audit and raises new findings mid-fix. Mark each fixed finding FIXED with its commit and a one-line note of what changed, mark a finding the owner rules out WON'T FIX with their reason, and leave everything else as it stands. Recompute the scorecard categories the fixes touched and the Overall, and rewrite the one score-change row (previous → current) — never add a second row.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub timonwa/engineering-skills --plugin fe20 skills in this plugin
/accessibilityBuilding UI that meets WCAG 2.2 AA beyond the markup — text alternatives, contrast checked on the tokens in both themes, reflow and zoom, keyboard and focus (order, visibility, dialogs, skip link, not obscured), target size, pointer and motion, labels, errors people see, accessible sign-in, ARIA states and live regions, and the gates that verify it: lint, Storybook axe at error, keyboard stories and screen-reader passes. Use when building or reviewing any interactive UI, a form, a dialog or a colour token./accessibility-auditManually invoked. Red-team accessibility audit of an app or a diff against WCAG 2.2 AA, organised by POUR with each check citing its success criterion — structure and landmarks, contrast on the tokens in both themes, reflow and zoom, keyboard, focus and dialogs, pointer and target size, forms and errors that are seen, status messages, and the lint, Storybook and end-to-end gates. Verifies each finding and writes a prioritized report./content-auditManually invoked. Copy audit of an app, its emails or a diff, against the project's own voice, word list and banned words and the plain-language standards (GOV.UK, NN/g, WCAG) — point-first writing, marketing claims and calls to action, buttons and links, form labels and errors, empty, success and loading states, sentence case and mechanics, accessible words and alt text, translation-safe strings, and each transactional email's sender, subject, preheader and body. Verifies each finding and writes a prioritized report./cookie-consentCookie and tracking consent for a web app — what needs consent (any storage or read on the device), equal-weight accept and reject on the first layer, granular categories off by default, nothing non-essential before consent, withdrawal as easy as giving it, a minimal record of each choice, re-asking on a revision, Global Privacy Control, Google Consent Mode in basic mode, accessibility, and the vanilla-cookieconsent v3 mechanics in a reference. Use when adding a banner, an analytics or marketing script, or a consent category./copywritingWriting and reviewing every piece of a product's copy — the website, help articles, the app and its admin panel — in the project's own voice, word list and banned words: voice and tone by moment and reader, writing for the web, marketing pages, buttons and links, forms and errors, empty, success and loading states, mechanics, accessible words, copy that survives translation, and a review process. Use when writing, reviewing or updating any user-facing text./design-systemGovernance of a product's shared UI — the tiers (foundations, assets, icons, base, components, blocks, layouts, pages), a base library installed as source with local edits tracked, consumer count deciding placement, one component configured by props over variant families, fixed size, radius and tone vocabularies, skeletons, status colours apart from accents, visual identity as tokens and assets, and adding, retiring and spotting drift. Use when adding or placing a component, token or variant, or when screens stop matching.