Agent skill

code-review

Review code for quality, maintainability, and correctness

Stars 24,481
Forks 1,917

Install this agent skill to your Project

npx add-skill https://github.com/PrefectHQ/fastmcp/tree/main/examples/skills/sample_skills/code-review

SKILL.md

Code Review Skill

This skill guides you through conducting thorough code reviews.

Review Checklist

When reviewing code, consider:

Correctness

  • Does the code do what it's supposed to do?
  • Are edge cases handled?
  • Are there any obvious bugs?

Maintainability

  • Is the code easy to understand?
  • Are variable and function names descriptive?
  • Is there appropriate documentation?

Performance

  • Are there any obvious performance issues?
  • Are expensive operations cached when appropriate?
  • Are database queries efficient?

Security

  • Is user input validated?
  • Are there any injection vulnerabilities?
  • Are secrets properly managed?

Giving Feedback

  • Be specific and actionable
  • Explain why something should change
  • Suggest alternatives, don't just criticize
  • Acknowledge good work too

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results