Graphite Stacked PRs
Manages stacked pull requests and dependent branches using the Graphite (gt) command-line tool.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Provides a comprehensive reference for essential gt commands for stack creation, navigation, and management.
- Includes step-by-step workflow patterns for creating new stacks, responding to feedback, and splitting large changes.
- Defines the core mental model for stacked branches, emphasizing upstack/downstack directionality.
- Outlines common mistakes and anti-patterns, such as using `git rebase` directly instead of `gt modify`.
- Explains how Graphite stores and manages branch relationship metadata in the .git directory.
Use cases
- Breaking down large features into a series of small, dependent, and easily reviewable pull requests.
- Navigating and modifying branches within a complex dependency chain without manual rebasing.
- Automating the creation, submission, and cleanup of an entire stack of pull requests.
FAQ
When should I use this skill?
Use this skill whenever your task involves the Graphite (gt) CLI. It's essential when you mention `gt` commands, need to manage a stack of branches, respond to code review feedback on a stacked PR, or need to split a large feature into smaller, reviewable changes.
What does this Graphite Stacked PRs skill do?
This skill equips Claude with expert knowledge of the Graphite (gt) command-line tool for managing stacked pull requests. It provides the mental model, command references, and best-practice workflows for creating, navigating, and submitting dependent branches efficiently.
How does this skill improve my workflow?
It streamlines development by enabling you to break large features into small, manageable PRs, leading to faster, more focused code reviews. The skill helps avoid common pitfalls, like using `git rebase` incorrectly, and automates complex tasks like restacking branches after a change.
What specific capabilities does it provide?
This skill provides a comprehensive reference for all essential `gt` commands, step-by-step patterns for common workflows (like creating new stacks or splitting commits), and a deep understanding of Graphite's core mental model, including upstack/downstack navigation.
Related skills
Git Conflict Resolution
Resolves complex Git merge conflicts by creating and executing a structured, pre-approved resolution plan.
Developer Tools4,59012 ptsGit Worktree Manager
Manages Git worktrees to enable isolated, parallel development workflows with automated setup.
Developer Tools2,82412 ptsGitHub CLI
Streamlines GitHub workflows like pull requests, issues, and releases directly from the terminal using the official `gh` command-line tool.
Developer Tools2912 pts