Prompt file imported from asynkron/Asynkron.GitHubCliX (
.claude/commands/wt.md). Fill in{{arguments}}before use. Copyright stays with the author.
Create a git worktree for the specified feature.
Execute this command:
git worktree add ../Asynkron.JsEngine-{{arguments}} -b feature/{{arguments}}
After creating the worktree, output this message to the user:
Worktree created at ../Asynkron.JsEngine-{{arguments}}
Branch: feature/{{arguments}}
To work in this worktree, exit and start a new Claude Code session:
cd ../Asynkron.JsEngine-{{arguments}} && claude
Examples
Create a worktree for a new feature:
/wt type-narrowing
This will:
- Create
../Asynkron.JsEngine-type-narrowingworktree - Create branch
feature/type-narrowing - Prompt you to start a new Claude Code session there
Cleanup
When done with the feature (after PR is merged), run from the main repo:
git pull origin main
git worktree remove ../Asynkron.JsEngine-<featurename> --force
git branch -D feature/<featurename>