wt-switch
Switch development context to a different git worktree. Use when moving between different features or stories. Shows all available worktrees and provides navigation commands.
When & Why to Use This Skill
The wt-switch Claude skill optimizes Git-based development workflows by providing an efficient way to manage and navigate multiple worktrees. It allows developers to seamlessly switch contexts between different features, bug fixes, or stories, offering a clear overview of available worktrees and providing the necessary commands to transition instantly without manual directory searching.
Use Cases
- Context Switching: Rapidly move between different feature branches or user stories without the overhead of manual directory navigation or Git stashing.
- Concurrent Development: Manage multiple active development environments simultaneously, allowing for quick transitions between long-term projects and urgent hotfixes.
- Branch Status Monitoring: Get an immediate preview of the branch status and directory location of target worktrees before switching, ensuring a smooth transition.
- Workflow Optimization: Simplify the use of Git worktrees for developers who prefer a guided, interactive command-line experience within their AI-assisted environment.
| name | wt-switch |
|---|---|
| description | Switch development context to a different git worktree. Use when moving between different features or stories. Shows all available worktrees and provides navigation commands. |
/wt:switch - Switch to Another Worktree
Description
Quick command to switch development context to a different worktree.
Usage
/wt:switch
What It Does
This slash command:
- Activates the Git Worktree Manager skill (
@git-worktree) - Automatically runs the
*switchcommand - Shows available worktrees and helps you switch
Workflow
The command will:
- List available worktrees - Show all worktrees with numbers
- Ask which to switch to - Interactive selection
- Provide cd command - Give you the command to switch
- Show branch status - Display current branch and status of target worktree
Benefits
✅ Quick Navigation - See all worktrees and switch easily ✅ Context Aware - Shows current worktree ✅ Status Preview - See what's in the target worktree before switching
Notes
- The command provides the
cdcommand for you to run - It cannot actually change your terminal's directory (shell limitation)
- Copy and paste the provided command to switch