From python
Manages stacked commits using Graphite CLI: create branches, view/amend stacks, restack onto main, sync remote changes, submit as PRs. Use for breaking work into small reviewable commits.
npx claudepluginhub martinffx/atelier --plugin pythonThis skill uses the workspace's default tool permissions.
Manage stacked commits using [Graphite](https://graphite.dev) - a CLI for creating and managing stacked PRs.
Guides Graphite CLI (gt) for creating/managing branch stacks, submitting stacked PRs, restacking, addressing feedback, and fixing corruption in trunk-based dev.
Updates Graphite PR stacks by addressing review comments, resolving feedback, and syncing PRs using gt CLI commands. Useful for Graphite stacks needing review fixes or sync after changes.
Manages stacked branches and pull requests using gh-stack GitHub CLI extension for creating, pushing, rebasing, syncing, navigating, and viewing dependent PR stacks in incremental code review workflows.
Share bugs, ideas, or general feedback.
Manage stacked commits using Graphite - a CLI for creating and managing stacked PRs.
Ensure Graphite is installed:
brew install graphite-dev || npm install -g @graphite-dev/cli
gt stack
Shows all branches in the stack with their status (synced, to-push, in-progress).
gt branch create "feat(auth): add JWT authentication"
This:
-m for inline)Works best when you:
git add file1 file2gt branch create "feat: add feature"gt branch restack
Rebases all branches in the stack onto the latest main. Use before submitting or when main has advanced.
gt branch sync
Pull latest changes from remote and restack.
gt branch submit
Creates PRs for each branch in the stack. Opens browser to create the first PR; subsequent PRs link to it.
If you need to add more changes to a specific commit:
# Make your changes, stage them
git add .
# Amend to current branch
gt branch continue
# Go to parent branch
gt branch checkout @parent
# Go to child branch
gt branch checkout @child
# Start new feature work
git checkout main
gt branch create "feat(api): add user endpoint"
# Add user endpoint code
git add src/users/
gt branch continue # Amend to current commit
# Create next commit in stack
gt branch create "feat(api): add user validation"
# Add validation code
git add src/validation/
gt branch continue
# View stack
gt stack
# Restack before submit
gt branch restack
# Submit all as stacked PRs
gt branch submit
gt branch restack before submitting to ensure clean historygt branch sync often when working with others| Issue | Solution |
|---|---|
| Conflicts during restack | Resolve in editor, then gt branch continue |
| Stack broken | gt branch repair to fix detached HEAD |
| Too many branches | gt branch delete <name> to remove (won't delete remote) |
Follow conventional commits within the Graphite workflow:
<type>(<scope>): <subject>
[optional body]
Examples:
feat(api): add user profile endpoint
fix(db): resolve connection pool exhaustion
docs(readme): update installation instructions