GIT Workflow
Squad branching model: dev-first workflow with insiders preview channel
Install
npx skills add microsoft/waza --skill git-workflow -g -a claude-code -y- Repository
- microsoft/waza1.5k
- Category
- Engineering
- Updated
- 4d ago
- License
- MIT
- Context cost
- Mediumabout 1,510 tokens
- Runs scripts
- No, instructions only
What it does
Squad branching model: dev-first workflow with insiders preview channel
Context
Squad uses a three-branch model. All feature work starts from dev, not main.
| Branch | Purpose | Publishes |
|---|---|---|
main | Released, tagged, in-npm code only | npm publish on tag |
dev | Integration branch, all feature work lands here | npm publish --tag preview on merge |
insiders | Early-access channel, synced from dev | npm publish --tag insiders on sync |
Branch Naming Convention
Issue branches MUST use: squad/{issue-number}-{kebab-case-slug}
Examples:
squad/195-fix-version-stamp-bugsquad/42-add-profile-api
Workflow for Issue Work
-
Branch from dev:
git checkout dev git pull origin dev git checkout -b squad/{issue-number}-{slug} -
Mark issue in-progress:
gh issue edit {number} --add-label "status:in-progress" -
Create draft PR targeting dev:
gh pr create --base dev --title "{description}" --body "Closes #{issue-number}" --draft -
Do the work. Make changes, write tests, commit with issue reference.
-
Push and mark ready:
git push -u origin squad/{issue-number}-{slug} gh pr ready -
After merge to dev:
git checkout dev git pull origin dev git branch -d squad/{issue-number}-{slug} git push origin --delete squad/{issue-number}-{slug}
Parallel Multi-Issue Work (Worktrees)
When the coordinator routes multiple issues simultaneously (e.g., "fix bugs X, Y, and Z"), use git worktree to give each agent an isolated working directory. No filesystem collisions, no branch-switching overhead.
When to Use Worktrees vs Sequential
| Scenario | Strategy |
|---|---|
| Single issue | Standard workflow above, no worktree needed |
| 2+ simultaneous issues in same repo | Worktrees, one per issue |
| Work spanning multiple repos | Separate clones as siblings (see Multi-Repo below) |
