/fe:frontend-audit [phase] [path]from Frontend Skills
Manually invoked. Next.js App Router frontend audit — Pages Router residue, app/ holding only Next's files, thin entries, the server and client boundary, typed fetchers and Cache Components scopes, Server Actions with action results and updateTag, URL-owned panel state, typed routes, shared-UI adoption with skeletons, the Tailwind v4 setup with its token layers and dark mode, favicons and app icons, and React 19 idioms. 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 frontend 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/frontend-audit.md.
Self-contained — every check is spelled out below, so it runs with no other skill installed. It mirrors
nextjs,react,reusables,design-system,tailwind,logos-and-icons,code-structureandtypescript, which are the fix targets when installed; speed goes deeper inperformance-audit, client security insecurity-audit.
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/frontend-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/frontend-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.Findings are ordered worst-first in the report.
Write to _reports/frontend-audit.md, with one Overall row in the score change:
# Frontend 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> <· optional standard or criterion ref, e.g. the `nextjs` 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 |
| --- | --- | --- |
| Router hygiene | <X>/10 | <one-line justification> |
| Page structure | <X>/10 | <one-line justification> |
| Server/client boundary | <X>/10 | <one-line justification> |
| Data fetching | <X>/10 | <one-line justification> |
| Mutations | <X>/10 | <one-line justification> |
| Caching | <X>/10 | <one-line justification> |
| Components | <X>/10 | <one-line justification> |
| URL and routes | <X>/10 | <one-line justification> |
| Design system | <X>/10 | <one-line justification> |
| Tailwind | <X>/10 | <one-line justification> |
| Logos and icons | <X>/10 | <one-line justification> |
| React | <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/frontend-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.
Enumerate from each app's app/ route tree, its component tree and its server data layer. Each item states its own pass and fail; nextjs, react, reusables, code-structure, design-system, tailwind and logos-and-icons are the fix targets if installed, performance-audit goes deeper on speed and security-audit on client security.
pages/, _app, _document, getServerSideProps, getStaticProps, getInitialProps or next/router; no next/head or next-seo (metadata comes from the Metadata API).params, searchParams, cookies() and headers() are awaited; page and layout props use PageProps and LayoutProps from next typegen.app/ holds only files Next.js reads by name — no components, data or helpers, no private _components/ folders; every parallel slot has a default.tsx; global-error.tsx sits only in app/ and renders its own <html> and <body>.page.tsx renders a …PageContent; a layout.tsx renders a shell; neither holds more than a guard. Sections are one file each, composed by an index; files stay around 200 lines.notFound(), and an error.tsx sits beside the segment it guards — usually the route group's, not one per page; a layout that can throw is caught one level up, since error.tsx doesn't catch the layout.tsx beside it. A missing loading.tsx is not a finding where each data-waiting component has its own <Suspense> and skeleton.page.tsx or a route.ts, never both; a prefixed route group keeps a real inner segment; a route never repeats its app's name; components/errors/ and components/guards/ grouped by kind; _shared/ groups have barrels, with server-coupled components imported by path; imports point one way, enforced by a lint rule."use client" only on the leaf that needs a hook, a browser API or a handler — flag it on files that need none, or high enough to ship a whole subtree.next/headers, the server data layer, env) in client code, server modules start with import "server-only", and the config/ barrel is imported by path from client code. A Server Component is passed into client code as children, never imported there.typeof window branch in render; browser values via useSyncExternalStore.fetch in a component; no initial data fetched in a client effect. The server barrel exports actions and reads, never the fetchers.cache() shares one read between a page and its generateMetadata.…WithData component behind its own <Suspense> with a skeleton; every cached scope has a tag from the constants module and a cacheLife tier with a one-line reason; a near-live tier has a recorded reason. The default is to read the cookie outside and pass values into use cache; use cache: private is allowed where the read must stay off the server. A shared use cache scope that can redirect(), call notFound() or reads who's asking is a finding. Under Cache Components there's no unstable_cache and no dynamic, revalidate or fetchCache segment export; Date.now() or Math.random() comes after connection(); useSearchParams sits under <Suspense>; generateStaticParams returns at least one param; redirect() comes after the cache calls.<Suspense>, never in the root layout; repeated reads deduped by cache() are fine. Proxy checks no session and authorises nothing.generateMetadata or metadata on every public page through the project's metadata factory; Route Handlers don't re-serve data a Server Component already reads.{ success: false, error, fieldErrors, values } on failure — never a thrown error; the form re-shows the submitted values.updateTag on every tag it changed — it re-renders the route and clears the client cache, so a refresh() beside it is redundant; a write that touches a cached read with no invalidation is a finding — updateTag, revalidateTag(tag, 'max') and a Route Handler's revalidation all count.useActionState, useFormStatus, uncontrolled fields — not a client fetch to an internal API.typedRoutes, ending as const satisfies RouteTable — typescript), never a hard-coded string; as Route only on a runtime path, with a comment; a nav item's href is typed Route.labels object. Props extend the element's own (ComponentPropsWithRef) with className merged last by cn(); inputs work controlled and uncontrolled; compound parts are named exports, never statics; asChild makes a button a link, never a button wrapping a link; data-state and data-slot for styling; an empty region renders nothing; overlays build on native <dialog> and popover.<Component>Skeleton reusing the component's own shell.PrimaryButton), fixed size, radius and tone vocabularies, status colours kept apart from accents, one font and icon set, the base library installed by its CLI with local edits tracked; nothing promoted to the shared package before a second app uses it.patterns tier; components/ organised by product area, nested as their URLs are.@tailwindcss/postcss is the only PostCSS plugin (@tailwindcss/vite under Vite); no tailwind.config.js, content array, postcss-import or autoprefixer, and @config only during a recorded migration. One compilation per app, from one entry that starts with @import "tailwindcss"; a shared UI package isn't compiled on its own and takes no prefix.@source for packages — automatic detection skips node_modules and gitignored files, so an app that renders a workspace package's components names its source (@source "../../packages/ui/src"); prove a miss by a package class absent from the built CSS. Stories are kept out with @source not.@layer or an @utility — an unlayered class beats every utility, so a caller's class can't override it. The entry imports its files in order (theme, base, typography, utilities, animations, components), and files a base library's CLI installs are kept apart from the project's own.@theme, with any default namespace they replace cleared (--color-*: initial); roles per mode on :root and [data-mode="dark"]; roles exposed through @theme inline. A role that references another variable from a plain @theme resolves where it's defined, so a per-mode or per-section override never reaches the utility.@custom-variant dark on the data-mode attribute with the roles overridden there; with no saved choice, the same overrides under prefers-color-scheme: dark; color-scheme set per mode; a pre-paint script in <head> sets the attribute, with suppressHydrationWarning on <html>. A component carrying light and dark pairs (bg-white dark:bg-zinc-900) is a finding.`bg-${tone}` generates no CSS; a prop maps to complete strings in one scales file. cn() is clsx with tailwind-merge, custom theme scales and custom @utility groups registered through extendTailwindMerge — prove a missing registration with a merge that drops one of two classes that don't conflict. State is styled with data-[state=…]: and data-slot, not conditional strings.<style> blocks @reference the entry before @apply or @variant; theme() is deprecated in favour of var(--…); decorative animation sits behind motion-safe: or stops under motion-reduce:. v3 residue — @tailwind directives, darkMode: "class", bg-[--x] — is a finding.favicon.ico (16, 32, 48) for browsers and Google Search, which reads raster formats only and recommends larger than 48px; an SVG icon for the tab; apple-icon.png at 180px, opaque and unrounded. Next's file conventions or metadata.icons emit the tags, and no file sits in both app/ and public/; browserconfig.xml, mstile-* and mask-icon are dead and a finding.any and maskable icons as separate entries, never "purpose": "any maskable", with maskable artwork inside the 40% safe circle; a site that doesn't install needs none, so their absence isn't a finding.<text>), in a literal brand colour (never currentColor or a themeable token), imported from the shared assets. Standalone it's role="img" with a name; inside a link it's aria-hidden and the link is named; email uses PNG copies.setState straight in an effect body.key, not an effect; effects only for outside systems; useEffectEvent for non-reactive logic; useLayoutEffect only to measure; one data-* handler per list reading currentTarget; a component is never called as a function and props are never mutated; no forwardRef or .Provider in new code.reactCompiler), with eslint-plugin-react-hooks' recommended preset and StrictMode on; new code adds no defensive useMemo, useCallback or memo, and existing memoisation is left alone until a profile says otherwise.<Suspense> has one above it: error.tsx and catchError in Next.js; a react-error-boundary that would swallow redirect() or notFound() is a finding.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
npx claudepluginhub timonwa/engineering-skills --plugin feOther plugins' skills for the same job
20 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.