From up
Use when a task needs isolation from the current workspace. Picks a worktree directory via a fixed priority order, verifies it's gitignored, creates the worktree, auto-detects project setup, runs baseline tests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/up:git-worktreesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Worktrees let you work on multiple branches simultaneously without stashing or switching. Use one when:
Worktrees let you work on multiple branches simultaneously without stashing or switching. Use one when:
For project-local directories (.worktrees/ or worktrees/), verify gitignore:
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
If not ignored: add the line to .gitignore, commit (chore: ignore worktree directory), then proceed.
For global directories (outside the project), no gitignore check needed.
project=$(basename "$(git rev-parse --show-toplevel)")
path="<selected-dir>/<branch-name>" # e.g. .worktrees/feature-auth
git worktree add "$path" -b "<branch-name>"
cd "$path"
[ -f package.json ] && npm install
[ -f Cargo.toml ] && cargo build
[ -f pyproject.toml ] && (uv sync 2>/dev/null || pip install -e .)
[ -f go.mod ] && go mod download
Then run the project's tests to confirm a clean baseline. If tests fail before you've changed anything: stop and report. You can't distinguish future bugs from pre-existing ones.
Worktree ready at <full-path>
Baseline: <test summary, or "skipped — no test command">
git worktree remove <path>
git branch -D <branch-name> # only if not merged
Don't leave stale worktrees around. git worktree prune cleans up broken references.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub btseytlin/ultrapack --plugin up