List Worktrees

Use when user wants to see all autonomy worktrees with their status

5 stars 2 forksOther Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add tilmon-engineering/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add tilmon-engineering/claude-skills --skill list-worktrees
Manual install
git clone --depth 1 https://github.com/tilmon-engineering/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/plugins/autonomy/skills/list-worktrees ~/.claude/skills/list-worktrees

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Listing Worktrees

## Overview

List all autonomy worktrees in the repository, showing their branch, location, HEAD commit, and lock status. Helps users navigate and manage multiple parallel worktrees.

**Core principle:** Worktrees are working directories, not branches. This lists checked-out worktrees only, not all autonomy branches.

## When to Use

Use this skill when:
- User runs `/list-worktrees` command
- User wants to see which autonomy branches have active worktrees
- User needs to find worktree paths for navigation
- User wants to identify locked or stale worktrees

**DO NOT use for:**
- Listing all autonomy branches (use `/list-branches` instead)
- Analyzing branch status or progress (use `/branch-status`)
- Comparing branches (use `/compare-branches`)

## Quick Reference

| Step | Action | Tool |
|------|--------|------|
| 1. Get all worktrees | Run git worktree list | Bash |
| 2. Filter to autonomy | Keep only .worktrees/autonomy/ paths | Bash |
| 3. Format output | Create table with branch, path, HEAD, lock status | Manual |
| 4. Provide guidance | Add navigation and management hints | Direct output |

## Process

### Step 1: Get All Worktrees

Retrieve complete worktree list from git:

```bash
# Get porcelain format for machine parsing
worktree_list=$(git worktree list --porcelain)

# Format:
# worktree /path/to/worktree
# HEAD <commit-hash>
# branch refs/heads/<branch-name>
#
# worktree /path/to/another
# ...
```

**Parse porcelain output:**
Read the full skill on GitHub

Details

Skill name
list-worktrees
Path
plugins/autonomy/skills/list-worktrees/SKILL.md
License
MIT
Repo updated
22 May 2026

FAQ

What does the List Worktrees skill do?

Use when user wants to see all autonomy worktrees with their status

How do I install the List Worktrees skill?

Claude Code plugin: /plugin marketplace add tilmon-engineering/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is List Worktrees popular?

It lives in tilmon-engineering/claude-skills, which has 5 GitHub stars and 2 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.