git-worktrees
Use before any command that changes branch state - git checkout -b, git switch -c, git worktree add - and when asked where a worktree goes, whether to branch…
Skill by carlosboeing
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/carlosboeing-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 and code. Checked Oct 26, 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/git-worktrees
What's inside
- Skill name
git-worktrees- Description
- Use before any command that changes branch state - git checkout -b, git switch -c, git worktree add - and when asked where a worktree goes, whether to branch in place, or how to recover a commit made on the wrong branch. States the cross-harness worktree path convention and the two corrections to superpowers:using-git-worktrees.
- License
- MIT
- Instructions
- 55 lines in SKILL.md · view on GitHub
Files (2)
- README.md
- SKILL.md
SKILL.md (first lines)
# Git worktrees Every harness uses one path convention: `<repo>/.worktrees/<harness>/<branch>`. Claude Code is included, and there is no native-tool exception. ## The path - Put worktrees inside the repository under `.worktrees/`, never in a sibling directory. - Verify `.worktrees/` is git-ignored first, with `git check-ignore -q .worktrees/`. - If the entry is missing, add it, create the worktree, then commit the entry from inside the new worktree rather than from the shared checkout. - Harness segment names: `codex`, `cursor`, `agy`, `kimi`, `grok`, `opencode`, `claude`. - Keep the branch name intact, slashes included. Branch `feat/foo` under Claude Code goes to `.worktrees/claude/feat/foo`, so `git worktree list` prints the branch name back to you. A nested working-memory repository has its own worktrees. `.workbench/` is a separate repository, and its worktrees go under `.workbench/.worktrees/<harness>/<branch>`. The outer repository's `git worktree list` reports nothing about them. ## When to create one Worktrees are for implementation, not for thinking. Brainstorm, discovery, design and plan work happens in the main checkout, with no branch and no worktree. At implementation, ask before the first command that changes branch state: "Worktree, or branch in place?" Do not decide silently in either direction. One case is not a question. If `git worktree list` prints more than one entry for the repository, another session is live in it. Creating a branch in one worktree does not move other worktrees' HEADs or discard their edits; each worktree has its own HEAD and its own uncommitted state. The rule stands for isolation: sessions that share one working tree interleave edits and branch switches in a tree none of them owns. Create the worktree and say why. ## Check for company first Run `git worktree list` before any branch command. Run `git -C .workbench worktree list` too, where that repository exists. ## Recover, do not discard If a commit goes to the wrong branch, confirm its content exists elsewhere before you drop it. Then rebase `--onto` the right base and push with `--force-with-lease`. ## Create one 1. Run `git fetch`, then `git worktree list`. 2. Confirm `.worktrees/` is ignored, as above. 3. Run `git worktree add -b <branch> .worktrees/<harness>/<branch> origin/main`, branching off `origin/main` rather than a local `main` that may have diverged. 4. Work, test, and commit from inside the new worktree. ## Harness notes | Harness | Rule | |---|---| | Claude Code | Manual convention. `EnterWorktree` is not used, because one path per harness beats two. | | Codex CLI, Gemini CLI / Antigravity, Kimi Code | Manual convention. | | Cursor | Manual convention, unless the project configures `worktree.json`. | | Grok Build TUI | Native session worktrees live under `~/.grok/worktrees/`. Manual worktrees use `.worktrees/grok/<branch>`. | An explicit worktree location in project instructions takes precedence over every rule in this skill. ## Seeing them in VS Code Set `git.detectWorktrees` to `true`, because it defaults to `false`. Each detected worktree then appears as its own repository in Source Control, and its uncommitted changes become diffable without a second window.
From carlosboeing/agentic-toolkit, MIT.
More from carlosboeing/agentic-toolkit
- 0.609score
start-planning
carlosboeing
Use when starting implementation planning from a design, including a fresh session and requests such as "write the plan from this design", "start planning…
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
start-implementation
carlosboeing
Use when starting implementation from an approved plan, whole or by one task, or direct small work from an execution-ready design or issue, including requests…
SkillAFreshness: A★ 3Claude Code +9 - 0.569score
schedule-resume
carlosboeing
Use when a scheduled or deferred coding-session continuation, usage or quota reset resume, cross-harness Claude/Agy/Codex/Kimi session resume, or…
SkillBFreshness: B★ 3Claude Code +9 - 0.564score
externalize-deliverable
carlosboeing
Derive a clean, client-facing version of an internal document by stripping company-side private information and writing a sendable copy to the project's…
SkillBFreshness: B★ 3Claude Code +9 - 0.560score
repo-standards
carlosboeing
Apply the repo house standard to any carlosboeing/* repo: check or fix community health files, pinned workflows, dependabot, and branch protection.
SkillBFreshness: B★ 3Claude Code +9 - 0.556score
oss-standards
carlosboeing
Alias for repo-standards --oss.
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
learn
carlosboeing
Explain a git diff, PR, file, folder, symbol, behaviour, or topic as a software-engineering lesson.
SkillBFreshness: B★ 3Claude Code +9 - 0.544score
penmark-comments
carlosboeing
Use when the user asks to review, audit, critique, or comment on a writable local Markdown file, including read-only, no-write, or chat-only reviews, or…
SkillBFreshness: B★ 3Claude Code +9 - 0.539score
capture-meeting
carlosboeing
Use when the user wants a meeting captured, processed, or filed into the repo — "capture today's meeting", "pull the Fathom recording", "process my meeting…
SkillBFreshness: B★ 3Claude Code +9 - 0.522score
briefing
carlosboeing
Use only when the user explicitly invokes /briefing, $briefing, or asks to run the briefing skill.
SkillBFreshness: B★ 3Claude Code +9 - 0.304score
housekeeping
carlosboeing
No description from the publisher yet.
SkillBFreshness: B★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 3, 2026 (26 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/carlosboeing/agentic-toolkit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from carlosboeing
- 0.609score
start-planning
carlosboeing
Use when starting implementation planning from a design, including a fresh session and requests such as "write the plan from this design", "start planning…
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
start-implementation
carlosboeing
Use when starting implementation from an approved plan, whole or by one task, or direct small work from an execution-ready design or issue, including requests…
SkillAFreshness: A★ 3Claude Code +9 - 0.569score
schedule-resume
carlosboeing
Use when a scheduled or deferred coding-session continuation, usage or quota reset resume, cross-harness Claude/Agy/Codex/Kimi session resume, or…
SkillBFreshness: B★ 3Claude Code +9 - 0.564score
externalize-deliverable
carlosboeing
Derive a clean, client-facing version of an internal document by stripping company-side private information and writing a sendable copy to the project's…
SkillBFreshness: B★ 3Claude Code +9 - 0.560score
repo-standards
carlosboeing
Apply the repo house standard to any carlosboeing/* repo: check or fix community health files, pinned workflows, dependabot, and branch protection.
SkillBFreshness: B★ 3Claude Code +9 - 0.556score
oss-standards
carlosboeing
Alias for repo-standards --oss.
SkillBFreshness: B★ 3Claude Code +9
Cite this page
git-worktrees skill. Agent Mart. https://agentmart.dev/skills/carlosboeing-git-worktrees (last updated 2026-10-24)