Teaches Claude to manage stacked PRs using Graphite's CLI, covering the full workflow from creating branches to submitting and updating pull requests. The skill emphasizes creating small, atomic PRs (arguing for more rather than fewer) and includes solid guidance on naming conventions, navigating stacks, and handling common issues like untracked branches in worktrees. Notable for its practical troubleshooting section and the smart workaround for PR descriptions using temporary files instead of heredocs to avoid shell escaping issues with markdown. The advanced rebasing section is genuinely useful if you're dealing with complex nested stacks where gt restack becomes too aggressive.

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

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/withgraphite/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026
1github avatarpdftk-servergithub/awesome-copilotSkill for using the command-line tool pdftk (PDFtk Server) for working with PDF files. Use when asked to merge PDFs, split PDFs, rotate pages, encrypt or decryp10Kskills.sh installs
2shopify avatarshopify-customershopify/shopify-ai-toolkitThe Customer Account API allows customers to access their own data including orders, payment methods, and addresses.10Kskills.sh installs
3deckardger avatartanstack-start-best-practicesdeckardger/tanstack-agent-skillsTanStack Start best practices for full-stack React applications. Server functions, middleware, SSR, authentication, and deployment patterns. Activate when build9.9Kskills.sh installs
4github avatarmarkdown-to-htmlgithub/awesome-copilotConvert Markdown files to HTML similar to `marked.js`, `pandoc`, `gomarkdown/markdown`, or similar tools; or writing custom script to convert markdown to html a9.9Kskills.sh installs
5github avatarmeeting-minutesgithub/awesome-copilotGenerate concise, actionable meeting minutes for internal meetings. Includes metadata, attendees, agenda, decisions, action items (owner + due date), and follow9.9Kskills.sh installs
6github avatargit-flow-branch-creatorgithub/awesome-copilotIntelligent Git Flow branch creator that analyzes git status/diff and creates appropriate branches following the nvie Git Flow branching model.9.9Kskills.sh installs