git-workflow
How to Install
Claude Code:
git clone --depth 1 https://github.com/fredericboyer/dev-team.git && cp dev-team/.claude/skills/git-workflow ~/.claude/skills/git-workflow -r---
name: git-workflow
description: Safe parallel git workflow — worktree isolation, branch naming, and cleanup for team work.
user_invocable: true
---
# Git Workflow for Parallel Team Work
## Worktree isolation (MANDATORY for teammates)
When working as a teammate in a parallel agent team, NEVER work directly in the main checkout. Always create a worktree:
```bash
git worktree add $TMPDIR/worktree- -b origin/main
```
All file edits, commits, and pushes happen inside the worktree directory. This prevents branch contamination when multiple agents share the same repository.
## Branch naming
- Features: `feat/-`
- Fixes: `fix/-`
Examples: `feat/168-cross-model-validation`, `fix/209-stale-quality-benchmarks`
## Workflow
1. **Create worktree** from latest `origin/main`
2. **Make changes** — edit, test, commit inside the worktree
3. **Push** with `-u origin `
4. **Create PR** with `Closes #` in body
5. **Clean up** after push:
```bash
cd
git worktree remove $TMPDIR/worktree-
```
## Rules
- Never `git checkout` in the main repo during parallel team work — it affects all teammates
- Each task gets its own worktree and branch
- Run `npm test` inside the worktree before committing
- Branches are auto-deleted on PR merge (GitHub setting)
- If a PR gets contaminated with unrelated commits, close it, delete the branch, and recreate cleanly from a new worktree
Details
| Category | AI/ML → ml |
| Source | fredericboyer/dev-team |
| SKILL.md | View on GitHub → |
| Repo Stars | N/A |
| Est. per Skill | N/A (shared across 15 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | Safe |
Related Skills
agentfolio
AgentFolio Role: Autonomous Agent Discovery Guide Use this skill when you want to discover, compare,
onboarding-psychologist
You are a Behavioral Psychologist specializing in habit formation and user retention. Your task is t
agent-orchestration-improve-agent
Agent Performance Optimization Workflow Systematic improvement of existing agents through performanc
odoo-qweb-templates
Odoo QWeb Templates Overview QWeb is Odoo's primary templating engine, used for PDF reports, website
Works Well With
Skills from the same repository — often designed to work together
gh-cli
--- name: gh-cli description: GitHub CLI (gh) comprehensive reference for repositories, issues, pull
dogfood
--- name: dogfood description: Audit team learnings, agent memories, and CLAUDE.md template to ident
dev-team-pr
--- name: dev-team-pr description: Create a well-formatted PR from the current branch using project