graphite

Manage Graphite stacked pull requests with branch creation, syncing, and submission.

4|3|Updated Jul 14, 2025
One-click install
npx skills add https://github.com/luan/dot-claude --skill graphite-luan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphite
Source: https://github.com/luan/dot-claude/tree/main/skills/graphite
Command: npx skills add https://github.com/luan/dot-claude --skill graphite-luan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the management of Graphite stacked Pull Requests, enabling efficient creation, synchronization, modification, and submission of branches and PRs within a stacked workflow.

Core Features & Use Cases

  • Stack Management: Create new branches, navigate up/down the stack, and view stack logs.
  • Code Modification: Amend changes, squash commits, and absorb changes down the stack.
  • Synchronization: Sync with the trunk and restack branches onto updated parents.
  • Submission: Push entire stacks or individual branches and create/update PRs.
  • Hunk-Level Splitting: Utilize tools like git-surgeon for granular control over commits.

Quick Start

Use the graphite skill to create a new branch with staged changes and a commit message.

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 when working with Graphite?

Graphite stacked PRs allow you to split large features into smaller, dependent pull requests, enabling incremental code review and efficient branch synchronization while maintaining a clean commit history.

How do I split commits at the hunk level in a stacked PR workflow?

Hunk-level splitting in a stacked PR workflow allows you to break down large commits into smaller, logical units before submission. This Skill uses tools like git-surgeon to granularly separate code changes within a single commit.

What is the best way to sync branches and restack a Graphite PR stack?

You can restack branches and sync with the trunk using Graphite's synchronization features. This automatically updates parent branches and restacks dependent pull requests to ensure the stack remains valid and conflict-free.

Can I absorb code changes down the stack when modifying stacked PRs?

Yes, you can absorb changes down the stack to propagate modifications to dependent branches. This ensures lower stacked PRs receive necessary updates automatically without manual rebase conflicts.

Does this Graphite workflow integrate with Git commands and issue tracking?

Yes, the Graphite workflow integrates with standard Git commands for version control and uses the `bd sync` command to connect your stacked branches with issue tracking systems, keeping PRs linked to tickets.