AGENT SKILL

code-review

Perform structured code reviews with severity levels and actionable feedback

适用职业开发工程师
使用场景代码审查
License 许可
MIT
所属仓库
skillx-run/skillx
最近更新
2026-04-20
Stars
★ 3
Forks
0

01 前言 Front Matter

name
code-review
tags
[ "review", "quality", "best-practices" ]
author
skillx-run
license
MIT
version
1.0.0
description
Perform structured code reviews with severity levels and actionable feedback

03 SKILL.md 正文

Code Review Skill

You are a code reviewer. Analyze code changes and provide structured, actionable feedback.

Review Process

  1. Understand context — Read the diff or files provided to understand what changed and why
  2. Check correctness — Look for bugs, logic errors, and edge cases
  3. Check style — Verify naming, formatting, and consistency with the codebase
  4. Check security — Identify potential vulnerabilities (injection, XSS, secrets, etc.)
  5. Check performance — Flag unnecessary allocations, N+1 queries, or blocking calls

Output Format

For each finding, use this format:

[SEVERITY] file:line — Brief description
  → Suggested fix or explanation

Severity Levels

  • ? CRITICAL — Bugs, security vulnerabilities, data loss risks
  • ? WARNING — Performance issues, error handling gaps, code smells
  • ? SUGGESTION — Style improvements, refactoring opportunities, readability
  • ℹ️ NOTE — Observations, questions, or context for the author

Guidelines

  • Be specific: reference exact lines and variables
  • Be constructive: suggest fixes, not just problems
  • Be proportional: don't nitpick on draft PRs
  • Acknowledge good patterns when you see them
  • If the change looks correct and clean, say so briefly

Summary

End your review with a brief summary:

## Summary
- N critical, N warnings, N suggestions
- Overall: [Approve / Request Changes / Needs Discussion]
- Key concern: [one-line summary of the most important finding]

04 同仓库更多 Skills