code-review-change-size

Examine PR diffs to enforce 800-line limits and suggest staged landings.

4|1|Updated Oct 5, 2024
One-click install
npx skills add https://github.com/xrehpicx/anya --skill code-review-change-size-xrehpicx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review-change-size
Source: https://github.com/xrehpicx/anya/tree/main/.codex/skills/code-review-change-size
Command: npx skills add https://github.com/xrehpicx/anya --skill code-review-change-size-xrehpicx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This policy guides code reviewers to keep changes manageable by capping non-mechanical changes at 800 lines and providing a staged landing approach for larger diffs.

Core Features & Use Cases

  • Enforces an 800-line limit for non-mechanical changes.
  • Recommends splitting large changes into smaller, reviewable stages.
  • Base staging recommendations on the actual diff, dependencies, and affected call sites.

Quick Start

Apply this guideline to your current pull request by checking the diff size and planning the smallest viable stage to land first.

Frequently Asked Questions about code-review-change-size

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

FAQPage Schema
What is a safe line limit for a pull request diff to ensure effective code review?

To manage large pull request diffs, you should split them into smaller, reviewable stages. Base your staging suggestions on the actual diff content, dependencies, and affected call sites to ensure safe landings.

How do I split a large pull request into staged landings based on dependencies?

To manage large pull request diffs, you should split them into smaller, reviewable stages. Base your staging suggestions on the actual diff content, dependencies, and affected call sites to ensure safe landings.

Why should complex logic changes be kept under 500 lines in a pull request?

Complex logic changes should be kept under 500 lines to mitigate risk and maintain quality during code review. This stricter limit ensures reviewers can thoroughly analyze intricate mechanical changes without missing defects.

When do I need to analyze affected call sites for staging a code review?

You need to analyze affected call sites when planning staged landings for large pull requests. Mapping these dependencies ensures that each smaller stage lands safely without breaking the broader codebase during the review process.

Does this code review change size policy apply to mechanical changes in a pull request?

The 800-line limit specifically targets non-mechanical changes in a pull request diff. Mechanical changes are exempt from this cap, allowing reviewers to focus their risk-management efforts on substantive logic modifications.

What is the best way to plan the smallest viable stage to land a pull request first?

The best way to plan the smallest viable stage is by examining the actual diff and its dependencies. Identify the first stage that can land safely based on affected call sites, ensuring changes stay within the 800-line limit.