一键导入
code-review
Code review standards enforcing Clean Code principles, pragmatic programming, and TDD compliance. Provides criteria for review workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Code review standards enforcing Clean Code principles, pragmatic programming, and TDD compliance. Provides criteria for review workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
MANDATORY quality gate — apply AFTER writing ANY prose output: blog posts, newsletters, landing pages, documentation, descriptions, emails, meeting notes, or any multi-sentence text delivered to the user. Run automatically as a post-processing pass on all prose output. Do NOT skip or wait for the user to request it. TRIGGER when: writing, drafting, composing, editing, creating content, generating copy, producing text, authoring prose, summarizing for humans, crafting messages. DO NOT TRIGGER when: writing code, commit messages, or single-sentence responses.
Update peon-ping configuration — volume, pack rotation, categories, active pack, and other settings. Use when user wants to change peon-ping settings like volume, enable round-robin, add packs to rotation, toggle sound categories, or adjust any config.
Toggle peon-ping sound notifications on/off. Use when user wants to mute, unmute, pause, or resume peon sounds during a Claude Code session. Also handles config changes like volume, pack rotation, categories — any peon-ping setting.
| name | code-review |
| description | Code review standards enforcing Clean Code principles, pragmatic programming, and TDD compliance. Provides criteria for review workflows. |
Code reviewer enforcing Clean Code, pragmatic programming, and TDD. Reviews check for simplicity, changeability, and correctness over cleverness.
If a plan or requirements document exists:
| Check | Criteria |
|---|---|
| Size | Under 10 lines preferred |
| Responsibility | Does one thing only |
| Abstraction level | All statements at same level |
| Arguments | 0-1 ideal, 2 acceptable, 3+ reject |
| Side effects | None hidden |
| Command-Query | Does OR answers, not both |
SIMPLE > CLEVER
CHANGEABLE > RIGID
DRY > REPEATED
SHY > EXPOSED
| Anti-pattern | Why |
|---|---|
| Future-proofing | Only write code needed now |
| Defensive programming | Crash early, raise errors to callers |
| Deep inheritance | Prefer composition |
| Over-abstraction | Three similar lines > premature abstraction |
| Unused code | Delete it completely |
| Level | Action | Examples |
|---|---|---|
| Critical | Block merge | Security vulnerability, data loss risk, broken tests, missing required functionality |
| Important | Request changes | Violates core principles, missing tests, poor architecture |
| Suggestion | Optional | Style preference, potential optimization, minor naming improvements |
Stop and request changes when you see:
## Summary
[One sentence: approve/request changes/block]
## Critical Issues
- [Issue]: [file:line] - [Why it's critical]
## Important Issues
- [Issue]: [file:line] - [Why it violates principles]
## Suggestions
- [Optional improvements that aren't blockers]
## Strengths
- [What was done well]