bd-dxg/my-pi/naming
Claude Code and agent skill by bd-dxg/my-pi
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
根据中文描述生成英文标识符(PascalCase)。当用户提到"命名"、"起名"、"叫啥"、"取个名"、"这个叫啥"、"module/component/class/file 叫什么"等需要为代码元素起英文名的场景时使用,即使用户没有明确说"生成英文文件名"。
Install
npx vskill@latest install bd-dxg/my-pi/namingSKILL.md
The same SKILL.md was published earlier as bd-dxg/skills/naming.
标识符命名助手
根据用户的中文描述,生成简洁、准确的 PascalCase 英文标识符(适用于类名、组件名、工具函数名、文件名等)。
输入格式: 用户在 skill 名称后直接跟中文描述,如 naming 用户配置、naming 获取订单列表的接口。中文描述就是命名对象的全部信息,无需额外确认或追问。
核心规则
- 输出格式: 仅返回推荐名称,使用 PascalCase,用反引号包裹
- 只返回一个: 不给出多个候选,只给最优解
- 简洁优先: 用最少的词汇表达核心含义,避免冗余
- 单数优先: 如
UserConfig而非UserConfigs(除非确指多个)
命名原则
- 准确: 优先表达核心功能,不堆砌修饰词
- 自然: 符合英语表达习惯
- 统一: 同一项目中同类元素保持命名风格一致
避免的模式
- 不用冗余后缀:
UserConfigFile❌ →UserConfig✅ - 不用中文拼音:
YongHuLiang❌ →UserList✅ - 不缩写罕见词:
AuthValidationMiddleware偏长,优先AuthMiddleware✅
常用词汇速查
| 中文 | 英文 | |
|---|---|---|
| 配置 | Config | |
| 用户 | User | |
| 列表 | List | |
| 详情 | Detail | |
| 创建 | Create | |
| 更新/编辑 | Update | |
| 删除 | Delete | |
| 工具 | Util | |
| 服务 | Service | |
| 组件 | Component | |
| 页面 | Page | |
| 接口 | Api | |
| 类型定义 | Types | |
| 常量 | Constants | |
| 存储 | Store | |
| 路由 | Route | |
| 中间件 | Middleware | |
| 处理器 | Handler | |
| 验证 | Validate | |
| 格式化 | Format | |
| 解析 | Parse | |
| 转换 | Transform | |
| 日志 | Logger | |
| 错误 | Error | |
| 仓库 | Repo | |
| 控制器 | Controller | |
| 认证 | Auth |
边界情况
| 场景 | 处理方式 | |
|---|---|---|
| 描述非常模糊(如"写个工具") | 输出通用名如 Util,并在末尾简要说明需要更多上下文 | |
| 描述过长 | 提取核心 1-2 个关键词,丢弃修饰语 | |
| 需同时命名多个元素 | 输出一个,提示用户继续描述其他元素 |
示例
| 输入 | 输出 | |
|---|---|---|
| "用户配置" | UserConfig | |
| "获取订单列表的接口" | OrderListApi | |
| "处理用户登录验证的中间件" | AuthMiddleware | |
| "时间格式化工具" | TimeFormatUtil | |
| "错误处理中间件" | ErrorHandler | |
| "路由配置" | RouteConfig | |
| "创建订单" | CreateOrder | |
| "用户服务" | UserService | |
| "日志工具" | Logger |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/naming/SKILL.md
Popularity
- Repository stars
- 89
- Repository forks
- 14
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/bd-dxg/my-pi/naming)