Worktree Ls — Git skill for Claude Code
List all active git worktrees with status.
How to install Worktree Ls
Installs to ~/.claude/commands/igerber-diff-diff-worktree-ls.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/igerber/diff-diff/HEAD/.claude/commands/worktree-ls.md -o ~/.claude/commands/igerber-diff-diff-worktree-ls.md Restart Claude Code, or start a new session, for it to be picked up.
What Worktree Ls does
description: List all active git worktrees with status argument-hint: ""
List Git Worktrees
Instructions
1. Get Worktree List
Use porcelain format for reliable, machine-parseable output:
git worktree list --porcelain
2. Parse and Check Status
Parse the porcelain output into records. Each worktree is a block of lines separated by a blank line, with fields:
worktree— the absolute pathHEAD— the full commit hash- `branch refs/heads/<na
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 RepositoryRelated Skills
List Worktrees Prompt
List all git worktrees with their configuration and status
Git Worktree
Manage git worktrees — create, list, remove, parallel branch development
Check Active Git Files.Prompt
You are an expert at analyzing git history. Given a list of files and their modification counts, return exactl
Manage Worktrees
List, create, clean up, and manage git worktrees across all project repositories
Gitea
Privater Git-Mirror auf Gitea. Repo-Management — push, list, create, delete, clone, status.
Claude Tmux
by Niels Groeneveld - Manage Claude Code within tmux. A tmux popup of all your Claude Code instances, enabling
Related Agents
Purpose
You are a git worktree creation specialist. Your sole responsibility is to create a properly configured worktr
Orra
Orra — standing AI orchestrator for multi-worktree development. Rides on the Claude Code Agents View. Scans wo
Worktree Agent
Implementer agent for a User Story in ITS OWN git worktree. Resolves ONE User Story, reports every change as a