New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Stacked-PR workflow skill for Graphite (gt) covering creation, navigation, restacking, and submission.

skills.sh installs
10K
GitHub stars
7
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers creating, navigating, modifying, re-parenting, and submitting PR stacks through the gt CLI and related git commands
  • Includes a quick-reference command table, branch naming conventions, and a troubleshooting table for common restack and untracked-branch errors
  • Enforces a rule that the first PR in a stack must be parented on main before running gt submit --no-interactive
  • Designed for developers working in worktrees or deep stacks who need targeted git rebase instead of all-or-nothing gt restack

Install

$ npx -y skills add withgraphite/agent-skills --skill graphite -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Graphite Skill

Work with Graphite (gt) for creating, navigating, and managing stacked pull requests.

Quick Reference

I want to...Command
Create a new branch/PRgt create branch-name -m "message"
Amend current branchgt modify -m "message"
Navigate up the stackgt up
Navigate down the stackgt down
Jump to top of stackgt top
Jump to bottom of stackgt bottom
View stack structuregt ls
Submit stack for reviewgt submit --no-interactive
Rebase stack on trunkgt restack
Change branch parentgt track --parent <branch>
Rename current branchgt rename <new-name>
Move branch in stackgt move

What Makes a Good PR?

In roughly descending order of importance:

  • Atomic/hermetic - independent of other changes; will pass CI and be safe to deploy on its own
  • Narrow semantic scope - changes only to module X, or the same change across modules X, Y, Z
  • Small diff - (heuristic) small total diff line count

Do NOT worry about creating TOO MANY pull requests. It is always preferable to create more pull requests than fewer.

Details

Repository
github.com/withgraphite/agent-skills
Category
Git & Releases
First seen
Jun 3, 2026

Similar to Graphite

More Git & Releases