JavaScript is disabled. Some features may not work.
git-workflow — Install Guide | SkillsNav
🇺🇸 English🇨🇳 中文
SkillsNav
Home

git-workflow

mlSafeIntermediateClaude

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
Sourcefredericboyer/dev-team
SKILL.mdView on GitHub →
Repo StarsN/A
Est. per SkillN/A (shared across 15 skills from this repo)
DifficultyIntermediate
Risk LevelSafe

Related Skills

Works Well With

Skills from the same repository — often designed to work together