Use this skill whenever a task involves running parallel work on a git repository without conflicts — e.g. "fix this bug while I keep working on my feature", "run Claude on two branches at once", "work on this task in isolation", "create a throwaway branch for this experiment", or anything where two agents or sessions might edit the same files. Also trigger when the user asks to use worktrees directly, or when an agent needs its own isolated checkout so it can work without disturbing the main…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Git Worktree Skill
Git worktrees let you check out multiple branches of the same repository into
separate directories simultaneously. Each directory is a fully independent
working tree — its own HEAD, index, and files — but all share the same `.git`
history and objects, so they stay lightweight.
Use this skill to give each agent or parallel task its own isolated workspace.
---
## When to reach for worktrees
- Two or more agents might edit the same files simultaneously
- A task should not disturb the current branch's working state
- You need a throwaway sandbox that can be discarded cleanly if things go wrong
- The user asks to work on multiple features or fixes in parallel
- You want to run tests on one branch while editing another
---
## Core commands
### Create a worktree
```bash
# New branch from current HEAD
git worktree add ../my-task -b my-task-branch
# From a specific commit or existing branch
git worktree add ../hotfix -b hotfix origin/main
# Detached HEAD (no branch)
git worktree add --detach ../scratch HEAD
# Empty worktree on an unborn branch (blank slate)
git worktree add --orphan ../experiment -b experiment
```
…
The line at the top of this page pins the label git:20260612.89eb1c8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_ogfxub5py3vacd3u
GET https://markdownregistry.com/api/v1/resolve?ref=siva01c/claude-plugins/git-worktree
GET https://markdownregistry.com/api/v1/blob/2d2cc75e0ee68598a5b4362b037daed3ec9a349c33310da057d8cfd1f74c80d2
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
siva01c/claude-plugins · cicd-tools/skills/github-actions/SKILL.md · Use this skill when authoring or debugging GitHub Actions workflows (.github/workflows/*.yml) — e.g. "add CI for this…
siva01c/claude-plugins · cicd-tools/skills/gitlab-ci/SKILL.md · Use this skill when authoring or debugging GitLab CI/CD pipelines (.gitlab-ci.yml) — e.g. "add a CI pipeline for this…
siva01c/claude-plugins · ddev-tools/skills/drupal-ddev-operations/SKILL.md · Use for operational Drupal 11 workflows in DDEV environments, including safe updates, backup-first procedures, and…
siva01c/claude-plugins · docker-tools/skills/docker-compose/SKILL.md · Use this skill when authoring or editing Docker Compose files (compose.yaml / docker-compose.yml), running…
siva01c/claude-plugins · docker-tools/skills/docker-model/SKILL.md · Use this skill when running local AI models with Docker Model Runner — the `docker model` CLI — e.g. "run an LLM…
siva01c/claude-plugins · drupal-dev-tools/skills/drupal-module-development/SKILL.md · Use when creating or extending Drupal 11 custom modules, including scaffolding, service architecture, and dependency…
siva01c/claude-plugins · drupal-dev-tools/skills/drupal-security-review/SKILL.md · Use when auditing Drupal 11 custom modules/themes for security issues such as unsafe input handling, XSS risks, SQL…
siva01c/claude-plugins · quality-tools/skills/dry/SKILL.md · DRY (Don't Repeat Yourself) review rules for code reviews: find the same knowledge — a rule, a constant, a parser, a…
siva01c/claude-plugins · quality-tools/skills/solid/SKILL.md · SOLID design review rules (SRP, OCP, LSP, ISP, DIP) for code reviews: what counts as a real design finding, what is…
davidondrej/skills · skills/agent-orchestration/git-worktree/SKILL.md · Use Git worktrees to isolate parallel coding tasks. Use when setting up a task checkout, working in a shared repo, or…
iliaal/ai-skills · skills/git-worktree/SKILL.md · Manage Git worktrees for isolated parallel development. Use when creating, listing, switching, or cleaning up git…
jikig-ai/soleur · plugins/soleur/skills/git-worktree/SKILL.md · This skill should be used when managing Git worktrees for isolated parallel development. It handles creating, listing…
wan-huiyan/agent-traffic-control · plugins/agent-traffic-control/skills/git-worktree/SKILL.md · Create, list, switch and clean up git worktrees — a second isolated checkout for parallel work
or a pull request…