AGENT SKILL

code-review

暂无简介

适用职业开发工程师
使用场景代码审查
License 许可
MIT
最近更新
2026-08-31
Stars
★ 0
Forks
0

02 资源文件 1

03 SKILL.md 正文

Code Review

How to review code changes and provide structured feedback.

Approach

  1. Get the diff — use run_command with git diff or git log --oneline -5 to understand what changed.

  2. Read the full files — don't just look at the diff. Use read_file to see the context around changes.

  3. 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
  4. 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

04 同仓库更多 Skills