stacked-pr-workflow

Inspect and manage stacked PR chains in local git workflows.

1|Updated Apr 15, 2024
One-click install
npx skills add https://github.com/yiminllin/dotfiles --skill stacked-pr-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacked-pr-workflow
Source: https://github.com/yiminllin/dotfiles/tree/main/opencode/.config/opencode/skills/stacked-pr-workflow
Command: npx skills add https://github.com/yiminllin/dotfiles --skill stacked-pr-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stacked PR workflows can become tangled as multiple related branches are drafted, reviewed, and submitted in a sequence, creating boundary leakage and confusing history.

Core Features & Use Cases

  • Inspect and track a stack of PR branches
  • Reparent, restack, or squash branches to maintain clean boundaries
  • Submit or update PRs for a stack in a controlled, guardrailed manner

Quick Start

Inspect your current stacked PRs and choose a safe mutation to apply.

Frequently Asked Questions about stacked-pr-workflow

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

FAQPage Schema
How do I manage stacked PR workflows without tangling branch history?

Manage stacked PR workflows by inspecting current branch states and boundaries, then applying operations like restack, reparent, or squash to maintain clean, ordered, and ready PR chains.

What is the best way to restack interdependent git branches?

The best way to restack interdependent git branches is using git-spice commands to validate PR boundaries and apply controlled mutations, ensuring clean boundaries and preventing confusing history.

Can I squash branches in a stacked PR chain before submission?

Yes, you can squash branches in a stacked PR chain before submission. The workflow validates PR boundaries and applies guardrails to ensure mutations are controlled and safe.

Does this stacked PR workflow support reparenting branches locally?

Yes, the stacked PR workflow supports local git workflows involving multiple interdependent PRs, allowing you to inspect, track, reparent, and submit branches in a guardrailed manner.

Why do I need to validate PR boundaries in a stacked git workflow?

Validating PR boundaries in a stacked git workflow prevents boundary leakage and confusing history when multiple related branches are drafted, reviewed, and submitted in a sequence.

When should I avoid using automated mutations on stacked PRs?

You should avoid automated mutations on stacked PRs when destructive actions require confirmation, as the workflow enforces guardrails to prevent unintended branch history changes.