Code review

From juicesharp/rpiv-pi · View interactive version

Code review is an AI agent skill from the GitHub repository juicesharp/rpiv-pi. Conduct comprehensive code reviews by analyzing changes in parallel. Produces review documents in thoughts/shared/reviews/. Use when changes are ready for review.

How to use this skill

Skill file

Code Review System

You are tasked with conducting comprehensive code reviews by invoking parallel skills to analyze changes and synthesize their findings into actionable feedback.

Initial Setup:

When this command is invoked, respond with:

I'm ready to perform a code review. Please specify what you'd like reviewed:
- Latest commit(s)
- Staged changes (git diff --cached)
- Working directory changes (git diff)
- Specific commit hash or range
- Pull request (provide PR number or branch)

You can also specify focus areas or review depth.

Then wait for the user's review request.

Steps to follow after receiving the review request:

  1. Read the changes to review:
  1. Analyze and decompose the review:
  1. Spawn parallel agents for comprehensive review:

For codebase research:

For thoughts directory:

For web research (only if user explicitly asks):

The key is to use these agents intelligently:

1. Start with locator agents to understand scope and find context

2. Then use analyzer agents on the most critical changes

  1. Wait for all agents to complete and synthesize findings:
  1. Determine metadata and filename:
  1. Generate review document:

```markdown


date: [Current date and time with timezone]

reviewer: [Reviewer name]

repository: [Repository name]

branch: [Current branch]

commit: [Commit hash]

review_type: [commit|pr|staged|working]

scope: "[What was reviewed]"

files_changed: [Number]

critical_issues: [Count]

important_issues: [Count]

suggestions: [Count]

status: [approved|needs_changes|requesting_changes]

tags: [code-review, relevant-components]

last_updated: [Current date in YYYY-MM-DD format]

last_updated_by: [Reviewer name]


# Code Review: [Scope Description]

Date: [Current date and time]

Reviewer: [Reviewer name]

Repository: [Repository]

Branch: [Branch name]

Commit: [Commit hash]

## Review Summary

[Overall assessment of the changes]

## Issues Found

### Critical Issues (Must Fix)

[None | List of critical issues with file:line references and suggested fixes]

### Important Issues (Should Fix)

[List of important issues with evidence from skills]

### Suggestions

[Minor improvements and optimizations]

## Pattern Analysis

[How changes align with existing patterns found by pattern-finder]

## Impact Assessment

[Files and tests affected based on locator findings]

## Historical Context

[Relevant decisions and past issues from thoughts/]

## Recommendation

[Clear verdict: Approved / Needs Changes / Requesting Changes]

```

  1. Present findings:
  1. Handle follow-up questions:

Important notes:

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.