code-review

Compare current branch to base branch and report bugs, security concerns, and style violations with file:line references.

5|Updated Nov 13, 2020
One-click install
npx skills add https://github.com/petyosi/rc --skill code-review-petyosi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/petyosi/rc/tree/main/claude/skills/code-review
Command: npx skills add https://github.com/petyosi/rc --skill code-review-petyosi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pre-PR code review automation analyzes changes on a local branch against the base branch, surfacing issues, potential bugs, and improvement opportunities with precise file:line references.

Core Features & Use Cases

  • Automated diff analysis against the base branch to identify potential bugs, security concerns, and style violations.
  • Multi-agent review workflow that combines eligibility checks, historical context, and related code considerations to produce a thorough assessment.
  • Structured report with actionable recommendations and precise locations to guide developers before PR submission.

Quick Start

Submit your current branch for analysis to receive a structured, actionable code-review report with file:line references and improvement suggestions.

Frequently Asked Questions about code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check a git diff for bugs and security issues before opening a PR?

To check a git diff for bugs and security issues before a PR, you can analyze your current branch against the base branch. This automated code review process surfaces potential vulnerabilities and style violations with precise file:line references for actionable guidance.

Can I get a pre-PR code review with file:line references for my branch?

Yes, you can get a pre-PR code review with file:line references by submitting your local branch for analysis. The review compares your changes against the base branch and generates a structured report with precise locations for any identified bugs or security concerns.

What is the best way to analyze code changes for style violations and potential bugs?

The best way to analyze code changes for style violations and potential bugs is using a multi-agent review workflow. This approach applies eligibility checks and historical context to your branch diff, producing a thorough assessment with actionable improvement suggestions.

Does automated branch diff analysis require a specific git workflow to work?

Automated branch diff analysis requires your current branch to be compared against a base branch using git diff. You need an existing local repository with uncommitted or committed edits ready for pre-PR review to generate the necessary historical context.

Why does my pre-PR code review require eligibility checks and historical context?

Pre-PR code review requires eligibility checks and historical context to ensure a thorough multi-agent assessment. This process accurately identifies bugs, security concerns, and style violations by understanding the related code considerations before generating actionable recommendations.

When do I need to use a multi-agent workflow for code review?

You need to use a multi-agent workflow for code review when you require a thorough pre-PR assessment of branch changes. It combines eligibility checks and historical context to surface complex bugs, security concerns, and style violations that single-pass reviews might miss.