Loading...
Loading...
This skill should be used when the user asks to "create a stack", "submit stacked PRs", "gt submit", "gt create", "reorganize branches", "fix stack corruption", or mentions Graphite, stacked PRs, gt commands, or trunk-based development workflows.
npx skill4agent add outfitter-dev/agents graphite-stacksgtgtgitgtgit add-a| Task | This | Not That |
|---|---|---|
| Create branch | | |
| Commit changes | | |
| Push to remote | | |
| Rebase stack | | |
| View stack | | |
| Switch branches | | |
| Amend commit | | |
| Multi-PR feedback | | Cherry-pick commits manually |
Create stack → Implement features → Submit PRs → Address feedback → Merge
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
gt create gt modify -acm gt submit gt absorb gt sync# New branch with staged changes
gt create 'feature/step-1' -am "feat: first step"
# Continue stacking
gt create 'feature/step-2' -am "feat: second step"
gt create 'feature/step-3' -am "feat: third step"
# Insert branch between current and child
gt create 'feature/step-1.5' --insert -am "feat: inserted step"| Command | Action |
|---|---|
| Move up the stack (toward children) |
| Move down the stack (toward parent) |
| Jump to stack top |
| Jump to stack bottom |
| Interactive branch picker |
# Amend current branch (stages all)
gt modify -a
# New commit within same branch
gt modify -acm "fix: address review feedback"
# Commit to a different branch in the stack
git add path/to/file.ts
gt modify --into target-branch -m "feat: add file"gt creategt modifygt submitgt restackgt statusgit commit/push/rebasegtgit rebase -igt checkout target-branch
gt modify -acm "fix: address review comment"
gt submitgt top
git add .
gt absorb -a
gt submit --stack# Move branch to different parent
gt move --onto new-parent
# Move specific branch
gt move --source branch-name --onto target
# After reorganization
gt restack# Current branch + downstack
gt submit
# Entire stack
gt submit --stack
# Non-interactive (automation)
gt submit --no-interactive# JSON with parent relationships (preferred for scripts)
gt status
# Visual tree
gt ls
# Recent history
gt log# Pull trunk, rebase stacks, clean merged
gt sync
# Rebase branches onto updated parents
gt restack
# Undo last gt operation
gt undogt status