alfredocarta

List Worktrees Prompt — Git skill for Claude Code

Git community

List all git worktrees with their configuration and status.

How to install List Worktrees Prompt

Installs to ~/.claude/commands/alfredocarta-ai-agent-audit-trail-list_worktrees_prompt.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alfredocarta/ai-agent-audit-trail/HEAD/.claude/commands/list_worktrees_prompt.md -o ~/.claude/commands/alfredocarta-ai-agent-audit-trail-list_worktrees_prompt.md

Restart Claude Code, or start a new session, for it to be picked up.

What List Worktrees Prompt does


model: claude-sonnet-4-5-20250929 description: List all git worktrees with their configuration and status allowed-tools: Bash, Read, Glob, Grep

Purpose

List all git worktrees in the `trees/` directory with comprehensive information including branch names, directories, environment variables, port configuration, and service status.

Variables

PROJECT_CWD: . (current working directory - the main project root)
WORKTREE_BASE_DIR: trees/

Instructions

  • List all worktrees m

Alternatives in Git

  • 使用 Git Worktrees — 创建孤立的 Git worktrees,带有智能目录选择与安全验证 115.1k ★
  • Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
  • Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★

Full documentation available on GitHub

View Source Repository