using-git-worktrees
Create isolated git workspaces for feature development
También disponible en: obra,Cycleaddict,davila7,Cygnusfear,Doyajin174,DYAI2025,ZhanlinCui,CodingCossack
Developers struggle with context switching when working on multiple branches. This skill creates isolated git worktrees so you can work on features in parallel without losing your current workspace state.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "using-git-worktrees". Create a worktree for the new payment feature
Resultado esperado:
I'm using the using-git-worktrees skill to set up an isolated workspace.
Worktree ready at /projects/myapp/.worktrees/feature/payments
Tests passing (47 tests, 0 failures)
Ready to implement payment feature
Usando "using-git-worktrees". Set up a workspace to review the api-v2 branch
Resultado esperado:
I'm using the using-git-worktrees skill to set up an isolated workspace.
Detected existing .worktrees directory
Verified directory is git-ignored
Created worktree: git worktree add .worktrees/api-v2 -b api-v2
Installed dependencies: npm install
Baseline tests: 23 passing
Worktree ready at /projects/myapp/.worktrees/api-v2
Auditoría de seguridad
SeguroAll 43 static findings evaluated as false positives. External commands are standard git and build tools with hardcoded or trusted arguments. Filesystem operations are legitimate directory checks. No command injection vectors, credential exposure, or malicious patterns detected.
Factores de riesgo
⚙️ Comandos externos (26)
📁 Acceso al sistema de archivos (14)
Puntuación de calidad
Lo que puedes crear
Feature Development Isolation
Start work on a new feature branch without losing uncommitted changes or breaking the current workspace state
Code Review Preparation
Create a clean isolated workspace to review and test pull request changes without affecting local development
Bug Fix Reproduction
Isolate bug investigation work in a separate worktree while maintaining stable development environment
Prueba estos prompts
Set up an isolated workspace for the feature/auth-improvements branch using git worktrees
Create a worktree for bugfix/memory-leak in the .worktrees directory and run the project setup
Create an isolated worktree from the pull-request-123 branch so I can review changes without affecting my current work
I need to work on the experimental/caching branch while keeping my current changes intact. Set up a worktree and verify tests pass
Mejores prácticas
- Always verify worktree directories are git-ignored before creation to prevent accidental commits
- Run baseline tests immediately after worktree creation to establish a clean starting point
- Follow the directory priority order: existing directory > CLAUDE.md preference > ask user
Evitar
- Creating worktrees without verifying git ignore status, causing workspace pollution in version control
- Skipping baseline test verification, making it impossible to distinguish new bugs from pre-existing issues
- Hardcoding directory locations instead of checking existing directories and user preferences first
Preguntas frecuentes
What is a git worktree and why use it?
Where are worktrees created?
Do I need to install dependencies in each worktree?
What happens if baseline tests fail?
Can I have multiple worktrees at the same time?
How do I clean up worktrees after finishing?
Detalles del desarrollador
Autor
sickn33Licencia
MIT
Repositorio
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/using-git-worktreesRef.
main
Estructura de archivos
📄 SKILL.md