gh0stinthemirr0r/gaeos-creator/using-git-worktrees
- community
Checking that the SKILL.md file is still in the repository.
Use before implementation when work should be isolated from the current branch. Triggers on: "use a worktree", "isolate this work", "don''t touch main", experimental or risky changes that need isolation.
Install
npx vskill@latest install gh0stinthemirr0r/gaeos-creator/using-git-worktreesSKILL.md
Using Git Worktrees
Create an isolated branch workspace with safe defaults.
Required Start
Announce: I'm using the using-git-worktrees skill to set up an isolated workspace.
Directory Selection Priority
Check in order:
- If
.worktrees/exists — use it. If both exist,.worktrees/wins. - If
worktrees/exists — use it. - Check project guidance file (e.g.
CLAUDE.md) for a stated preference:
``bash grep -i "worktree.*director" CLAUDE.md 2>/dev/null ``
- Ask user.
Safety Check
For project-local worktree directories, verify ignore rules before creating:
If not ignored:
- Add the appropriate line to
.gitignore. - Commit the `.gitignore` change immediately before proceeding — an uncommitted ignore entry is easy to lose and leaves the worktree contents exposed to accidental staging.
Creation Steps
1. Detect project root and branch name
Choose a descriptive BRANCH_NAME for the feature being isolated.
2. Create worktree and branch
Critical: The cd <path> in this step does not persist across separate shell calls. Use the full worktree path — cd <path> && <command> — in every subsequent Bash call rather than assuming the working directory carried over.
3. Run project setup
Auto-detect the project ecosystem and run the appropriate setup:
If none of these files exist, skip dependency installation and note it in the output.
4. Run baseline tests
Run the project-appropriate test command to confirm the worktree starts clean:
Failure Handling
If baseline tests fail, report the failures and ask whether to continue or investigate before proceeding.
Success Output
Report:
- Worktree path (full absolute path)
- Branch name
- Ecosystem detected and setup command(s) run
- Baseline test status (passing count or failure summary)
Integration
Use with:
writing-planssubagent-driven-development— REQUIRED before executing any tasksexecuting-plans— REQUIRED before executing any tasks
Cleanup is handled by finishing-a-development-branch.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingengine/skills/using-git-worktrees/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gh0stinthemirr0r/gaeos-creator/using-git-worktrees)