git-worktree
Installation
SKILL.md
Git Worktree Integration
Priority: MEDIUM — Enhances workflow safety
Purpose
Automatically create a git worktree when starting a workflow, so all changes happen on an isolated branch. If the workflow fails, discard the worktree — zero damage to the main codebase.
When to Use
- Auto-activate: When
workflow:startis called andAF_WORKTREE=trueis set - Manual: User says "use a worktree" or "work in isolation"
- Skip: Quick bug fixes, config changes, single-file edits