git-worktrees
Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing…
Skill by NeoLabHQ
Chalk Labs
Need help deploying git-worktrees?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/neolabhq-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
Use cases: testing, productivity
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 when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing implementations across branches - provides git worktree commands and workflow patterns for parallel development with multiple working directories.
- License
- GPL-3.0
- Instructions
- 1,359 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 1359 lines (spec recommends under 500)
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# Git Worktrees ## Overview Git worktrees enable checking out multiple branches simultaneously in separate directories, all sharing the same repository. Create a worktree instead of stashing changes or cloning separately. **Core principle:** One worktree per active branch. Switch contexts by changing directories, not branches. ## Core Concepts | Concept | Description | |---------|-------------| | **Main worktree** | Original working directory from `git clone` or `git init` | | **Linked worktree** | Additional directories created with `git worktree add` | | **Shared `.git`** | All worktrees share same Git object database (no duplication) | | **Branch lock** | Each branch can only be checked out in ONE worktree at a time | | **Worktree metadata** | Administrative files in `.git/worktrees/` tracking linked worktrees | ## Quick Reference | Task | Command | |------|---------| | Create worktree (existing branch) | `git worktree add <path> <branch>` | | Create worktree (new branch) | `git worktree add -b <branch> <path>` | | Create worktree (new branch from ref) | `git worktree add -b <branch> <path> <start>` | | Create detached worktree | `git worktree add --detach <path> <commit>` | | List all worktrees | `git worktree list` | | Remove worktree | `git worktree remove <path>` | | Force remove worktree | `git worktree remove --force <path>` | | Move worktree | `git worktree move <old> <new>` | | Lock worktree | `git worktree lock <path>` | | Unlock worktree | `git worktree unlock <path>` | | Prune stale worktrees | `git worktree prune` | | Repair worktree links | `git worktree repair` | | Compare files between worktrees | `diff ../worktree-a/file ../worktree-b/file` | | Get one file from another branch | `git checkout <branch> -- <path>` | | Get partial file changes | `git checkout -p <branch> -- <path>` | | Cherry-pick a commit | `git cherry-pick <commit>` | | Cherry-pick without committing | `git cherry-pick --no-commit <commit>` | | Merge without auto-commit | `git merge --no-commit <branch>` | ## Essential Commands ### Create a Worktree ```bash # Create worktree with existing branch git worktree add ../feature-x feature-x # Create worktree with new branch from current HEAD git worktree add -b new-feature ../new-feature # Create worktree with new branch from specific commit git worktree add -b hotfix-123 ../hotfix origin/main # Create worktree tracking remote branch git worktree add --track -b feature ../feature origin/feature # Create worktree with detached HEAD (for experiments) git worktree add --detach ../experiment HEAD~5 ``` ### List Worktrees ```bash # Simple list git worktree list # Verbose output with additional details git worktree list -v # Machine-readable format (for scripting) git worktree list --porcelain ``` **Example output:** ``` /home/user/project abc1234 [main] /home/user/project-feature def5678 [feature-x] /home/user/project-hotfix ghi9012 [hotfix-123] ``` ### Remove a Worktree ```bash # Remove worktree (working directory must be clean) git worktree remove ../feature-x # Force remove (discards uncommitted changes) git worktree remove --force ../feature-x ``` ### Move a Worktree ```bash # Relocate worktree to new path git worktree move ../old-path ../new-path ``` ### Lock/Unlock Worktrees ```bash # Lock worktree (prevents pruning if on removable storage) git worktree lock ../feature-x git worktree lock --reason "On USB drive" ../feature-x # Unlock worktree git worktree unlock ../feature-x ``` ### Prune Stale Worktrees ```bash # Remove stale worktree metadata (after manual directory deletion) git worktree prune # Dry-run to see what would be pruned git worktree prune --dry-run
From NeoLabHQ/context-engineering-kit, GPL-3.0.
More from NeoLabHQ/context-engineering-kit
- 0.623score
write-tests
NeoLabHQ
Add missing test coverage for your local code changes by generating new test files (covers uncommitted and untracked changes, or the latest commit if…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
multi-agent-patterns
NeoLabHQ
Design multi-agent architectures for complex tasks.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
review-pr
NeoLabHQ
Review an existing GitHub pull request and post inline review comments on its diff.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
brainstorm
NeoLabHQ
Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
review-local-changes
NeoLabHQ
Review your local uncommitted working-tree changes (git diff plus untracked files) and return actionable improvement suggestions.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
load-pr-comments
NeoLabHQ
Use to load open/unresolved PR review comments then aggregate them as tasks in .specs/comments/*.md for parallel agents to fix.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
resolve-fixed-pr-comments
NeoLabHQ
Verify what PR review comments have been addressed (committed/pushed OR uncommitted local changes) and resolve the threads that are genuinely fixed or no…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
launch-sub-agent
NeoLabHQ
Launch an intelligent sub-agent with automatic model selection based on task complexity, specialized agent matching, Zero-shot CoT reasoning, and mandatory…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.620score
root-cause-tracing
NeoLabHQ
Use when errors occur deep in execution and you need to trace back to find the original trigger - systematically traces bugs backward through call stack…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.620score
git-notes
NeoLabHQ
Use when adding metadata to commits without changing history, tracking review status, test results, code quality annotations, or supplementing commit messages…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.618score
create-pr
NeoLabHQ
Create pull requests using GitHub CLI with proper templates and formatting
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.618score
actualize
NeoLabHQ
Reconcile the project's FPF state with recent repository changes
SkillBFreshness: B★ 1.8KClaude Code +9
Signals
- Stars
- 1,782
- Forks
- 163
- Open issues
- 7
- Last commit (this folder)
- Aug 26, 2026 (2 months ago)
- Last release
- Aug 26, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Website
- neolab.gitbook.io/cek
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.319score
git-worktrees
NeoLabHQ
Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.319score
git-worktrees
NeoLabHQ
Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing…
SkillBFreshness: B★ 1.8KClaude Code +9
More from NeoLabHQ
- 0.623score
brainstorm
NeoLabHQ
Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
multi-agent-patterns
NeoLabHQ
Design multi-agent architectures for complex tasks.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
review-pr
NeoLabHQ
Review an existing GitHub pull request and post inline review comments on its diff.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
write-tests
NeoLabHQ
Add missing test coverage for your local code changes by generating new test files (covers uncommitted and untracked changes, or the latest commit if…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
launch-sub-agent
NeoLabHQ
Launch an intelligent sub-agent with automatic model selection based on task complexity, specialized agent matching, Zero-shot CoT reasoning, and mandatory…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
load-pr-comments
NeoLabHQ
Use to load open/unresolved PR review comments then aggregate them as tasks in .specs/comments/*.md for parallel agents to fix.
SkillBFreshness: B★ 1.8KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get git-worktrees running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
git-worktrees skill. Agent Mart. https://agentmart.dev/skills/neolabhq-git-worktrees (last updated 2026-10-24)