using-git-worktrees
Use Git worktrees to maintain multiple branches simultaneously, ensuring isolated development environments.
Install
mkdir -p .claude/skills/using-git-worktrees-vobbilis && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15208" && unzip -o skill.zip -d .claude/skills/using-git-worktrees-vobbilis && rm skill.zipInstalls to .claude/skills/using-git-worktrees-vobbilis
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when working on multiple features simultaneously or when you need isolated development environments. MANDATORY for parallel development. FORBIDDEN is branch switching with uncommitted work. REQUIRED is worktree per feature.Key capabilities
- →Develop multiple features in parallel.
- →Perform code reviews without interrupting current work.
- →Implement hotfixes without losing context of ongoing development.
- →Compare different implementation approaches in isolated environments.
- →Create a new worktree for each feature.
- →Remove worktrees after merging or completing work.
How it works
Git worktrees allow multiple branches to be checked out simultaneously in different directories, creating isolated development environments for parallel tasks.
Inputs & outputs
When to use using-git-worktrees
- →Developing multiple features in parallel
- →Performing urgent hotfixes during feature development
- →Comparing different implementation approaches
About using-git-worktrees
Prevents the dangerous practice of switching branches with uncommitted work by mandating one worktree per feature. It enables efficient context switching for code reviews and emergency hotfixes without losing current progress.
Use when working on multiple features simultaneously or when you need isolated development environments. MANDATORY for parallel development. FORBIDDEN is branch switching with uncommitted work. REQUIRED is worktree per feature.
When not to use it
- →For quick, single-file changes.
- →When already on the right branch.
- →When only reading code.
Limitations
- →Branch switching with uncommitted work is forbidden.
- →Stashing for branch switches is forbidden.
- →Multiple features in one worktree are forbidden.
How it compares
This skill mandates using Git worktrees to avoid switching branches with uncommitted work or stashing, providing a safer and more efficient way to manage parallel development than traditional Git workflows.
Compared to similar skills
using-git-worktrees side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| using-git-worktrees (this skill) | 0 | 8mo | Review | Intermediate |
| resolve-conflicts | 81 | 12mo | Review | Intermediate |
| openspec-onboard | 10 | 9mo | Review | Beginner |
| codex-cli-bridge | 9 | 1y | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.