flpbalada/fb-skills

naming-cheatsheet

Name code identifiers clearly and consistently.

First seen May 4, 2026

Installation

$ npx skills add flpbalada/fb-skills --skill naming-cheatsheet

Summary

  • Name code identifiers clearly and consistently.
  • Use when naming or reviewing variables, functions, booleans, classes, files, modules, React hooks, event handlers, props callbacks, error values, and domain concepts; reducing ambiguity, duplicated context, contractions, or misleading singular/plural names.
  • For larger code-quality review use code-reviewer.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from flpbalada/fb-skills · top by installs.

npx skills add flpbalada/fb-skills

Browse all from flpbalada/fb-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 7
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,963 B
  • docs SUMMARY.md 380 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 13 installs

SKILL.md

Naming Cheatsheet

Use names that are short, intuitive, and descriptive.

Goal

Make code read naturally. Reduce ambiguity. Keep names consistent.

Rules

  • Use English.
  • Follow project convention.
  • Avoid contractions and made-up words.
  • Avoid duplicated context.
  • Match singular/plural to value shape.
  • Name booleans by expected truth.
  • Reserve React use prefix for hooks.

Function Pattern

prefix? + action + high context + low context?

Examples:

  • getUser
  • getUserMessages
  • handleClickOutside
  • shouldDisplayMessage

Actions

  • get: read or fetch data.
  • set: assign next value.
  • reset: restore initial state.
  • add / remove: collection changes.
  • create / delete: entity lifecycle.
  • compose / build: create value from values.
  • handle: respond to event.

Boolean Prefixes

  • is: state, like isActive.
  • has: possession, like hasItems.
  • should: condition plus action, like shouldRender.
  • can: capability, like canEdit.
// Bad
const isProductsExist = products.length > 0

// Good
const hasProducts = products.length > 0

React and Errors

  • Use useX only for hooks.
  • Event handlers: handleX.
  • Props callbacks: onX.
  • Factory functions need verbs: createErrorResult.
  • error: Error instance.
  • errorMessage: string.
  • errors: list.

Output

## Naming Review

Identifier: [current name]
Issue: [unclear / inconsistent / too broad / wrong shape]
Better name: [new name]
Reason: [why]
Pattern: [action/context/boolean/boundary]