Code review

From 5throck/ai-workspace-standards · View interactive version

Code review is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Conducts thorough code reviews focusing on correctness, maintainability, security, and best practices. Use when: reviewing pull requests, evaluating code quality, providing constructive feedback, or ensuring code standards compliance. Game-development variant capability: follows arcade-physics work

How to use this skill

Skill file

Context

This skill provides systematic code review capabilities, ensuring code changes are correct, maintainable, secure, and follow best practices. It balances thoroughness with efficiency, providing actionable feedback while maintaining team velocity.

When to Use

Pull Request Reviews:

Code Quality Assessment:

Security Reviews:

Best Practices Compliance:


Execution Steps

Step 1: Review Preparation

Purpose: Understand context and scope of the code review.

Preparation Steps:

  1. Understand the Purpose:
  1. Review Context:
  1. Review Scope:

Preparation Checklist:


Step 2: Code Quality Assessment

Purpose: Evaluate code for correctness and maintainability.

Quality Criteria:

  1. Correctness:
  1. Readability:
  1. Maintainability:
  1. Performance:

Review Focus Areas:


Step 3: Security Review

Purpose: Identify security vulnerabilities and potential exploits.

Security Checklist:

  1. Input Validation:
  1. Authentication & Authorization:
  1. Data Protection:
  1. Dependencies:

Common Security Issues:


Step 4: Testing Assessment

Purpose: Evaluate test coverage and quality.

Testing Review:

  1. Test Coverage:
  1. Test Quality:
  1. Test Gaps:

Testing Recommendations:


Step 5: Standards Compliance

Purpose: Ensure code follows project conventions and best practices.

Standards Checklist:

  1. Code Style:
  1. Architecture Patterns:
  1. Documentation:
  1. Best Practices:

Step 6: Feedback Delivery

Purpose: Provide constructive, actionable feedback.

Feedback Principles:

  1. Be Specific:
  1. Be Constructive:
  1. Prioritize Issues:
  1. Balance Feedback:

Feedback Structure:

## Summary
[Brief overview of the review]

## Strengths
- [What's done well]
- [Good patterns or practices]

## Issues to Address

### Must Fix
1. [Critical issue with explanation and suggestion]

### Should Fix
1. [Important improvement with explanation]

### Nice to Have
1. [Minor optimization with explanation]

## Approval Status
[Approved / Approved with changes / Request changes]

Output Format

For Pull Request Reviews:

For Code Quality Assessment:


Best Practices

Review Quality:

✅ Do:

❌ Don't:

Communication Quality:

✅ Do:

❌ Don't:


Common Mistakes to Avoid

Review Anti-Patterns:

  1. Style Police: Focusing only on formatting rather than substance
  2. Approval Yea-Saying: Not providing critical feedback when needed
  3. Context Ignoring: Reviewing code without understanding requirements
  4. Solution Forcing: Suggesting preferred approach without considering trade-offs
  5. Delay Tactics: Holding up reviews for minor issues

Feedback Anti-Patterns:

  1. Vague Criticism: "This is bad" without explanation
  2. Negativity Bias: Only commenting on problems, not strengths
  3. Overwhelming: Too many comments that drown out important issues
  4. Inconsistency: Different standards for different people
  5. Timing: Waiting until last minute to review

Related Skills


Code Review Tools

Automated Tools:

Review Platforms:

Productivity Tips:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.