code-quality
Non-negotiable code quality standards. Use when writing or reviewing any code in any language.
来源信息
- 仓库
- dabydat/alpha-omega
- 最近来源活动
- 2026年9月25日 06:21
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1
- Forks
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- code-quality
- description
- Non-negotiable code quality standards. Use when writing or reviewing any code in any language.
# neuron: code-quality
- triggers_when: code is written or reviewed and must meet quality standards
- tier: T2
- budget: 500 tokens
- eval: number of violations of universal rules -> threshold 0
- reward: pheromone +1 if eval >= threshold
## Procedure
1. Apply strict typing (parameters and returns, 0 public methods without type).
2. Keep functions <=30 lines (Extract Method) and files <=300 (Extract Class).
3. Remove magic numbers, dead code and debug code.
4. Write actionable errors and tests (>=80% business logic).
5. Verify the pre-delivery checklist.
## Checklist
- [ ] Functions <=30 and files <=300 lines
- [ ] No magic numbers or debug code (console.log/dd/dump)
- [ ] Actionable errors
- [ ] SOLID + tests
## Pitfalls
- Default exports (use named exports)
- >3 parameters without a Parameter Object
- Skipping business logic tests
在 GitHub 查看