Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub lazygophers/ccplugin --plugin namingHow this skill is triggered — by the user, by Claude, or both
Slash command
/naming:coresonnetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
适用于所有语言插件的命名场景:
Enforces precise naming for variables, functions, classes, files, and identifiers. Bans vague names like data/temp/result/info/handle/manager; promotes semantic accuracy and domain-specific terms via specificity ladder.
Choosing meaningful, pronounceable names that reveal intent for functions, variables, classes, and modules.
Suggests improved names for variables, functions, classes, files, DB tables, and API endpoints using language-specific conventions like camelCase or snake_case.
Share bugs, ideas, or general feedback.
适用于所有语言插件的命名场景:
| AI 可能的理性化解释 | 实际应该检查的内容 |
|---|---|
| "简短名称更高效" | ✅ 名称是否清晰表达意图? |
| "data/temp/obj 足够明确" | ✅ 是否使用了具体的描述性名称? |
| "ID 全大写更规范" | ✅ 是否使用 Id(PascalCase)? |
| "status 和 state 一样" | ✅ 是否统一使用 state? |
| "字符串时间更易读" | ✅ 时间字段是否使用时间戳? |
✓ user_name, get_user_by_id, calculate_total_price
✗ u, gubi, calc_tp
使用前检查:
| 错误命名 | 正确命名 | 说明 |
|---|---|---|
status | state | 使用 state 表示状态 |
ID | Id | ID 应使用 PascalCase |
Users | UserList | 使用清晰的集合名称 |
id | uid/userId | 简单的 id 易混淆 |
FLAG_ENABLE | IS_ENABLED | 布尔值使用 IS_ 前缀 |
data | user_data | 避免过于泛化的名称 |
temp | cache | 避免 temp 等临时性命名 |
obj | 具体类型名 | 避免过于抽象的名称 |
created_time | created_at | 时间字段使用 _at 后缀 |
| 字符串时间 | 时间戳 | 时间必须使用时间戳格式 |
state 而非 statusId 而非 IDUserList 而非 Users)id 改为 uid/userId 等明确名称IS_/is_ 前缀_at 后缀(如 created_at)data 改为 user_data)temp 改为 cache)obj 改为具体类型名)