rb-review-pr-or-diff

Analyze pull requests and code diffs for defects and testing gaps.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/richardmbailey/rb-skills --skill rb-review-pr-or-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rb-review-pr-or-diff
Source: https://github.com/richardmbailey/rb-skills/tree/main/rb-review-pr-or-diff
Command: npx skills add https://github.com/richardmbailey/rb-skills --skill rb-review-pr-or-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill addresses the challenge of performing high-quality, consistent code reviews that go beyond surface-level style to identify deep architectural risks, regression boundaries, and testing gaps.

Core Features & Use Cases

  • Risk-Based Analysis: Evaluates changes for P0-P3 severity defects, including security, performance, and data integrity risks.
  • Testing Strategy Validation: Ensures that test levels (unit, integration, contract) align with the likely failure boundaries of the change.
  • Use Case: Use this skill when reviewing a complex pull request to ensure that new logic is covered by appropriate integration tests and that semantic text handling is not being incorrectly managed by brittle regex patterns.

Quick Start

Invoke the review process by asking the agent to review the current diff or pull request for defects and testing gaps.

Frequently Asked Questions about rb-review-pr-or-diff

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

FAQPage Schema
How do I review a pull request for architectural risks and regressions?

To review a pull request for architectural risks, analyze the code diff to identify actionable defects, regressions, and maintainability risks. This process systematically evaluates failure boundaries, integration points, and adherence to project-specific testing conventions.

What is risk-based code review and how does it evaluate severity?

Risk-based code review evaluates changes for P0-P3 severity defects, including security, performance, and data integrity risks. It ensures test levels align with the likely failure boundaries of the change rather than just checking surface-level style.

How do I validate testing strategy and coverage in a code diff?

Validating testing strategy in a code diff ensures test levels like unit, integration, and contract tests align with the likely failure boundaries of the change. This verifies that new logic is appropriately covered and semantic text handling avoids brittle regex patterns.

Can I use automated code review to find integration test gaps?

Yes, automated code review can find integration test gaps by systematically evaluating failure boundaries and integration points within the diff. It ensures new logic is covered by appropriate tests and verifies adherence to project-specific testing conventions.

Does this code review approach work with complex architectural changes?

Yes, this code review approach works with complex architectural changes by applying rigorous verification of semantic correctness and data integrity risks. It systematically evaluates integration points and failure boundaries to identify deep maintainability risks.

What are the limitations of automated pull request analysis?

Automated pull request analysis limitations include relying on the user to provide the correct diff context and project-specific testing conventions. It focuses on semantic correctness and regression boundaries but requires systematic evaluation of integration points to avoid missing edge cases.