Skip to content
Agentmart
Submit a tool

git-worktree

Manage Git worktrees for isolated parallel development.

Skill by sammyjoyce

IndexedMIT
Write a review

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/sammyjoyce-git-worktree

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.

We use your email only for this newsletter. Privacy

About

Manage Git worktrees for isolated parallel development. Use when you want a clean branch/worktree without stashing or when reviewing in isolation.

No 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
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/git-worktree

What's inside

Skill name
git-worktree
Description
Manage Git worktrees for isolated parallel development. Use when you want a clean branch/worktree without stashing or when reviewing in isolation.
License
MIT
Instructions
54 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • worktree-manager.sh · scripts/

SKILL.md (first lines)

# Git Worktree Manager

This skill ships a helper script:
- `scripts/worktree-manager.sh`

It wraps `git worktree` and also:
- keeps worktrees under `.worktrees/`
- copies common `.env*` files from the main repo into new worktrees
- ensures `.worktrees/` is in `.gitignore`

## Usage

### Create a worktree

```bash
bash scripts/worktree-manager.sh create <branch-name> [from-branch]
```

Example:

```bash
bash scripts/worktree-manager.sh create feat-login main
```

### List worktrees

```bash
bash scripts/worktree-manager.sh list
```

### Switch (prints target path)

```bash
bash scripts/worktree-manager.sh switch <branch-name>
```

### Copy env files into an existing worktree

```bash
bash scripts/worktree-manager.sh copy-env <branch-name>
```

### Cleanup inactive worktrees

```bash
bash scripts/worktree-manager.sh cleanup
```

## Notes

- Prefer using this script instead of calling `git worktree add` directly.
- If your default branch is not `main`, pass it explicitly as `from-branch`.

From sammyjoyce/pi-compound-engineering, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Feb 10, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sammyjoyce

Cite this page

git-worktree skill. Agent Mart. https://agentmart.dev/skills/sammyjoyce-git-worktree (last updated 2026-10-24)