# Git Worktrees

> Use Git worktrees and checkpoints for parallel agents, isolated changes, review, integration, and recovery.

- Skill: `nafeeur/git-worktrees` (Agent Skill)
- Install (CLI): `npx skillmds@latest add nafeeur/git-worktrees`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nafeeur/git-worktrees/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: nafeeur (https://skillmd.com/u/nafeeur)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/nafeeur/git-worktrees

---


# Git Worktrees and Checkpoints

- Create one branch/worktree per independent implementation stream.
- Establish a pre-run checkpoint without altering the user’s current worktree.
- Keep agents from editing the same files unless the integration plan explicitly handles conflicts.
- Run verification inside each worktree, then review diffs before merging or cherry-picking.
- Preserve untracked work in checkpoint manifests.
- Remove completed worktrees and stale refs only after integration is confirmed.

