code-review

Compare the current branch against main and report breaking changes, code quality issues, test gaps, and framework-specific patterns.

2|Updated Nov 16, 2024
One-click install
npx skills add https://github.com/onairmarc/dotfiles --skill code-review-onairmarc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/onairmarc/dotfiles/tree/main/.agents/skills/code-review
Command: npx skills add https://github.com/onairmarc/dotfiles --skill code-review-onairmarc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers quickly perform a thorough review of changes between the current branch and main, surfacing breaking changes, code quality issues, and framework-specific concerns.

Core Features & Use Cases

  • Compare current branch to main and report breaking changes, code quality issues, missing tests, and framework-specific patterns.
  • Output AI agent prompts by default; with the --full flag, produce a detailed, per-file report with diffs and two severity tiers.
  • Filter scope by language with --lang <ext> to target specific file types.

Quick Start

Run a code review comparing the current branch to main and generate AI agent prompts by default; use --full for a complete actionable report.

Frequently Asked Questions about code-review

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

FAQPage Schema
How do I automate a branch-to-main code review to find breaking changes?

Automate a branch-to-main code review by comparing diffs to surface breaking changes, code quality issues, and missing tests. The tool generates AI agent prompts by default to guide fixes.

Does this code review tool work with language-agnostic codebases?

Yes, the code review tool applies to language-agnostic codebases. You can filter scope by file extension using the --lang flag to target specific languages and frameworks.

How do I generate a full per-file diff report for my git branch?

Generate a full per-file diff report by running the code review with the --full flag. This produces a detailed report with diffs and two severity tiers for actionable feedback.

Do I need git access to run an automated code review of my branch?

Yes, you need git access to run the automated code review. The tool requires git and specified allowed-tools to gather diffs, tests, and static analysis results for comparison.

What is the best way to identify missing tests when comparing a branch to main?

The best way to identify missing tests is using a branch-to-main code review tool that automatically surfaces test gaps alongside code quality issues and framework-specific patterns.

Can I get AI agent prompts for fixing code quality issues on my branch?

Yes, you can get AI agent prompts for fixing code quality issues. The code review tool outputs these prompts by default when comparing your current branch against main.