flpbalada/fb-skills/naming-cheatsheet

Claude Code and agent skill by flpbalada/fb-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install flpbalada/fb-skills/naming-cheatsheet

SKILL.md

The same SKILL.md was published earlier as flpbalada/fb-skills/naming-cheatsheet.

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

text
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.
ts
// 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

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

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
Repository forks
1
7-day trend score
16

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/flpbalada/fb-skills/naming-cheatsheet/badge)](https://verified-skill.com/skills/flpbalada/fb-skills/naming-cheatsheet)

Something wrong with this skill or its page? Tell us.