w00ing/worktree-ops-skill/worktree-ops
Claude Code and agent skill by w00ing/worktree-ops-skill
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Manage Git worktrees: create worktrees, sync local-only files via .worktreeinclude, handle hooks, and use helper scripts. Use when asked about worktree workflows, .worktreeinclude, or setting up worktree tooling.
Install
npx vskill@latest install w00ing/worktree-ops-skill/worktree-opsSKILL.md
Worktree Ops
Quick start
- Standard layout: keep main clones wherever they already live, and keep worktrees under
$HOME/worktrees/<repo>/<normalized-branch> - Create worktree (preferred when skill used):
./scripts/worktree-add.sh <branch> [start-point] - Create worktree at an explicit path:
./scripts/worktree-add.sh <branch> [start-point] --path /custom/path - Raw git equivalent:
git worktree add "$HOME/worktrees/<repo>/<normalized-branch>" <branch>(or-b <branch> <path> <start-point>) - Sync local-only files: copy
scripts/worktree-include.shfrom this skill into repo, then run./scripts/worktree-include.sh - Optional wrapper: copy
scripts/worktree-add.shfrom this skill into repo - Optional hook: copy
scripts/husky-post-checkout.shto.husky/post-checkout - Add local-only files to
.worktreeinclude(format below)
Requirements
- Git installed
bashavailable (forworktree-include.shandworktree-add.sh)- Husky optional (the hook only runs if Husky is installed/enabled)
Conventions
- When this skill is invoked, create a new worktree under
$HOME/worktrees/<repo>/<normalized-branch>by default. If only a rawgit worktree addcommand is used, keep that same layout. - Keep the main checkout outside the worktree root; do not nest worktrees inside another repository's working tree.
- Repositories that also appear as submodules should still keep their own worktrees under
$HOME/worktrees, not under the parent superproject checkout. - Keep local-only secrets/configs out of git; list in
.worktreeinclude - Prefer
copyfor env/profiles/keys; usesymlinkonly when safe - Use hook behavior:
.husky/post-checkoutruns include once on fresh worktree (hook file stored in this skill) - Branch names map to a single directory name by replacing
/with__, for examplefeature/foo->feature__foo. - Reserve
__in branch names when using the default layout so the mapping stays unambiguous.
Details
.worktreeincludeformat:<mode> <source> [dest], mode =copy|symlink, paths relative to main worktree root- Paths cannot contain spaces (simple parser)
- Example
.worktreeinclude: copy .env.localsymlink .vscode/settings.json .vscode/settings.jsonscripts/worktree-include.sh:- resolve main root via
git rev-parse --git-common-dir - copy/symlink from main to current worktree
- skip if src missing or dest exists
scripts/worktree-add.sh:- default root is
$HOME/worktrees - derive the repo directory name from the current git root
- create
$HOME/worktrees/<repo>/<normalized-branch>when no explicit path is provided - normalize branch names by replacing
/with__in the directory name - reject default-layout branch names that already contain
__ git worktree add -bif start-point provided- run include script in new worktree
Security
- Security scanPassed, 90 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 repositoryCheckingskills/worktree-ops/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/w00ing/worktree-ops-skill/worktree-ops)