From git-simple
List all git worktrees with their configuration and status
npx claudepluginhub linkby-com/claude-code-plugin-marketplace --plugin git-simpleclaude-sonnet-4-5-20250929# Purpose List all git worktrees in the `trees/` directory with comprehensive information including branch names, directories, environment variables. ## Variables ## Instructions - List all worktrees managed by git - For each worktree in trees/, gather configuration details - Display comprehensive information in a clear, organized format - Show which worktrees are active vs stopped - Provide quick action commands for each worktree ## Workflow ### 1. List Git Worktrees - Run: `git worktree list` - Parse output to identify all worktrees - Filter for worktrees in PROJECT_CWD/trees/ di...
/list_worktrees_promptList all git worktrees with their configuration and status
List all git worktrees in the trees/ directory with comprehensive information including branch names, directories, environment variables.
PROJECT_CWD: . (current working directory - the main project root)
WORKTREE_BASE_DIR: trees/
git worktree listFor each worktree found in trees/:
Extract Branch/Directory Info:
trees/<branch-name>Read Root Configuration:
<worktree>/.env existsFollow the Report section format below.
After gathering all information, provide a comprehensive report in the following format:
๐ Git Worktrees Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Summary:
Total Worktrees: <count>
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ณ Main Repository (Default)
๐ Location: <project-root>
๐ฟ Branch: <current-branch>
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ณ Worktree: <branch-name>
๐ Location: trees/<branch-name>
๐ฟ Branch: <branch-name>
๐ Commit: <commit-hash-short>
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[Repeat for each worktree]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก Quick Commands:
Create new worktree:
โโ /git-simple:create_worktree_prompt <branch-name>
Remove worktree:
โโ /git-simple:remove_worktree_prompt <branch-name>
View this list again:
โโ /git-simple:list_worktrees_prompt
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
If no worktrees exist in trees/:
๐ Git Worktrees Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ณ Main Repository (Default)
๐ Location: <project-root>
๐ฟ Branch: <current-branch>
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โน๏ธ No worktrees found in trees/ directory
๐ก Create your first worktree:
/git-simple:create_worktree_prompt <branch-name>
This will:
โข Create isolated git worktree
โข Install dependencies
โข Start services automatically
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
If worktrees have configuration issues:
โ ๏ธ Configuration Warnings:
โข trees/<branch-name>: Missing .env files
โโ Fix: Recreate with /git-simple:create_worktree_prompt <branch-name>
โข trees/<branch-name>: Dependencies not installed
โโ Fix: cd trees/<branch-name>/apps/server && bun install
โโ Fix: cd trees/<branch-name>/apps/client && bun install
โข trees/<branch-name>: Services running but ports mismatch
โโ Fix: Stop services and update .env files