/worktrees:statusfrom worktrees
Display comprehensive worktree status including active worktrees, stale references, and uncommitted changes. Invoke with "/worktrees:status" or when user mentions "worktree status", "list worktrees", "check worktrees", "worktree health", or "audit worktrees".
Ships in worktrees. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Display comprehensive status of all worktrees.
Run these commands to gather worktree status:
echo "=== Active Worktrees ===" && git worktree list
echo "=== Stale References ===" && git worktree prune --dry-run 2>&1 || echo "None found"
echo "=== Uncommitted Changes ===" && for wt in $(git worktree list --porcelain | grep "^worktree " | cut -d ' ' -f 2); do
changes=$(cd "$wt" && git status --porcelain 2>/dev/null | head -5)
if [ -n "$changes" ]; then
echo ""
echo "📁 $wt:"
echo "$changes"
count=$(cd "$wt" && git status --porcelain 2>/dev/null | wc -l | tr -d ' ')
if [ "$count" -gt 5 ]; then
echo " ... and $((count - 5)) more files"
fi
fi
done
echo ""
echo "Worktrees with no changes not shown."
echo "=== Locked Worktrees ===" && for wt in $(git worktree list --porcelain | grep "^worktree " | cut -d ' ' -f 2); do
if [ -f "$wt/../.git/worktrees/$(basename $wt)/locked" ] 2>/dev/null || git worktree list --porcelain | grep -A5 "^worktree $wt$" | grep -q "^locked"; then
echo "🔒 $wt"
fi
done || echo "None"
/path/to/project abc1234 [main]
/path/to/project/.worktrees/feature def5678 [feature/auth]
If git worktree prune --dry-run shows output, you have stale entries:
Removing worktrees/old-feature: gitdir file points to non-existent location
Fix: Run git worktree prune to clean up.
Shows files with uncommitted changes in each worktree:
📁 /path/to/project/.worktrees/feature:
M src/auth/service.ts
?? src/auth/new-file.ts
Status codes:
M - ModifiedA - Added (staged)D - Deleted?? - UntrackedUU - Merge conflictRun all checks in one command:
echo "=== WORKTREE STATUS ===" && \
echo "" && \
echo "📋 Active Worktrees:" && \
git worktree list && \
echo "" && \
echo "🧹 Stale References:" && \
(git worktree prune --dry-run 2>&1 | grep -v "^$" || echo " None") && \
echo "" && \
echo "📝 Uncommitted Changes:" && \
for wt in $(git worktree list --porcelain | grep "^worktree " | cut -d ' ' -f 2); do
changes=$(cd "$wt" && git status --porcelain 2>/dev/null)
if [ -n "$changes" ]; then
echo " $wt: $(echo "$changes" | wc -l | tr -d ' ') files"
fi
done && \
echo "" && \
echo "Done."
Based on status output:
| Finding | Action |
|---|---|
| Stale references | Run git worktree prune |
| Uncommitted changes | Commit, stash, or discard |
| Old worktrees | Use /worktrees:finish to clean up |
| Locked worktrees | Unlock with git worktree unlock <path> if no longer needed |
/worktrees:new - Create a new worktree/worktrees:finish - Clean up completed worktree/worktrees:concepts - Reference documentationWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aaronbassett/agent-foundry --plugin worktrees6 skills in this plugin
/conceptsworktrees:conceptsComprehensive reference for git worktrees. Covers concepts, commands, conflict resolution, and best practices. Invoke with "/worktrees:concepts" or when user mentions "worktree reference", "explain worktrees", "worktree documentation", "worktree commands", "worktree concepts", or "learn about worktrees"./finishworktrees:finishUse when completing work in a worktree. Handles PR creation or direct merge, worktree removal, and branch cleanup. Invoke with "/worktrees:finish" or when user mentions "finish worktree", "clean up worktree", "merge worktree", "done with worktree", or "complete worktree work"./newworktrees:newUse when creating a new git worktree. Handles gitignore setup, worktree creation, and provides guidance. Invoke with "/worktrees:new <name>" or when user mentions "create worktree", "new worktree", "start feature in worktree", or "isolated workspace"./orchestratorworktrees:orchestratorUse for multi-subagent parallel development. A main Claude instance manages multiple concurrent subagents, each working in isolated worktrees. Invoke with "/worktrees:orchestrator <feature>" or when user mentions "orchestrate agents", "parallel subagents", "coordinate development", "multi-agent workflow", "spawn subagents", or "divide feature into tasks"./peerworktrees:peerUse for independent development with PR-based integration. Multiple Claude instances work autonomously, each creating PRs to main. Invoke with "/worktrees:peer <feature>" or when user mentions "peer workflow", "independent worktree", "autonomous development", "PR-based workflow", or "multi-instance development".Other plugins' skills for the same job