split-pr

Analyze current diffs and outline a multi-PR split plan.

2.0k|272|Updated Mar 12, 2025
One-click install
npx skills add https://github.com/stacklok/toolhive --skill split-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: split-pr
Source: https://github.com/stacklok/toolhive/tree/main/.claude/skills/split-pr
Command: npx skills add https://github.com/stacklok/toolhive --skill split-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Large changesets are difficult to review and integrate; splitting them into smaller, logical PRs improves clarity and reduces risk.

Core Features & Use Cases

  • Analyzes the current diff to identify natural grouping boundaries across files and components.
  • Proposes a multi-PR plan with suggested PR names, involved files, size estimates, dependencies, and testing considerations.
  • Recommends an execution order that preserves integration stability and enables independent validation.

Quick Start

Provide a step-by-step PR split plan for the current changes in the repository.

Frequently Asked Questions about split-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 logical PRs?

Splitting a large pull request involves partitioning the current diff into logical PRs that minimize risk and maximize review efficiency. The skill analyzes your changes to identify natural grouping boundaries across files and components.

What is the best way to plan a PR split for a big refactoring changeset?

Planning a PR split for a big refactoring changeset requires identifying natural grouping boundaries across files. The skill proposes a multi-PR plan with suggested names, involved files, size estimates, dependencies, and testing considerations.

How do I determine the correct order for merging multiple split pull requests?

Determining the correct order for merging split pull requests requires preserving integration stability and enabling independent validation. The skill recommends an execution order where each PR forms an independent vertical slice that builds and tests cleanly.

Does the PR split plan include a testing strategy for each independent slice?

Yes, the PR split plan includes a testing strategy for each independent slice. The skill ensures each proposed PR forms an independent vertical slice that builds and tests cleanly, minimizing integration risk.

Can I use this to manage code review efficiency for large git changes?

Yes, you can use this to manage code review efficiency for large git changes. The skill identifies how to best partition current changes into logical PRs that maximize review efficiency and reduce integration risk.

What do I need to generate a step-by-step PR split plan?

To generate a step-by-step PR split plan, you need current changes in the repository. The skill analyzes the current diff to provide a plan with suggested PRs, included files, estimated size, dependencies, and recommended order.