naming-conventions
Applies descriptive, self-documenting naming in any language (TypeScript, bash, workflow YAML, Dockerfiles). Use this skill whenever naming or renaming an identifier, variable, constant, function, par
SKILL.md.claude/skills/naming-conventions/SKILL.md
GitHubNaming Conventions
Follow Apple's Swift API Design Guidelines: names should be clear at the point of use, reading like prose. Favor long, descriptive names over short or abbreviated ones.
- Functions and methods: imperative verb phrases:
calculateProgressPercentageFromCompletedSets,processUserOnboardingProfile - Parameters: role, not type:
totalSecondsnotn,emailAddressnots - Variables: what they hold:
restDurationInSeconds,submitButton,weightInputValue - No abbreviations: owned by
.claude/rules/no-abbreviations.md - No type noise:
availableExercisesnotexerciseArray, and never so short it loses clarity
Casing is each language's own convention; for TypeScript, see the typescript skill.
Exception, React event handlers follow
handle{Action}{Element}from the react-code skill (e.g.handleClickSave,handleChangeInput), the{Element}is required, since a barehandleClickorhandleChangesays when it fires, not what it does. The descriptive naming guidelines above apply to utilities, hooks, callbacks, and non-event-handler functions.
Read references/examples.md for extended BAD/GOOD examples of each naming pattern.