Submitting Stacked PRs with jj-spr

Automates the creation and management of stacked GitHub pull requests via jj-spr.

78|6|Updated May 19, 2017
One-click install
npx skills add https://github.com/edmundmiller/dotfiles --skill submitting-stacked-prs-with-jj-spr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Submitting Stacked PRs with jj-spr
Source: https://github.com/edmundmiller/dotfiles/tree/main/config/claude/plugins/jj-workflow-plugin/skills/jj-spr
Command: npx skills add https://github.com/edmundmiller/dotfiles --skill submitting-stacked-prs-with-jj-spr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the complex process of submitting and managing stacked GitHub Pull Requests, enabling faster, more focused code reviews and seamless integration with Jujutsu's commit workflow.

Core Features & Use Cases

  • Automated Stacked PR Creation: Transforms your local commit stack into a series of dependent GitHub PRs with a single command, saving setup time.
  • Seamless PR Updates: Automatically updates existing PRs and re-bases dependent ones when you amend local commits, keeping your review stack consistent.
  • Use Case: Submit a large feature as a series of small, reviewable PRs. When you receive feedback, amend an earlier commit, and the Skill will automatically update the corresponding PR and rebase all subsequent dependent PRs, eliminating manual synchronization.

Quick Start

I've finished my feature and curated my commits. Submit my current Jujutsu commit stack as GitHub Pull Requests using jj-spr.

Frequently Asked Questions about Submitting Stacked PRs with jj-spr

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

FAQPage Schema
How do I submit a stack of commits as multiple GitHub pull requests?

Stacked PRs transform a local commit stack into dependent GitHub pull requests automatically. jj-spr takes your Jujutsu-curated commits and creates a series of linked PRs with a single command, eliminating manual PR setup for each commit in your stack.

Can I automatically update GitHub PRs when I amend local commits?

Yes. When you amend an earlier commit in your stack, jj-spr automatically updates the corresponding PR and rebases all dependent PRs, keeping your review stack synchronized without manual intervention or merge conflict resolution.

What's the fastest way to get code review feedback on a large feature?

Break your feature into small, reviewable commits using Jujutsu, then submit them as stacked PRs with jj-spr. Reviewers see focused changesets with clear dependencies, enabling parallel reviews and faster iteration cycles compared to single large PRs.

Do I need Jujutsu to use stacked PRs on GitHub?

jj-spr integrates with Jujutsu for local commit curation and GitHub CLI for PR operations. You need Jujutsu to organize your commit stack locally, then jj-spr and gh CLI handle the GitHub submission and management workflow.

How do stacked PRs handle commit reordering and dependencies?

jj-spr maintains dependency awareness across your stack. When you reorder commits using Jujutsu's rebase-based workflow, jj-spr updates PR dependencies and synchronizes PR descriptions with commit messages, preserving the logical structure of your changes.

What happens to dependent PRs if I split or amend an earlier commit?

jj-spr detects changes to earlier commits and automatically rebases dependent PRs on top of the updated commit. PR descriptions update to reflect amended commit messages, and the dependency chain stays intact without manual conflict resolution.