graphite

Coordinate stacked pull requests for dependent branches using Graphite.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dagster-io/erk --skill graphite
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphite
Source: https://github.com/dagster-io/erk/tree/main/packages/dot-agent-kit/src/dot_agent_kit/data/kits/gt/skills/gt-graphite
Command: npx skills add https://github.com/dagster-io/erk --skill graphite

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires graphite-cli, and includes references (resource) components.

What problem does it solves? This skill simplifies managing complex stacked pull requests using Graphite (gt), automating rebasing, branch management, and PR submission. It frees you from Git gymnastics, allowing you to focus on coding and accelerate your development cycle.

Core Features & Use Cases:

  • Stack Management: Guides on creating, modifying, and submitting linear chains of dependent branches for easier review.
  • Auto-Restacking: Explains how gt modify automatically rebases upstack branches, keeping your stack in sync effortlessly.
  • PR Workflows: Provides patterns for creating new stacks, responding to review feedback, and syncing after merges, reducing manual overhead.
  • Use Case: When developing a large feature that requires multiple dependent PRs, use this skill to create and manage your stack, automatically keeping branches in sync and updating PRs on GitHub with minimal manual intervention, saving hours of tedious work.

Quick Start: I need to create a new feature in three dependent PRs. Use the graphite skill to guide me through creating a new stack, from the trunk branch to submitting all three PRs.

Frequently Asked Questions about graphite

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

FAQPage Schema
How do I manage stacked pull requests on GitHub?

Stacked pull requests are linear chains of dependent branches where each PR builds on the previous one. Graphite automates creating, rebasing, and submitting these interdependent PRs, keeping them in sync as you iterate—eliminating manual branch management across trunk-based development.

How do I automatically rebase dependent branches when one PR changes?

Graphite's auto-restacking feature automatically rebases upstack branches whenever you modify a PR, keeping your entire stack synchronized without manual git operations. The `gt modify` command triggers this, ensuring parent-child relationships stay consistent.

Can I use Graphite to coordinate multiple dependent PRs for a large feature?

Yes. Graphite lets you create a stack of dependent PRs for complex features, automatically managing rebasing, branch relationships, and PR metadata in .git. You navigate and submit the entire chain using `gt` commands with minimal manual overhead.

What's the difference between stacked PRs and traditional branching for large features?

Traditional branching requires manual rebasing and sequential review of a single large PR. Stacked PRs break work into smaller, reviewable chunks with automatic dependency tracking and parallel review, accelerating feedback loops and reducing merge conflicts.

Do I need Git expertise to use Graphite for PR workflows?

No. Graphite abstracts Git complexity—you use `gt` commands to create stacks, respond to review feedback, and sync after merges. It handles rebasing, branch tracking, and PR submission automatically, freeing you from manual Git gymnastics.

How do I sync my stack after a PR merges to the main branch?

Graphite automatically restacks remaining branches after a merge, rebasing dependent PRs onto the updated trunk. Use `gt` commands to navigate and update your stack, maintaining synchronization across all interdependent PRs.