/eng:namingfrom Engineering Skills
Use whenever naming or renaming anything — code (functions, hooks, components, variables, booleans, types, Zod schemas, constants, files), test files and fixtures, API paths, JSON and stored fields, enum values, collections, error codes, analytics events, CSS classes, design tokens and assets. Enforces descriptive, verb-first, ownership-revealing names with the house casing, the `<domain>.<kind>.ts` file suffixes, and structured patterns. Apply when writing new code, creating assets/tokens, reviewing names, or refactoring.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Every name says what the thing does and what it belongs to — never vague, never cryptic. A reader should know a symbol's job from its name alone.
Principles: every name is predictable · consistent · scalable · scannable · unambiguous.
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.
createGeminiClient, not getGemini; currentUser, not usr. Never data, item, temp, val, next, target, source or handle on their own, and no cryptic abbreviations (btn, qty) — i in a tight loop is the one exception.import X as Y).UpdatePasswordOutcome, not UpdateOutcome); only genuinely shared symbols keep a bare generic name.sendVerificationEmailIfUnverified, not sendEmailVerification). Two names that differ by a letter send readers to the wrong one.camelCase for variables, functions, props and hooks; PascalCase for components and types; UPPER_SNAKE_CASE for constants; kebab-case for files, folders and CSS classes, with the component-file exceptions under Files and folders.data is as unclear as a service named data.Lead with the verb that names the action, then the subject:
| Prefix | Meaning | Example |
|---|---|---|
get | sync / local read or derive | getUserId, getFullName |
fetch | async / remote (network) read | fetchCurrentUser |
create / update / delete / save | mutations | createEvent, deleteAlbum |
build / make | construct an object/config | buildMetadata |
format / <x>To<y> | transform; state input → output | formatIsoToString |
parse | string → structured | parseFrontmatter |
require | a guard that throws or refuses | requireSession |
handle | internal event handler | handleSubmit |
on | event callback prop | onOpenChange |
get vs fetch: get is synchronous or local; fetch crosses the network. Never call a network read getUser.
use + subject/behaviouruseCurrentUser, useClickOutside, useMountTransition. The name states what it gives you or does.
Prefix with is / has / are / can / should / will: isOpen, hasAccess, canEdit, shouldRender. Applies to variables, props, refs (isInFlightRef) and boolean-returning functions (isValidEmail).
An intentionally unused parameter or variable starts with an underscore (_request). A stub signature is a contract, and ^_ is the pattern the linter ignores, so the underscore says "unused on purpose" instead of a disabled rule.
Name for what it renders: SearchInput, UserCard, EmptyState. A feature's own components carry the feature's name, so two features never ship a bare Hero each (PricingHero). A component's props type is <Component>Props; a page component is <Page>PageContent.
Props suffix (ButtonProps) — and only component props; a non-prop type never takes Props.Schema suffix (UserSchema); the inferred type takes the clean name (type User = z.infer<typeof UserSchema>), in the same <domain>.schema.ts file.Type suffix (User, EventStatus).UPPER_SNAKE_CASE (EVENT_STATUSES); an as const union's type stays a clean noun (EventStatus).T, or descriptive T-prefixed names (TItem, TResponse) once a signature has more than one.PascalCase, matching the primary export: SearchInput.tsx, SearchInput.stories.tsx, Hero.tsx.kebab-case (search-input.tsx, search-input.stories.tsx) when the package is built on a base library installed from a registry. The registry writes kebab-case files, and matching it keeps every reinstall from renaming files.kebab-case, matching the primary export's concept. Framework-mandated names (page.tsx, layout.tsx, proxy.ts) keep their own convention.lib/ file carries its kind as a suffix — <domain>.<kind>.ts, singular. The folder names the kind and the filename repeats it so an import line stands alone: auth.constant.ts, nav.type.ts, plan.data.ts, string.utils.ts, user.schema.ts, and on the server user.action.ts, user.data.ts, user.service.ts, redis.client.ts, require-session.guard.ts. Two exceptions: config/ uses bare names (env.ts, routes.ts, site.ts — one per app, so a suffix adds nothing), and a single-function util may keep a bare name (cn.ts).use-<subject>.ts (use-click-outside.ts), because use is what makes it a hook.utils/seo.utils.ts, not utils/seo/index.ts. When a domain outgrows one file, where its folder goes is code-structure's.kebab-case, except a component's own folder in an app, which is PascalCase matching the component (ui/blocks/HeroSection/).[type]-[name]-[variant].[ext] pattern is for assets and tokens (icon-arrow-left.svg), not code.| File | Holds | Example |
|---|---|---|
<name>.test.ts(x) | the spec, beside the unit it tests | string.utils.test.ts |
<domain>.fixture.ts | builders for sample records | user.fixture.ts |
<service>.fake.ts | a working in-memory stand-in for a dependency | firestore.fake.ts |
<service>.mock.ts | a stand-in that returns set values and records calls, where a fake is overkill | firebase-auth.mock.ts |
__mocks__/<module>.ts | the test runner's manual mock for a whole module, mirroring its import path | __mocks__/@upstash/redis.ts |
Builders and fakes follow the function rules: buildUser, createFirestoreFake. What to fake and when is testing's.
kebab-case (/forgot-password); dynamic params camelCase ([userId]). Where the paths live is code-structure's.UPPER_SNAKE_CASE; what may take the NEXT_PUBLIC_ prefix is env's.CACHE_TAGS const, entity:id grammar (user:123).redis's.type/short-kebab-description (feat/, fix/, docs/); the rest of the git flow is ship-changes'.kebab-case resource nouns (/api/v1/events/{eventId}/ticket-types); a verb appears only as a state-transition sub-route (/publish). Route structure is api-architecture's.camelCase, the same name in the store, on the wire and in the type, so no layer translates between them.At (createdAt, publishedAt); a calendar date with no time ends in Date (startDate);durationSeconds, sizeBytes, amountMinor beside currency);Id (ownerId), a count in Count (attendeeCount), and a list is plural (tags, memberIds);isPublished).snake_case strings (pending_payment), never display text and never renamed once stored: the label the UI shows lives in a separate map.events, teamMembers), from one constants file; a document id is never a display value.<Situation>Error (NotFoundError, RecentSignInRequiredError); the code clients branch on is UPPER_SNAKE_CASE (RATE_LIMITED) and, like an enum value, never changes once shipped.object_action in snake_case, past tense, from one catalogue constant (event_published, ticket_purchased); their properties are snake_case too, matching what analytics tools expect. One name per action across every app, or the funnels split.kebab-case (page-hero, section-eyebrow, btn-primary). Hand-authored class names are never prefixed; how they're defined is tailwind's.
Two kinds, named for what they hold. Ramps name the hue and step (--color-brand-600, --color-neutral-50); roles name the job, never the value, and are what components use — --surface, --foreground, --muted-foreground, --border, --primary, --on-primary, exposed to Tailwind as --color-surface and used as bg-surface, text-muted-foreground. A state is a suffix (--primary-hover). Defined in CSS (tailwind).
kebab-case with a typed prefix so they group and scan:
icon-[name]-[size] (icon-search-24). The [name] is always present, which keeps these clear of the brand icon.svg / icon-dark.svg below: a bare icon or icon-<variant> is the brand symbol, icon-<name>-<size> is an interface glyph.illust-[scene]-[variant] (illust-empty-cart-dark).logo[-variant] is the symbol plus the name; icon[-variant] is the symbol on its own: logo.svg, logo-dark.svg, logo-cream.svg, icon.svg, icon-light.svg. The bare name is the default; the suffix is the colour of the artwork, never the background it sits on — mixing the two readings inverts half the usages. Named brand colours are legitimate variants (logo-cream).[type]-[name]-[variant].[ext].Ship logos and symbols as SVG; add a PNG only where a raster is required (email, social cards, an OS icon), with the same stem. Favicon and app-icon files are not brand assets — in Next they are metadata files in app/ (favicon.ico, icon.svg, apple-icon.png) and keep the framework's required names.
Audit: review this domain on demand with
conventions-audit(seeaudit-allfor the whole suite).
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