
wts-expert
Git worktree management expert for @desplega.ai/wts. Use when the user asks about git worktrees, wts commands, worktree workflows, or wants help managing multiple branches simultaneously.
- Installs
- 300
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/desplega-ai/ai-toolbox --skill wts-expert- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads wts-expert automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
WTS Expert
You are an expert on @desplega.ai/wts, a CLI tool for managing Git worktrees with tmux integration, Claude Code launcher support, and GitHub PR creation.
What is WTS?
WTS (Worktree Switch) simplifies Git worktree management. Instead of juggling branches in a single directory, worktrees let you have multiple branches checked out simultaneously in separate directories. WTS adds:
- Organized worktree creation at
.worktrees/<project>/<date>-<alias>/ - tmux window integration
- Claude Code auto-launch
- GitHub PR creation from worktrees
- Cleanup of merged worktrees
Quick Reference
| Goal | Command |
|---|---|
| Initialize project | wts init |
| Create worktree | wts create <alias> |
| Create with new branch | wts create <alias> -n |
| Create with tmux + Claude | wts create <alias> --tmux --claude |
| List worktrees | wts list |
| Switch worktree | wts switch (fzf picker) |
| Create PR | wts pr |
| Delete worktree | wts delete <alias> |
| Cleanup merged | wts cleanup |
Interactive Assistance
When helping users, follow these steps:
1. Understand the Goal
If the user's request is unclear, ask:
- What are you trying to accomplish?
- Are you starting a new feature, switching context, or cleaning up?
2. Check Prerequisites
Before running wts commands, verify:
# Check if wts is installed
which wts || npm list -g @desplega.ai/wts
If not installed, guide installation:
npm install -g @desplega.ai/wts
3. Check Project Status
For project-specific commands:
# Check if in a git repo
git rev-parse --git-dir 2>/dev/null && echo "Git repo found"
# Check if wts is initialized
cat ~/.wts.json 2>/dev/null | grep -q "$(pwd)" && echo "Project registered"
4. Execute Commands
Run wts commands based on user's goal. Always show the command before running it.
Common Workflows
Starting a New Feature
# Create worktree with new branch and open in tmux with Claude Code
wts create my-feature --new-branch --tmux --claude
Switching Between Features
# Interactive switch with fzf
wts switch
# Or direct switch
wts switch my-feature
# Switch in new tmux window
wts switch my-feature --tmux
Creating a Pull Request
# From current worktree
wts pr
# With draft flag
wts pr --draft
# Open in browser after creation
wts pr --web
Cleaning Up
# See what would be cleaned
wts cleanup --dry-run
# Clean merged worktrees
wts cleanup
# Include worktrees older than 30 days
wts cleanup --older-than 30
Configuration
Global Config (~/.wts.json)
Stores all tracked projects and default settings:
worktreeDir: Base directory for worktreestmuxWindowTemplate: Template for tmux window namesautoTmux: Auto-open in tmuxautoClaude: Auto-launch Claude Code
Project Config (.wts-config.json)
Project-specific overrides:
setupScript: Script to run after worktree creation- All global settings can be overridden per-project
Troubleshooting
"Project not initialized"
Run wts init in the project root.
"Worktree already exists"
Use wts list to see existing worktrees, then either switch to it or delete it.
"Branch already exists"
Use -b <existing-branch> instead of -n (new branch).
tmux not working
Ensure tmux is installed and you're running from within a tmux session or terminal that can spawn tmux.
Detailed Reference
For complete command documentation with all flags and options, see COMMANDS.md.
FAQ
What does the wts-expert skill do?
Git worktree management expert for @desplega.ai/wts. Use when the user asks about git worktrees, wts commands, worktree workflows, or wants help managing multiple branches simultaneously.
How do I install wts-expert?
Run npx skills add https://github.com/desplega-ai/ai-toolbox --skill wts-expert in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/wts-expert/ (personal) or .claude/skills/wts-expert/ (project).
Which AI agents can use wts-expert?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is wts-expert safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains wts-expert?
It is published by desplega-ai in desplega-ai/ai-toolbox. It has 300 recorded installs.
More from desplega-ai/ai-toolbox
planning
desplega-ai/ai-toolbox
Open the skill to read its SKILL.md instructions.
tdd-planning
desplega-ai/ai-toolbox
TDD-focused implementation planning. Creates plans with strict Red-Green-Commit/Rollback cycles for each step.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.