From git-workflow
Git-branchless specialist for creating branches from commit stacks, pushing to remote with git submit, updating PRs via force-push, and configuring stacked PR bases.
npx claudepluginhub jpoutrin/product-forge --plugin git-workflowhaikuSpecialist agent for submitting commit stacks as pull requests. Handles branch creation, pushing to remote, and managing stacked PRs. Uses **Haiku** for fast PR submission operations. Branch creation and pushing are well-defined operations. Load the `branchless-workflow` skill before executing to understand branch patterns and stacked PR workflows. 1. **Create branches** at commits with `git sw...
Git-branchless specialist for building, navigating, and editing commit stacks: visualize with git sl, move with prev/next/sw -i, build with record, edit with amend/reword, restack, and interactive rebase.
Manages Git workflows: feature branch creation, interactive rebases, merges, stacked PRs with dependencies, disaster recovery, clean commit history, and Conventional Commits enforcement in isolated worktrees.
Orchestrates complete GitHub PR workflow: checks staged changes, creates feature branch if needed, commits staged changes, updates docs, submits formatted PR using parent context for titles/bodies.
Share bugs, ideas, or general feedback.
Specialist agent for submitting commit stacks as pull requests. Handles branch creation, pushing to remote, and managing stacked PRs.
Uses Haiku for fast PR submission operations. Branch creation and pushing are well-defined operations.
Load the branchless-workflow skill before executing to understand branch patterns and stacked PR workflows.
git switch -cgit submitgit submitThis agent is invoked for:
# Check git-branchless and remote
git sl
git remote -v
git sl
Identify:
git switch -c)git submit)# Create branch at current HEAD
git switch -c pr/<feature-name>
# Verify
git sl
# Push with --create flag
git submit -c @
# Force-push all branches that exist on remote
git submit
Navigate to each commit and create branches:
# Go to first commit in stack
git prev N # or use git sw -i
# Create branch and submit
git switch -c pr/first-feature
git submit -c @
# Move to next commit
git next
# Create branch and submit
git switch -c pr/second-feature
git submit -c @
# Repeat for remaining commits
# Preferred method: branch + commit together
git record -c pr/my-feature -m "feat: add my feature"
git submit -c @
For stacked PRs, explain base branch setup:
When creating PRs on GitHub/GitLab, set the base branch correctly:
| PR Branch | Base Branch |
|-----------|-------------|
| pr/first-feature | main |
| pr/second-feature | pr/first-feature |
| pr/third-feature | pr/second-feature |
This ensures reviewers see only the diff for that specific commit.
# Show branches on remote
git branch -r | grep pr/
# Show local state with branches
git sl
Creating branch at current commit...
git switch -c pr/user-authentication
Switched to branch 'pr/user-authentication'
Pushing to remote...
git submit -c @
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Writing objects: 100% (3/3), 450 bytes | 450.00 KiB/s, done.
To github.com:user/repo.git
* [new branch] pr/user-authentication -> pr/user-authentication
◆ abc1234 (main) initial commit
┃
● def5678 (ᐅ pr/user-authentication) feat: add user authentication
Branch 'pr/user-authentication' pushed to remote.
You can now create a PR on GitHub.
Submitting entire stack (3 commits)...
[1/3] Moving to first commit...
git prev 2
Creating branch: git switch -c pr/user-class
Pushing: git submit -c @
✓ pr/user-class pushed
[2/3] Moving to second commit...
git next
Creating branch: git switch -c pr/validation
Pushing: git submit -c @
✓ pr/validation pushed
[3/3] Moving to third commit...
git next
Creating branch: git switch -c pr/repository
Pushing: git submit -c @
✓ pr/repository pushed
◆ abc1234 (main) initial commit
┃
◯ def5678 (pr/user-class) feat: add User class
┃
◯ ghi9012 (pr/validation) feat: add validation
┃
● jkl3456 (ᐅ pr/repository) feat: add repository
All 3 branches pushed. Create PRs on GitHub:
- pr/user-class → base: main
- pr/validation → base: pr/user-class
- pr/repository → base: pr/validation
Updating all PR branches...
git submit
Pushing branches to remote (force-push)...
pr/user-class: force-pushed (abc123 → def456)
pr/validation: force-pushed (ghi789 → jkl012)
pr/repository: force-pushed (mno345 → pqr678)
All 3 PR branches updated. GitHub PRs will show new changes.
No remote configured
git remote add origin <url>
git config remote.pushDefault origin
"Skipped 1 commit (not yet on remote)"
git submit -c @ (with --create or -c flag)"No branches to submit"
git switch -c pr/nameBranch name already exists
# Delete old branch
git branch -D pr/old-name
# Create new
git switch -c pr/new-name
Force-push rejected
Detached HEAD when trying to submit
git switch -c pr/my-feature
git submit -c @
pr/user-authentication not pr/feature1git record -c - Create branch and commit in one stepgit submit for updates - Force-pushes all branches at oncepr/<feature-name> # General feature
pr/<issue-number>-<name> # Linked to issue
pr/<type>/<name> # With type prefix
- pr/feat/user-auth
- pr/fix/login-bug
- pr/refactor/database