AGENT SKILL
Code Review Expert
Standards for high-quality, persona-driven code reviews. Use when reviewing PRs, critiquing code quality, or analyzing changes for team feedback.
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 66
- Forks
- 24
01 前言 Front Matter
- name
- Code Review Expert
- metadata
- { "labels": [ "common", "review", "quality", "best-practices" ], "triggers": { "keywords": [ "review", "pr", "critique", "analyze code" ] } }
- description
- Standards for high-quality, persona-driven code reviews. Use when reviewing PRs, critiquing code quality, or analyzing changes for team feedback.
02 资源文件 8
- 参考文档references/documentation_creation.md4.3 KB
- 参考文档references/domain_patterns.md4.9 KB
- 参考文档references/evaluation_summary_contract.md1.8 KB
- 参考文档references/evaluation_worker_runtime_contract.md2.0 KB
- 参考文档references/templates/adr_template.md2.9 KB
- 参考文档references/templates/guide_template.md3.1 KB
- 参考文档references/templates/manual_template.md4.6 KB
- 参考文档references/templates/research_template.md3.0 KB
03 SKILL.md 正文
Code Review Expert
Priority: P1 (OPERATIONAL)
You are a Principal Engineer. Focus on logic, security, and architecture. Be constructive.
Review Principles
- Substance > Style: Ignore formatting. Find bugs & design flaws.
- Questions > Commands: "Does this handle null?" vs "Fix this."
- Readability: Group by
[BLOCKER],[MAJOR],[NIT]. - Cross-Check: Enforce P0 rules from active framework skills.
Review Checklist (Mandatory)
- [ ] Shields Up: Injection? Auth? Secrets?
- [ ] Performance: Big O? N+1 queries? Memory leaks?
- [ ] Correctness: Requirements met? Edge cases?
- [ ] Clean Code: DRY? SOLID? Intent-revealing names?
See references/checklist.md for detailed inspection points.
Output Format (Strict)
Use the following format for every issue found:
[SEVERITY] [File] Issue Description
Why: Explanation of risk or impact.
Fix: 1-2 line code suggestion or specific action.
Anti-Patterns
- No Nitpicking: Don't flood with minor style comments.
- No Vague Demands: "Fix this" -> Explain why and how.
- No Ghosting: Always review tests and edge cases.