AGENT SKILL
code-review
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-31
- Stars
- ★ 0
- Forks
- 0
02 资源文件 1
- 脚本scripts/diff_summary.sh414 B
03 SKILL.md 正文
Code Review
How to review code changes and provide structured feedback.
Approach
-
Get the diff — use
run_commandwithgit difforgit log --oneline -5to understand what changed. -
Read the full files — don't just look at the diff. Use
read_fileto see the context around changes. -
Check for common issues:
- Security: hardcoded secrets, shell=True, SQL injection, unsanitised input
- Bugs: off-by-one, null handling, error swallowing
- Quality: naming, complexity, duplication, missing tests
-
Use the diff summary script if available:
run_command("bash skills/code-review/scripts/diff_summary.sh")
Output format
## Summary
One sentence on what the changes do.
## Issues
- **[critical]** description (file:line)
- **[warning]** description (file:line)
- **[nit]** description
## Suggestions
- Concrete improvement with reasoning