/powertools:naming-guidelinesfrom powertools
Apply professional naming guidelines to code identifiers — variables, constants, classes, methods, parameters, and collections. Use this skill whenever someone asks how to name something in code, whether a name is good, how to improve a name, what's wrong with an existing name, or how to make code more readable through better naming. Also trigger when someone shares code with names like `foo`, `data`, `temp`, `flag`, `i`, `j`, `manager`, `handler`, `doIt`, `getX`, or names that use abbreviations, numeric suffixes, or type prefixes. This skill consolidates guidelines from multiple sources — Ottenstein, Relf, Lawrie et al., Benlarbi, and others — as presented by Peter Hilton's naming guidelines for professional programmers. Domain-agnostic: applies to any language or codebase.
Ships in powertools. 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.
None: SKILL.md is the whole skill.
Identifier names comprise 33% of tokens and 72% of characters in large codebases. Studies confirm that full-word identifiers aid understanding better than abbreviations or single letters. The biggest ROI in code readability is naming — not comments, not documentation.
Most teams acknowledge naming is important but have no written guidelines. This skill provides that foundation.
When reviewing or improving names, work through the applicable category below. Each guideline states the rule, what violation looks like, and how to fix it.
A name must pass all applicable guidelines. Start with Syntax, then Vocabulary, then the type-specific guidelines for the kind of identifier being named.
These govern the structure and format of names, independent of meaning.
Apply standard casing with rigorous consistency. Use language-specific inspection tools to enforce it.
Violations: appleCOUNT, apple_count in a camelCase language.
Never add numbers to distinguish identifiers with the same base name. Replace the number with words that describe the actual difference.
Violations: employee2, result1, config3.
Only use correctly-spelled dictionary words and abbreviations that appear in a dictionary.
Exceptions: id, and documented domain-specific abbreviations.
Spelling mistakes create ambiguity. Abbreviations introduce a different kind of ambiguity — the original author knows which word it stands for, but readers don't.
Violations: acc, pos, char, mod, auth, appCnt, usr, pwd.
Refactoring: Write words out in full. Define abbreviations explicitly for the bounded context.
No exceptions for single-letter names — use dictionary words. Single-letter names introduce maximum ambiguity and are not searchable.
Research finding: "Full-word identifiers lead to the best comprehension; however, in many cases there is no statistical difference between using full words and abbreviations." (The implication: abbreviations are never better, only sometimes equivalent — so default to full words.)
Violations: i, j, k, l, m, n, t, x, y, z.
Don't use ASCII art symbols as identifiers in languages that permit it. Very limited exceptions for documented domain-specific symbols (e.g. arithmetic operators).
Violations: >=>, <*> (Scala function names colloquially called "fish" and "space ship").
Name what the constant represents — not its value.
Violations: 3.14159, ONE_HUNDRED, SEVEN.
Corrections: pi, boiling_point, max_retries.
Multiple consecutive underscores look like a single line and are impossible to count reliably.
Violations: APPLE__COUNT.
Don't use underscores as prefixes or suffixes.
Violations: _APPLE_COUNT, APPLE_COUNT_.
A name longer than 20 characters is a signal to either simplify or extract an intermediate declaration.
Violations: ForeignDomesticAppleCount.
Limit to words a reader can parse at a glance. Avoid gratuitous context — don't prefix every name with the system or module name.
Violations: NewRedAppleSizeType, MyAppSizeType, OrderServiceManagerHelperUtil.
Suffixes like minimum, count, average, and total link a derived value back to its
source concept naturally. Prefixes break the visual grouping.
Violations: MINIMUM_APPLE_COUNT.
Correction: APPLE_COUNT_MINIMUM.
Don't let a local variable shadow a field with the same name. Add words to clarify the difference between contexts.
These govern word choice — precision, clarity, and consistency.
The name must describe a recognisable concept with enough context. Never use placeholder names.
Violations: foo, blah, flag, temp, data2, stuff.
Identify a specific kind of information and its purpose. Imprecise words apply equally to multiple identifiers and fail to distinguish them.
Violations: data, object, info, value used without qualification.
Use words with a single clear meaning. Abstract words apply to everything and describe nothing.
Violations: Manager suffix, get as a general-purpose prefix, doIt, process, handle.
Avoid cute or funny names that require shared culture or extra effort to decode. Humour relies on indirection and ambiguity — the exact opposite of what a name should do.
Violations: whack instead of kill, nuke instead of delete.
When a precise word exists for the concept, use it instead of a multi-word description.
Violation: CompanyPerson.
Correction: Employee.
Use the correct term from the domain's ubiquitous language. Use only one term per concept within a bounded context. Consistently apply the terminology subject-matter experts use.
Violation: Order when the domain means Shipment (supply-chain context, where they differ).
Don't use names that differ only by a single character or letter. Readers will mix them up.
Violation: appleCount vs appleCounts.
Don't use two names that combine the same words in different order.
Violation: appleCount vs countApple.
Don't use names that are synonyms of each other. The names should reflect genuinely different concepts.
Violations: input/inputValue, recordCount/numberOfRecords.
Names should sound different when spoken aloud. Aim for code that another programmer could write down correctly if you read it to them.
Violation: wrap/rap.
Don't encode the data type in the name — no Hungarian notation, no type suffixes.
Violations: isValid, dateCreated, iAppleCount, strName, intCount.
Corrections: valid, created, appleCount, name, count.
Note on is prefix: this guideline says omit it. See the method guidelines for when is
is appropriate as a method prefix (only for Boolean accessor methods).
Don't pluralise names for individual values.
Violation: appleCounts (single integer).
Correction: appleCount.
Pluralise names for collections (lists, sets, arrays).
Violation: remainingApple for a set of apples.
Correction: remainingApples.
When the collection's type has a natural collective noun in context, prefer it over a plural.
Violations: appointments → prefer calendar; pickedApples → prefer harvest.
Use the established pair and apply it consistently. Don't mix terminology from different pairs.
Standard pairs: add/remove, begin/end, create/destroy, first/last, get/release, increment/decrement, insert/delete, lock/unlock, minimum/maximum, next/previous, old/new, open/close, push/pop, show/hide, source/destination, start/stop, up/down.
Violation: first/end (mixing different pairs — should be first/last or begin/end).
Boolean variables need names that are inherently true or false in meaning.
Violation: status (ambiguous — what kind of status?).
Correction: started, enabled, found, done, valid.
Don't build negation into the name.
Violation: notSuccessful.
Correction: successful.
A class name should complete the sentence: "This class' constructor returns a new ___."
Violation: Calculate.
Correction: DiscountRule, InvoiceProcessor.
Don't name a class after a specific state if instances can change state. The name must remain accurate across the full object lifecycle.
Violation: A class called ControlEnableState with a disable() method.
Correction: ControlState.
Some types aggregate multiple values of the same type (e.g. a line with start and end).
Use a name that applies equally to all values — not just one of them.
Violation: start field has type MAssociationEnd (implies only one direction).
Correction: MAssociationExtremity.
Method names should be active verb phrases, except accessor methods.
Common accessor shorthand styles (pick one and apply consistently):
Parcel.getWeight() — classic JavaBeansParcel.weight() — omit verb for accessorsDiscount.asPercentage() — omit verb for conversion methodsViolation: calculation().
Correction: calculateDiscount().
get, is, or has for methods with side-effectsThese prefixes imply idempotence — reading without changing state. If a method has a
side-effect, use a verb that suggests it: create, convert, build, fetch.
Violation: getImageData() that constructs a new object.
Correction: buildImageData() or createImageData().
get for direct field access that returns a valueget is only appropriate for a method that literally returns a field value with no computation
or external access.
Violations:
getScore() that performs calculation → calculateScore()getMethodBodies() that populates but doesn't return → loadMethodBodies()is and has for Boolean field accessorsDon't use these prefixes on methods that don't return a Boolean.
Violation: isValid() returns an int.
Correction: validationCode() or validate().
set for void mutatorsDon't use set on methods that return a value.
Violation: setBreadth() that creates and returns a new object.
Correction: withBreadth() (fluent API) or resizeTo().
Methods named validate, check, or ensure must either return a result or throw an
exception on failure — never return void.
Violations: validateSnaps() returning void, checkCurrentState() returning void.
Methods named with verbs like convert, transform, or parse must return the result.
Violation: javaToNative() with return type void.
Correction: Either return the result, or rename to reflect what the method actually does.
These guidelines appear in the literature but are rejected:
Use short names for short scopes — Rejected. It contradicts the guidance to avoid encodings, is hard to apply consistently, and creates maintenance burden when scope changes.
Encode scope length in name length — Rejected for the same reasons.
Add Class suffix to class names — Rejected. It is redundant. Language conventions and
tooling already communicate that a type is a class.
Qualify enumeration constants with the type name — Rejected. Adding an enum type's name to its constants' names makes as little sense as adding a class name to its instances' names.
When reviewing any name, check:
Based on Peter Hilton's Naming Guidelines for Professional Programmers presentation, which consolidates guidelines from: Ottenstein (1977), Relf (2007), Lawrie, Feuer, Hendrix & Host (2007), Benlarbi et al. (2000), and McConnell's Code Complete. Hilton and Felienne Hermans also cover naming extensively in Software Design: Tidy First? adjacent work.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jordangaston/claude-plugins --plugin powertools79 skills in this plugin
/ai-camera-movementsLibrary of 46 camera movement prompt blocks for AI video generation (Seedance, Kling, Veo, Runway, Higgsfield). Use this skill EVERY time the user needs a camera move for a video prompt, asks "what camera movement should I use", wants a dolly/pan/orbit/zoom/crane/drone/tracking/handheld/whip-pan/FPV/snorricam/tilt-shift/earth-zoom prompt, asks to add camera motion to a shot, wants to compare camera moves for a scene, or says "Run Camera" / "camera move for this shot". Also trigger when building shot lists or video prompts with other skills (ai-filmmaking, seedance-prompt-structure, genhq-seedance-2-prompt-builder) and a camera instruction is needed — this skill supplies the camera block./ai-image-promptsTurn a seed idea into a polished AI image-generation prompt using a 6-part structure: [medium], [subject], [action/pose], [environment], [style/vibe], [technical specs]. Use this skill whenever the user wants a prompt for generating an image with any model — Midjourney, DALL-E, Imagen, Nano Banana, Flux, Stable Diffusion, Freepik, or unnamed — or asks to 'write an image prompt,' 'make a prompt for this idea,' 'improve my image prompt,' or gives a rough visual idea ('a red panda barista,' 'cyberpunk samurai in the rain') and wants it image-ready. Also trigger when the user asks why their image prompts produce weak or inconsistent results. Covers any visual medium: photorealistic, digital painting, 3D render, anime, illustration, pixel art, watercolor, concept art, and more.Other plugins' skills for the same job