using-git-worktrees
Use when isolation may materially improve feature work; preserve existing isolation and repository preferences.
Skill by BB-84C
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bb-84c-using-git-worktrees
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/using-git-worktrees
What's inside
- Skill name
using-git-worktrees- Description
- Use when isolation may materially improve feature work; preserve existing isolation and repository preferences.
- License
- MIT
- Instructions
- 69 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Using Git Worktrees ## Decide from context first Before asking or acting, inspect the current context: direct instructions, project instructions, and durable memory for branch or worktree preferences. If a preference exists, follow it without reopening the decision. Do not embed a particular user's local repository policy in this shared skill. If no preference exists, decide whether isolation materially changes the workflow: concurrent work, risky refactors, a protected current checkout, or harness-managed workspace lifecycle may make it valuable. Ask once only when isolation materially changes the workflow. A plan does not automatically require a worktree; a bounded change may safely proceed in the current checkout when isolation adds no material benefit. ## Detect existing isolation Before creating anything, inspect existing isolation: ```bash GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P) GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P) git rev-parse --show-superproject-working-tree 2>/dev/null ``` `GIT_DIR != GIT_COMMON` indicates a linked worktree only when the checkout is not a submodule. Reuse an existing isolated checkout rather than nesting one. Record its path and branch or detached state before work begins. ## Create isolation when chosen Prefer native worktree tools when the harness provides them; they manage workspace lifecycle, branch state, and cleanup that raw Git cannot see. Use the harness's native worktree tools before falling back to `git worktree add`. When native support is unavailable and the context calls for a manual worktree: 1. Honor an explicit directory preference. Otherwise reuse `.worktrees/` or `worktrees/` if present; if neither exists, default to `.worktrees/` at the project root. 2. Set `LOCATION` to that final chosen directory, then verify that exact project-local directory is ignored before creation. An ignored sibling does not authorize the selected directory: ```bash git check-ignore -q "$LOCATION" ``` 3. If it is not ignored, stop and surface the repository-state change required before creating a worktree. Do not silently pollute version control. 4. Create the branch and worktree only after the context preference or the focused isolation decision authorizes it: ```bash git worktree add "$LOCATION/$BRANCH_NAME" -b "$BRANCH_NAME" ``` If the harness blocks creation, report the limitation and follow the chosen in-place workflow rather than fighting the environment. ## Setup and baseline Run only the setup and baseline verification needed for the project and the requested work. Reuse a trustworthy existing baseline when its relevant state has not changed; otherwise run the focused project command that establishes the starting condition. Distinguish a pre-existing failure from a new regression before attributing it to the requested change. ## Safety reminders - Do not create a nested worktree inside existing isolation. - Do not bypass native lifecycle tools with raw Git when native support exists. - Do not create a project-local worktree before ignore safety is established. - Do not turn a missing preference into repeated consent questions. - Do not treat every plan as evidence that isolation is required.
From BB-84C/superpowers-lite, MIT.
More from BB-84C/superpowers-lite
- 0.499score
using-superpowers
BB-84C
Consult directly matching task playbooks before substantial design, debugging, implementation, review, or completion work without forcing full workflow…
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
subagent-driven-development
BB-84C
Consult before delegating implementation when an approved plan benefits from worker context isolation and durable coordination.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
brainstorming
BB-84C
Use for genuinely open, load-bearing product or architecture decisions after inspecting the project.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
writing-skills
BB-84C
Use when creating, revising, validating, or deploying a reusable agent skill.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
systematic-debugging
BB-84C
Consult before attempting a fix when root cause or behavior is unclear, failures repeat, components interact, or guessing would be unsafe.
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
executing-plans
BB-84C
Use when a written plan needs coordinated inline execution.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
requesting-code-review
BB-84C
Use independent review at meaningful semantic or risk boundaries and before substantive whole-change closeout.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
dispatching-parallel-agents
BB-84C
Use when parallel workers have a net benefit over coordinated sequential work.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
finishing-a-development-branch
BB-84C
Use when a real branch, integration, or discard decision needs an authorized closeout.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
verification-before-completion
BB-84C
Consult before making a substantive completion claim; require current trustworthy evidence and semantic acceptance.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
writing-plans
BB-84C
Consult when multi-round implementation, context compaction, or worker handoff requires a durable execution contract.
SkillCFreshness: C★ 1Claude Code +9 - 0.486score
receiving-code-review
BB-84C
Consult after receiving review feedback and before implementation when the feedback needs evidence-based evaluation.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jul 12, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/BB-84C/superpowers-lite
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from BB-84C
- 0.499score
subagent-driven-development
BB-84C
Consult before delegating implementation when an approved plan benefits from worker context isolation and durable coordination.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
using-superpowers
BB-84C
Consult directly matching task playbooks before substantial design, debugging, implementation, review, or completion work without forcing full workflow…
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
brainstorming
BB-84C
Use for genuinely open, load-bearing product or architecture decisions after inspecting the project.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
writing-skills
BB-84C
Use when creating, revising, validating, or deploying a reusable agent skill.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
systematic-debugging
BB-84C
Consult before attempting a fix when root cause or behavior is unclear, failures repeat, components interact, or guessing would be unsafe.
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
executing-plans
BB-84C
Use when a written plan needs coordinated inline execution.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
using-git-worktrees skill. Agent Mart. https://agentmart.dev/skills/bb-84c-using-git-worktrees (last updated 2026-10-24)