From devteam
Lists all git worktrees including native, legacy, and development track info from .devteam state DB. Debug command for worktree diagnostics in multi-track projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/devteam:worktree-listhaikuThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Git worktrees: !`git worktree list 2>/dev/null || echo "Not a git repository"`
Git worktrees: !git worktree list 2>/dev/null || echo "Not a git repository"
Native worktrees: !ls -d .claude/worktrees/*/ 2>/dev/null || echo "None"
Legacy worktrees: !ls -d .multi-agent/track-*/ 2>/dev/null || echo "None"
State DB exists: !test -f .devteam/devteam.db && echo "yes" || echo "no"
Debug/Expert Command - List all git worktrees with development track information.
Note: This command is rarely needed. Worktrees are managed automatically by
/devteam:implement. Use this only for debugging worktree issues.
/devteam:worktree list # List all worktrees
# Get all git worktrees
git worktree list --porcelain
Query the SQLite database (.devteam/devteam.db) to correlate git worktrees with development tracks:
source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh"
# Track info available via get_state "parallel_tracks.track_info.*"
Git Worktrees
Mode: Git worktrees enabled
State database: .devteam/devteam.db
Main Repository:
Path: /home/user/my-project
Branch: main
HEAD: abc123 (2 hours ago)
Development Track Worktrees:
Track 01: Backend API
Path: /home/user/my-project/.multi-agent/track-01
Branch: dev-track-01
HEAD: def456 (30 min ago)
Status: Complete (2/2 sprints)
Size: 45 MB
Track 02: Frontend
Path: /home/user/my-project/.multi-agent/track-02
Branch: dev-track-02
HEAD: ghi789 (1 hour ago)
Status: In Progress (1/2 sprints)
Size: 52 MB
Track 03: Infrastructure
Path: /home/user/my-project/.multi-agent/track-03
Branch: dev-track-03
HEAD: jkl012 (2 hours ago)
Status: Pending (0/2 sprints)
Size: 38 MB
Summary
Total worktrees: 4 (1 main + 3 tracks)
Total disk usage: ~135 MB
Tracks complete: 1/3
Commands:
Status: /devteam:worktree status
Cleanup: /devteam:worktree cleanup
Merge: /devteam:merge-tracks
Worktrees:
main /home/user/my-project (abc123)
track-01 /home/user/my-project/.multi-agent/track-01 (def456) complete
track-02 /home/user/my-project/.multi-agent/track-02 (ghi789) active
track-03 /home/user/my-project/.multi-agent/track-03 (jkl012) pending
No worktrees:
No development track worktrees found.
This project is using state-only mode (not git worktrees).
To use worktrees:
/devteam:plan (worktrees are auto-configured for multi-track plans)
Git command fails:
Error: Could not list git worktrees
Make sure you're in a git repository:
git status
If git is not working, check git installation:
git --version
Display worktrees from both sources:
.claude/worktrees/ (from isolation: worktree).multi-agent/track-*/ (from manual management)/devteam:worktree-status - Detailed worktree status/devteam:worktree-cleanup - Clean up worktrees/devteam:merge-tracks - Merge all tracksnpx claudepluginhub michael-harris/devteam --plugin devteamDisplays detailed status of git worktrees for development tracks including existence, git branch/changes/ahead-behind, sprint/task progress from SQLite DB. Debugs worktree issues.
Manages git worktrees for isolated parallel development sessions with safety checks for uncommitted changes and unpushed commits.
Creates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.