bd-dxg/my-pi/naming

Claude Code and agent skill by bd-dxg/my-pi

Trust tier 2
  • community
LLM review pending
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/naming

SKILL.md

The same SKILL.md was published earlier as bd-dxg/skills/naming.

标识符命名助手

根据用户的中文描述,生成简洁、准确的 PascalCase 英文标识符(适用于类名、组件名、工具函数名、文件名等)。

输入格式: 用户在 skill 名称后直接跟中文描述,如 naming 用户配置、naming 获取订单列表的接口。中文描述就是命名对象的全部信息,无需额外确认或追问。

核心规则

  • 输出格式: 仅返回推荐名称,使用 PascalCase,用反引号包裹
  • 只返回一个: 不给出多个候选,只给最优解
  • 简洁优先: 用最少的词汇表达核心含义,避免冗余
  • 单数优先: 如 UserConfig 而非 UserConfigs(除非确指多个)

命名原则

  1. 准确: 优先表达核心功能,不堆砌修饰词
  2. 自然: 符合英语表达习惯
  3. 统一: 同一项目中同类元素保持命名风格一致

避免的模式

  • 不用冗余后缀: 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bd-dxg/my-pi/naming/badge)](https://verified-skill.com/skills/bd-dxg/my-pi/naming)

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