wt-switch
切换到不同的git工作树进行开发。用于在不同功能或故事之间切换。显示所有可用工作树并提供导航命令。
📖 中文导读:切换到不同的git工作树进行开发。用于在不同功能或故事之间切换。显示所有可用工作树并提供导航命令。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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