chained-pr

Split large code changes into sequential, reviewable pull requests.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/LuisAlbertoMK/gentleman-agent-gh --skill chained-pr-luisalbertomk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chained-pr
Source: https://github.com/LuisAlbertoMK/gentleman-agent-gh/tree/main/internal/assets/skills/chained-pr
Command: npx skills add https://github.com/LuisAlbertoMK/gentleman-agent-gh --skill chained-pr-luisalbertomk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the problem of oversized, unreviewable pull requests that exceed 400 lines, which often lead to slow review cycles, missed bugs, and reviewer fatigue.

Core Features & Use Cases

  • Strategic Splitting: Automatically determines whether to use Stacked PRs or Feature Branch Chains based on project requirements.
  • Reviewer Load Control: Ensures every PR remains within a 60-minute review budget by enforcing strict line-count limits.
  • Dependency Management: Maintains clear dependency diagrams and tracking for complex multi-PR features.
  • Use Case: When implementing a large refactor that touches 1,000+ lines, use this skill to slice the work into logical, independent units that maintain CI health and clear review history.

Quick Start

Ask the agent to analyze the current branch and propose a chained PR strategy if the changes exceed the 400 line limit.

Frequently Asked Questions about chained-pr

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

FAQPage Schema
How do I split a large pull request into smaller, reviewable branches?

To split a large pull request, you decompose oversized code changes into sequential, reviewable slices using stacked PRs or feature branch chains. This maintains code quality and review velocity for diffs exceeding 400 lines.

What is the best way to manage code review fatigue for large refactoring tasks?

Managing code review fatigue requires enforcing strict line-count limits to keep every pull request within a 60-minute review budget. Slicing complex refactoring tasks into logical, independent units ensures clear review history.

When do I need to use stacked PRs for my git workflow?

You need stacked PRs when implementing complex feature development or refactoring tasks where diffs exceed 400 lines. This strategy maintains CI health and tracks dependencies for multi-PR features.

How to track dependencies across multiple sequential pull requests?

Tracking dependencies across sequential pull requests involves maintaining clear dependency diagrams and updating PR templates. This ensures atomic delivery and logical ordering for complex multi-PR features.

Can I use chained PRs for a 1000 line codebase refactor?

Yes, you can use chained PRs for a 1000 line refactor by asking the agent to analyze the branch and propose a strategy. It slices the work into independent units to maintain CI health and clear review history.

What are the limitations of enforcing a 60-minute review budget on pull requests?

Enforcing a 60-minute review budget requires strict line-count limits, meaning oversized changes must be manually decomposed. This limits atomic delivery of large features without proper branching strategies and dependency tracking.