Agent Skill
2/7/2026wt
List all git worktrees with status. Use when asked to show, list, or view worktrees.
P
phuongwd
0GitHub Stars
1Views
npx skills add phuongwd/worktree-maestro
SKILL.md
| Name | wt |
| Description | List all git worktrees with status. Use when asked to show, list, or view worktrees. |
name: wt description: List all git worktrees with status. Use when asked to show, list, or view worktrees. argument-hint: "[repo-path]" allowed-tools: > mcp__worktree-maestro__list_worktrees, mcp__plugin_linear_linear__get_issue, mcp__plane__retrieve_work_item_by_identifier, Bash
Use the list_worktrees MCP tool with verbose: true and allRepos: true to show all worktrees.
If $ARGUMENTS contains a path, pass it as repo to filter worktrees from that specific repository.
Issue Tracker Integration
After listing worktrees, enhance the display with issue information:
-
For each worktree with a ticket:
- Linear tickets (e.g.,
ABC-123): Trymcp__plugin_linear_linear__get_issueto fetch title/status - Plane tickets: Try
mcp__plane__retrieve_work_item_by_identifierto fetch title/status - GitHub issues (e.g.,
#42,GH-42): Use GitHub MCP server tools if available, orgh issue view <number> --json title,statevia Bash
- Linear tickets (e.g.,
-
Handle unavailability gracefully:
- If MCP tool fails or is unavailable, show ticket ID only
- If tracker cannot be determined, show ticket ID as-is
Display Format
Show results in a clear table with columns:
- Repository (if multiple repos)
- Name
- Branch
- Status (clean/dirty)
- Changed files count
- Issue (ticket ID + title + status when available)
- Port (if assigned)
- iTerm tab status
Example output:
| Name | Branch | Status | Changes | Issue |
|---------------------|----------------------|--------|---------|----------------------------------|
| myapp-ABC-123-auth | feature/ABC-123-auth | clean | - | ABC-123: OAuth flow [In Progress]|
| myapp-hotfix | feature/hotfix | dirty | 3 files | - |
| myapp-GH-42-fix | feature/GH-42-fix | clean | - | #42: Fix crash [open] |
When tracker unavailable:
| myapp-ABC-123-auth | feature/ABC-123-auth | clean | - | ABC-123 |
Skills Info
Original Name:wtAuthor:phuongwd
Download