pr-slicer

Split large pull requests into smaller, independently verifiable slices.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/jrmatherly/spacebot --skill pr-slicer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-slicer
Source: https://github.com/jrmatherly/spacebot/tree/main/.claude/skills/pr-slicer
Command: npx skills add https://github.com/jrmatherly/spacebot --skill pr-slicer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers reduce review latency and rework by breaking large, high-risk pull requests into small, independent, verifiable slices that are easier to review, land, and rollback when necessary.

Core Features & Use Cases

  • Prescriptive Budgets: Targets for changed lines, files, and commits per slice to limit review scope and cognitive load.
  • Slicing Order & Strategy: Extract prerequisites first, land mechanical refactors next, apply behavior changes after prerequisites, and finish with UI/docs/polish to minimize merge conflicts.
  • Slice Packet Template: Produces per-slice Goal, Owned files, Out of scope, Risk level, Verification commands with expected outcomes, and a Rollback plan for clear handoffs.
  • Verification Discipline: Emphasizes narrow checks for touched behavior, project gate checks before handoff, and recording exact commands and outcomes as evidence.
  • Use Case: When a contributor asks to "split this PR" or "create stacked PRs," the skill outlines an ordered set of low-risk, independently verifiable changes ready for review and landing.

Quick Start

Split this PR into a sequence of small, independent slices with goals, owned files, verification commands, risk levels, and rollback plans.

Frequently Asked Questions about pr-slicer

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 slices?

Splitting a large pull request involves breaking it into small, independently verifiable slices with specific goals and owned files. This approach applies prescriptive size budgets, enforces ordering rules to avoid cross-slice dependencies, and generates rollback plans to simplify verification and reduce review latency.

What is the best way to create stacked PRs to lower review churn?

Creating stacked PRs requires sequencing changes into low-risk, independently verifiable slices. This method targets specific changed lines and file budgets per slice, extracts prerequisites first, applies behavior changes next, and generates per-slice verification commands and rollback plans for clear handoffs.

How does PR slicing handle verification and rollback for individual slices?

PR slicing handles verification by producing per-slice packets that include narrow checks for touched behavior, exact verification commands with expected outcomes, and project gate checks. It also generates specific rollback plans and risk levels to ensure safe, clear handoffs for each independent slice.

When should I shrink a pull request using a slicing strategy?

You should shrink a pull request using a slicing strategy when contributors request splitting to reduce review latency and rework. It is specifically designed for large, high-risk Git-based repository changes that need to be broken down into low-risk, independently verifiable modifications ready for review.

What ordering rules does this approach use to avoid cross-slice dependencies in Git?

To avoid cross-slice dependencies in Git, the ordering rules extract prerequisites first, land mechanical refactors next, apply behavior changes after prerequisites are met, and finish with UI, docs, or polish. This ordered strategy minimizes merge conflicts and ensures each slice remains independently verifiable.