<< All versions
Skill v1.0.0
currentAutomated scan100/100newkub/devin-skills/list-git-worktree
──Details
PublishedOctober 6, 2026 at 03:33 AM
Content Hashsha256:f29915535695f6a3...
Git SHA
──Files
Files (1 file, 1.4 KB)
SKILL.md1.4 KBactive
SKILL.md · 74 lines · 1.4 KB
version: "1.0.0"
name: list-git-worktree description: List git worktrees in the repo with branch and status argument-hint: "[scope]" related:
- use-git-worktrees
- cleanup
- report
Goal
List all git worktrees of the repository with path, branch, commit, and status
Scope
Use when inspecting existing worktrees
Execute
1. List Worktrees
Goal: get the worktree list
- Run
git worktree list - Or
git worktree list --porcelainfor easy parsing
2. Parse Details
Goal: extract each worktree's data
- For each worktree record:
PathBranch(ordetached)Commit SHAStatus(e.g.,locked,prunable,bare)
3. Check Branch Status
Goal: know the branch status
- Run
git branch --all --contains <commit>if needed - State whether the branch is checked out
4. Report
Goal: summarize the result
- Use
/reportcolumns: Path, Branch, Commit, Status - Or a bullet list when there are few
Rules
1. Read-Only
- Never create, delete, or modify worktrees
- Never checkout a branch unnecessarily
2. Handle Bare Repos
- Bare repo → mark the worktree path per the bare structure
- Use /use-git-worktrees if needed
- Use /cleanup-worktree if needed
Expected Outcome
- A complete worktrees table
- Known path, branch, commit, status
- No side effects