/eng:conventions-audit [phase] [path]from Engineering Skills
Manually invoked. Audits an app or monorepo against the house naming and code-structure standards — identifier, file, test-file, field and error naming; thin route entries and app/ holding only Next's files; components by product area; kind-first lib/ and barrels; server boundaries; typed routes; promotion on the second consumer; duplicated helpers, oversized files, hardcoded values and cross-app config drift. Verifies each finding and writes a prioritised report.
Ships in Engineering 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 conventions 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/conventions-audit.md.
Self-contained — this checklist is comprehensive on its own and needs no other skill installed. Where the house skills
namingandcode-structureare installed, they are the fix target for what this finds.
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 audit phase the project's AGENTS.md records, else production (assume the app is live until told otherwise).[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; else production, so a CRITICAL finding gets Fix-Now urgency instead of a pre-launch discount._reports/conventions-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/conventions-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/conventions-audit.md in the format in references/report-format.md: the header line, the score change with its one Overall row, the findings table with its status legend and one section per finding, the scorecard and phase-tiered action items.
Every run produces two things:
_reports/conventions-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.
The criteria below are the audit's full working rules. Check the shared packages and each app's src/.
get (local), fetch (network; never getUser for a request), create/update/delete/save, build/make, parse, format or <x>To<y>, require (a guard), handle (internal handler), on (callback prop). Booleans are is/has/are/can/should/will; hooks use + what they give.data, item, temp, val, next, target, source or handle, no cryptic abbreviations (btn, qty; i in a tight loop is fine); an unused value starts with _; a symbol one feature uses carries its name; one canonical name per symbol, never renamed on import; a wrapper never shadows a dependency's name with a near-copy.Schema, its inferred type takes the clean noun (no Type); Props only on component props; constants UPPER_SNAKE_CASE; a composed page is …PageContent; generics are a lone T or TItem-style names.kebab-case; JSON and stored fields camelCase; a timestamp ends in At, a date in Date, an id in Id, a count in Count, a number with a unit names it; a list is plural; stored enum values lowercase snake_case; collections plural, from one constants file; error classes <Situation>Error with UPPER_SNAKE_CASE codes; analytics events object_action, past tense, snake_case properties, from one catalogue.kebab-case with [camelCase] params; env vars UPPER_SNAKE_CASE; cache tags from one CACHE_TAGS constant in entity:id form; CSS classes kebab-case and unprefixed; tokens as ramps and roles; assets prefixed (icon-<name>-<size>, illust-…), a logo- suffix naming the artwork's colour.PascalCase matching the export; in a shared UI package built on a registry-installed library, kebab-case, matching the registry. Folders are kebab-case, except an app component's own folder.kebab-case with its kind as a singular suffix — <domain>.<kind>.ts (auth.constant.ts, user.schema.ts, user.service.ts) — except config/ and seo/ (bare names), a single-function util, framework-mandated names (page.tsx, proxy.ts) and the index.tsx composer. Hooks are use-<subject>.ts. The domain is a filename prefix at first; a domain that outgrows one file becomes a folder inside its kind, whose files carry only the concern (services/event/crud.service.ts).<name>.test.ts(x) beside the unit; <domain>.fixture.ts, <service>.fake.ts, <service>.mock.ts; manual mocks in __mocks__/ mirroring the import path.app/ holds only the files Next reads by name — no components, data, helpers or private folders. A page.tsx imports a …PageContent and renders it; a layout.tsx renders a shell; neither holds more than a guard. Every parallel slot has a default.tsx; one segment holds a page.tsx or a route.ts, never both; global-error sits only in app/; nothing in public/ duplicates a generated robots, sitemap or favicon. All source sits under src/ with @/*, and proxy.ts and instrumentation.ts beside app/.(auth)/auth/); a route never repeats its app's name.components/ by product area, pages nested as their URLs are, sections one named export per file composed by index.tsx; only .tsx (plus colocated stories, tests, CSS modules where the project uses them, and an approved stub). Error, not-found and unauthorised views group in components/errors/, client gates in components/guards/; there's no root _shared/index.ts. Cross-feature widgets in _shared/ groups, each with an explicit barrel; a server-coupled component stays out of its barrel.lib/ is kind-first — one folder per kind, no domain folders or loose files at the root, no mini hooks/ or types/ inside a feature, no empty kinds, no types/ re-declaring a schema's or constant's type. A kind may group its files by domain or concern once it grows (hooks/auth/ data/ ui/). Every barrel lists each file by name, never export * from a directory. Fixtures and fakes sit in src/testing/.config/ barrel is server-only; client code imports @/lib/config/routes by path.server-only barrel exporting only what app code may call — an app with its own backend: actions and services; a frontend over an API: actions and data, plus the identity helpers a guard calls, never the fetchers; the API app: src/server/ with services and guards only. No mixed server and client barrel; browser-only entry points are client-only; the action-result type sits in its own file.app/ → components/ → ui/ → lib/ — enforced by a lint rule.foundations, assets, icons, base, components, blocks, layouts (and pages in a shared package); no patterns or composite tier.hooks kind.typedRoutes: true; each app's routes.ts ends } as const satisfies RouteTable, a type declared in that file. A path with a parameter is a function typed by its template. as Route on a literal is a finding; it's kept only for a path known at runtime, with a comment. A nav item's href is typed Route.routes.ts and endpoints.ts are grouped, not one flat map, and endpoints build from one API version constant.security-audit's, env guards env-audit's.)dependency-audit's)..env.example, comments, the bare /, and Storybook demo data..env is env-audit's.)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 eng20 skills in this plugin
/agents-mdWrites or updates a project's AGENTS.md and the short AGENTS.md notes in each app and package — what an agent can't work out from the code: commands, structure, conventions that differ from the defaults, workflow, recorded deviations from the house standards and hard constraints, under 200 lines. Use when starting a project, setting up AGENTS.md or CLAUDE.md, or bringing a project's agent instructions up to date./audit-allManually invoked. Runs the house audit suite across the eng, fe and be sets — detects what the repo has, runs every installed audit that applies (codebase, conventions, dependencies, env, security, accessibility, frontend, performance, SEO/AEO/GEO, Storybook, content, API, access control, Firestore, Redis), and rolls their reports into one health report with an overall score and cross-cutting priorities. Each audit still writes its own report./Other plugins' skills for the same job