naming-cheatsheet

Applies the A/HC/LC pattern to name variables, functions, and classes consistently.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/dev-khoi/AURA-conHack-2026 --skill naming-cheatsheet-dev-khoi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: naming-cheatsheet
Source: https://github.com/dev-khoi/AURA-conHack-2026/tree/main/.opencode/skills/naming-cheatsheet
Command: npx skills add https://github.com/dev-khoi/AURA-conHack-2026 --skill naming-cheatsheet-dev-khoi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Inconsistent or unclear identifier names make code hard to read, review, and maintain. This Skill provides a structured, language-agnostic naming convention so variables, functions, and classes communicate their purpose immediately. ## Core Features & Use Cases - A/HC/LC Naming Pattern: Structures function names as prefix + action + high context + low context (e.g., getUserMessages, shouldDisplayMessage). - Action Verb Reference: Defines precise semantics for get, set, reset, remove vs delete, compose, and handle, including correct pairing of opposites. - Boolean and Boundary Prefixes: Standardizes is/has/should for booleans and min/max/prev/next for boundaries and state transitions. - React-Specific Rules: Covers the reserved use prefix for hooks, factory function naming, and distinguishing Error instances from error message strings. - Use Case: While reviewing a pull request, apply the cheatsheet to flag names like isProductsExist or onItmClk and suggest hasProducts and onItemClick instead. ## Quick Start Review the naming in my code and suggest improvements using the A/HC/LC naming convention.

Frequently Asked Questions about naming-cheatsheet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I name functions using the A/HC/LC pattern?▼

Structure function names as prefix + action + high context + low context, such as getUserMessages or shouldDisplayMessage. The action is a verb like get or handle, high context is the main entity, and low context adds optional specificity.

What is the difference between remove and delete when naming functions?▼

Use remove when taking something out of a collection, paired with add. Use delete when permanently erasing something from existence, paired with create. For example, removeFilter filters an array while deletePost erases a database record.

Which boolean prefix should I use: is, has, or should?▼

Use is for characteristics or state (isEnabled), has for possession of a value (hasProducts), and should for positive conditionals coupled with an action (shouldUpdateUrl). Avoid forms like isProductsExist in favor of hasProducts.

Can I use the use prefix for regular utility functions in React?▼

No, the use prefix is reserved for React hooks that call other hooks. Naming a plain utility useHasDifferentBillingAddress is misleading; name it hasDifferentBillingAddress instead so linters and readers do not treat it as a hook.

Why should I avoid context duplication in method names?▼

Duplicating context creates redundant names like MenuItem.handleMenuItemClick. Since the class already provides context, handleClick reads naturally as MenuItem.handleClick and keeps names short without losing meaning.