skills/worktree/SKILL.md
Manage git worktrees. Use when the user wants to check out a PR or branch as a worktree, list existing worktrees, or remove/prune one. Triggers include "create a worktree", "check out this PR", "add a worktree", "list worktrees", "remove worktree", or any request to work on a branch in a separate directory.
npx skillsauth add goofansu/pi-stuff worktreeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A worktree lets you check out a branch into a separate directory so you can work on it without disturbing your main checkout. This skill covers three operations:
| User intent | Reference | |---|---| | GitHub PR URL provided → check it out as a worktree | pull_request.md | | New branch (no PR) → create a worktree for it | local_branch.md | | List or remove existing worktrees | See below |
If it is unclear which applies, ask the user whether they have a PR URL before proceeding.
Run git worktree list from the main repo directory. Show the output as-is —
it includes the path, commit, and branch for each worktree.
git worktree remove <path> # removes a worktree and its directory
git worktree prune # removes stale entries for already-deleted directories
If the user wants to remove a worktree, confirm the path first, then run
git worktree remove. If the directory was already manually deleted, use
git worktree prune to clean up the stale reference.
data-ai
Use when the user asks to hand off the current session to a fresh agent.
development
Use when the user asks to research a topic online, find current information, compare options, or produce a research report.
content-media
Use when the user asks to transcribe audio files to text.
testing
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.