Skip to content
Back to skills

Using Git Worktrees

ASecurity

Use an isolated Git worktree when the current tree is dirty, parallel work is active, or branch isolation reduces risk.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 19, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add voyager67/Agent-Workbench --skill using-git-worktrees --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Using Git Worktrees?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Using Git Worktrees
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/voyager67-using-git-worktrees/badge)](https://www.skillsdirectory.com/skills/voyager67-using-git-worktrees)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: using-git-worktrees
description: Use an isolated Git worktree when the current tree is dirty, parallel work is active, or branch isolation reduces risk.
---

# Using Git Worktrees

1. Inspect repository state, branch, untracked files, and local instructions. Never assume the current tree is disposable.
2. Choose the intended base and a descriptive branch/worktree path outside tracked project directories where practical.
3. Create the worktree and run the repository's documented setup and baseline checks.
4. Keep worktree ownership clear. Do not have two agents edit the same files or operate on the same branch concurrently.
5. Do not copy secrets, local environment files, credentials, or generated state into the worktree.
6. Before handoff, inspect status and diff, run relevant checks, and document the branch and worktree path.
7. Remove a worktree only when the user requested cleanup or it was created for this task and removal is clearly safe.

If the tool or environment does not support worktrees, continue in the current tree with stricter change isolation and say so. Never delete untracked user data.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.