| name | dev-branch-isolation |
| description | Prepare isolated git branches or worktrees for software-development tasks. Use before larger coding work when a clean branch, worktree, baseline verification, or separation from existing user changes is needed. |
| category | development |
Dev Branch Isolation
Use this skill when larger work should be isolated from the current tree.
Workflow
- Inspect current branch and
git status --short.
- Identify unrelated user changes and leave them untouched.
- Prefer an ordinary branch for small or medium tasks.
- Use a worktree only when parallel work, long-running experiments, or risky changes justify it.
- Verify project setup in the isolated branch/worktree before coding.
- Record the base branch and worktree path if created.
Guardrails
- Do not run destructive git commands.
- Do not move user changes into a new branch unless asked.
- Do not create worktrees inside ignored build output.
- Do not delete a worktree or branch without explicit instruction.