/baspowers:using-git-worktreesfrom baspowers
Use when starting feature work that needs isolation from the current workspace, or before executing implementation plans
Ships in baspowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before reading or editing any project file, decide where to work. Implementation happens in a worktree that holds only your work, never in the main checkout and never on main/master. If your human partner asks you to work in place, do so.
git rev-parse --git-dir --git-common-dir
git status --porcelain
git rev-list --count origin/main..HEAD
Reuse the current checkout only if all of these hold:
.git twice) mean you are in
the main checkout: go to step 2, even if it is clean;git status --porcelain prints nothing;A session can open in a worktree another agent is still using, so being in a worktree is not enough. Never commit, stash, or reset changes you did not make. A detached HEAD in a fresh worktree is fine; baspowers:finishing-a-development-branch creates the branch. If any check fails, go to step 2.
.worktrees/ or worktrees/ in the main checkout's root (first line of
git worktree list), else .worktrees/ there.git check-ignore -q <dir> must succeed before you
create the worktree. If it fails, append the directory to
$(git rev-parse --git-common-dir)/info/exclude (create the file if
missing). Do not commit a .gitignore change.git fetch origin && git worktree add -b <branch> <dir>/<branch> origin/mainIf worktree creation is blocked, say so. Work on a new branch in place only if the current checkout is fresh; otherwise stop and report.
Install dependencies the way the project does and run its test suite before changing anything. Report pre-existing failures separately from your work.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
24 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./consulting-cross-modelUse when a hard technical decision remains ambiguous after inspecting relevant evidence and choosing incorrectly would cause meaningful rework/diagnosing-baspowersUse when a baspowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing", for the current session or a past one identified by id or path, on any harness.npx claudepluginhub basnijholt/baspowers --plugin baspowers