Create Git Worktree
SkillDev toolsCreate a git worktree and prime the development environment for a new feature or refactor. Use when starting isolated feature work or needing a separate working copy.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Create Git Worktree skill
What this skill tells your AI
The instructions your AI receives, as published by incubateur-ademe/benefriches in .claude/skills/worktree/SKILL.md and read by ahel’s review.
Create a new git worktree for isolated feature development.
Instructions
- Parse the branch name from arguments
- Run the worktree creation script
- Report the result and next steps
Execution
The script always creates a new branch from current HEAD, places the worktree under .claude/worktrees/<name> (gitignored, so it never pollutes git status/diff/search), and primes it (pnpm install, shared build, env files):
scripts/create-worktree.sh <branch-name>
Branch Naming Convention
If the user provides just a feature name without a prefix, add the appropriate prefix:
- Features:
feat/<name>(default) - Refactors:
refactor/<name>(if user mentions "refactor") - Fixes:
fix/<name>(if user mentions "fix" or "bug") - Chores:
chore/<name>(if user mentions "chore")
Examples
| User Input | Branch Name |
|---|---|
/worktree new-feature | feat/new-feature |
/worktree refactor auth | refactor/auth |
/worktree fix/login-bug | fix/login-bug (keep as-is) |
/worktree feat/my-thing | feat/my-thing (keep as-is) |
After Execution
Tell the user:
- The worktree location
- How to navigate to it:
cd <worktree-path> - Remind them to start a new Claude Code session in that directory for isolated work
Arguments
$ARGUMENTS
Signals
- GitHub stars
- 45
- Forks
- 3
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
worktree-incubateur-ademe- Source
- github.com/incubateur-ademe/benefriches