graphite

Automate Git branch and PR management using Graphite CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/matiacone/dotfiles --skill graphite-matiacone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphite
Source: https://github.com/matiacone/dotfiles/tree/main/agents/.agents/skills/graphite
Command: npx skills add https://github.com/matiacone/dotfiles --skill graphite-matiacone

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Graphite CLI replaces verbose, error-prone git commands by providing a higher-level workflow for managing branches and PRs, improving consistency and speed in day-to-day code collaboration.

Core Features & Use Cases

  • Branch management: create, amend, and stack branches with changes using Graphite's gt commands.
  • PR submission: push branches and create or update PRs on GitHub with optional drafting and restacking.
  • Workflow orchestration: manage a stack of branches and restack as needed to keep history coherent across multiple commits.

Quick Start

Initialize Graphite in your repository and start by creating a new branch with staged changes.

Frequently Asked Questions about graphite

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

FAQPage Schema
How do I automate git branch and pull request management?

You can automate git branch and pull request management using Graphite CLI to replace raw git commands, streamlining commits, amendments, and PR submission across repositories.

What is branch stacking and how does it keep git history coherent?

Branch stacking manages a sequence of dependent branches, allowing you to restack them automatically to keep commit history coherent across multiple changes.

Do I need to install the Graphite CLI to manage stacked branches?

Yes, you must install and configure the Graphite CLI in your repository to orchestrate branch stacking, restacking, and GitHub PR integration.

How do I create and submit a GitHub pull request from a stacked branch?

You create a branch with staged changes and submit a GitHub pull request by pushing the branch, with options for drafting and restacking to maintain workflow coherence.

Can I use Graphite to amend commits across multiple stacked branches?

Yes, Graphite supports amending changes within a stack of branches, automatically restacking dependent branches to ensure history remains coherent across updates.