SKILL

naming

在所有地方以相同方式命名代码、文件、路由和提交,界面使用读者语言,重命名时避免冲突。适用于命名或重命名时。

机器翻译
查看英文原文

Name code, files, routes and commits the same way everywhere, screens in the reader's language, and rename without collisions. Use when naming or renaming.

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Names and language
  • The boundary is who reads it
  • Casing
  • Records are addressed by their stable id
  • Commits
  • Before a bulk rename

Identifiers, file names, routes, comments and commit messages are in English: their readers are developers and tools. Everything a person reads on screen, in an e-mail or in a notification is in that person's language. The line is the audience, not "string or not string". Renaming by search-and-replace cannot see that line. Replacing search across a codebase once turned aria-label="Limpar busca" into aria-label="Limpar search". After any rename, search for mixed-language phrases in user-facing text. | Kind | Style | Example | |---|---|---| | Variable, function, JSON field | camelCase | userId, loadPosts() | | Class, component | PascalCase | PostEditor | | Module constant | SCREAMINGSNAKE | MAXRETRIES | | File | kebab-case | post-editor.js | | Route segment | kebab-case, English | /posts/{id}/edit | Id, never ID: userId, getById. Booleans ask a yes/no question and are affirmative: isOpen, hasAccess, canEdit, shouldRetry. Never notReady or disabled as a boolean name. Routes, API paths, webhooks and public links use the record's UUID: /posts/0b5c…/edit, never /post/12. A per-account counter is a display label. A slug the customer chooses is fine for public pages. Conventional Commits:

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
ciro-maciel/ccm-stack
源文件
skills/naming/SKILL.md
固定版本
6a6896522126857f460a3e3747bc0ec5607a8fea
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:ciro-maciel/ccm-stack · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T22:01:44.585Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。