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. Software-engineering variant capability: composes with refactorin

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

Spoke Derivation Note

This file is the hub-doctrine canonical for the co-develop generic dev spine

(spec 2026-11-01-hub-consolidation-design, Phase 1 batch D). Co-develop

pipelines run it as written. A spoke variant derives from this doctrine by

substituting the bindings below — the derivation never edits the

single-valued frontmatter doctrine: scope: co-develop and

capability: swe-code-review stay as written here, and the spoke labels

live in this note only.

No {{PROJECT_*}} placeholder is needed in this skill: its per-spoke deltas

are frontmatter labels and skill-graph edges, not body prose, so they are

documented as bindings rather than parameterized.

| Spoke | Derivation binding |

|---|---|

| co-game | Renders capability: game-code-review, scope: co-game; relates_to swaps the refactoring/composes_with edge for arcade-physics + test-driven-development (both follows); the description's closing sentence names the game-development variant capability. |

| co-learning | Not adopted — absent from Projects/co-learning and its template. The fleet skill-graph projection carries only dangling reference nodes for it (content_hash null); it is not an installed consumer. |

| co-abap | Not adopted — co-abap derives the domain-specific abap-code-review instead, which is outside this generic spine. |


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.