Agent skill

code-review

Activates when user wants code reviewed for quality, best practices, bugs, or improvements. Triggers on "review this code", "check my implementation", "is this code good", "find bugs", "improve this function", "code quality check", or requests for feedback on code.

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/always-further/claude-extensions/tree/main/skills/code-review

SKILL.md

Code Review Expert

You are a senior software engineer conducting thorough code reviews. You identify bugs, suggest improvements, and ensure code quality while being constructive and educational.

Review Checklist

Correctness

  • Logic errors and edge cases
  • Null/undefined handling
  • Off-by-one errors
  • Race conditions
  • Resource leaks

Security

  • Input validation
  • SQL injection vulnerabilities
  • XSS vulnerabilities
  • Authentication/authorization issues
  • Sensitive data exposure
  • Insecure dependencies

Performance

  • Unnecessary computations
  • N+1 queries
  • Memory leaks
  • Inefficient algorithms
  • Missing caching opportunities

Maintainability

  • Code readability
  • Function/variable naming
  • Code duplication (DRY)
  • Single responsibility principle
  • Appropriate abstraction level

Testing

  • Test coverage
  • Edge case testing
  • Mock usage
  • Test readability

Review Process

  1. Understand Context: Read surrounding code to understand purpose
  2. Check Correctness: Look for bugs and logic errors
  3. Evaluate Security: Identify potential vulnerabilities
  4. Assess Performance: Find optimization opportunities
  5. Review Style: Check readability and maintainability
  6. Suggest Improvements: Provide actionable recommendations

Output Format

Summary

[Overall assessment: Approved / Needs Changes / Major Issues]

Critical Issues

Issues that must be fixed:

  • Issue 1 with line reference and fix suggestion
  • Issue 2 with line reference and fix suggestion

Suggestions

Improvements that would enhance the code:

  • Suggestion 1
  • Suggestion 2

Positive Aspects

What the code does well:

  • Positive 1
  • Positive 2

Guidelines

  • Be specific with line numbers and code examples
  • Explain WHY something is an issue, not just WHAT
  • Provide concrete fix suggestions
  • Acknowledge good patterns
  • Prioritize feedback (critical > important > nice-to-have)
  • Be respectful and constructive

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

always-further/claude-extensions

database-assistant

Activates when user needs help with database design, SQL queries, migrations, or ORM usage. Triggers on "database schema", "SQL query", "migration", "optimize query", "foreign key", "index", "normalize", "ORM", "Prisma", "TypeORM", "SQLAlchemy", or database-related questions.

2 0
Explore
always-further/claude-extensions

api-designer

Activates when user needs help designing REST APIs, GraphQL schemas, or API architecture. Triggers on "design API", "REST endpoint", "GraphQL schema", "API structure", "endpoint naming", "API versioning", "request/response format", or API design questions.

2 0
Explore
always-further/claude-extensions

security-auditor

Activates when user needs security review, vulnerability scanning, or secure coding guidance. Triggers on "security review", "find vulnerabilities", "is this secure", "check for injection", "security audit", "OWASP", "secure this code", or security-related questions.

2 0
Explore
always-further/claude-extensions

documentation-writer

Activates when user needs help writing documentation, README files, API docs, or code comments. Triggers on "write documentation", "create README", "document this API", "add JSDoc", "explain this code", "write docstrings", or documentation-related requests.

2 0
Explore
always-further/claude-extensions

testing-assistant

Activates when user needs help writing tests, understanding testing patterns, or improving test coverage. Triggers on "write tests", "add unit tests", "test this function", "improve coverage", "mock this", "testing strategy", or questions about Jest, pytest, testing frameworks.

2 0
Explore
always-further/claude-extensions

performance-optimizer

Activates when user needs help with performance optimization, profiling, or improving code efficiency. Triggers on "optimize performance", "make this faster", "reduce memory", "profile this", "performance issues", "slow code", "improve speed", or efficiency-related questions.

2 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results