Using Git Worktrees
Summary
Set up an isolated workspace with git worktrees before starting feature work or executing a plan.
Features
- Isolates feature work from the current workspace
- Lets several tasks proceed without branch thrash
- Falls back gracefully when worktrees are unavailable
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Agents that edit files in your active checkout create a specific kind of anxiety. This skill removes it by establishing an isolated workspace first.
It creates a git worktree for the task, so changes happen on a separate branch in a separate directory, leaving your working copy untouched. Several tasks can run at once without stashing, branch switching, or the risk of half-finished work colliding.
The skill handles setup, dependency installation in the new worktree, and cleanup afterwards, plus a fallback path when native worktree support is not available in the environment.
Part of the Superpowers collection.
Related Skills
Deno Guidance
by Deno
Deno's official foundational skill — project setup, package choices, configuration, and CLI commands done the current way.
Gradio App Builder
by Hugging Face
Build Gradio web UIs and ML demos in Python with the current API — components, layouts, events, and chat interfaces.
Cloudflare Platform
by Cloudflare
Cloudflare's official platform skill — Workers, Pages, storage, AI, networking, security, and IaC in one reference.
Verification Before Completion
by Jesse Vincent
Never claim work is complete, fixed, or passing without running the check and reading the output first.