using-git-worktrees

Isolate feature work in a safe workspace before implementation plans run

Install

See the repository for setup

What it does

This skill governs how a coding agent sets up an isolated workspace before starting feature work or executing an implementation plan. It first checks whether isolation already exists by comparing the git directory against the common directory, and guards against mistaking a git submodule for a linked worktree. If isolation is present, it reports the location and branch state and skips creation. Otherwise it asks the user for consent unless a preference is already stated, then tries the platform's native worktree tool before falling back to manual git worktrees. In fallback mode it prefers a declared directory, then an existing .worktrees or worktrees folder, defaulting to .worktrees, and verifies the directory is git-ignored before creating. It then runs project setup (npm, cargo, pip, poetry, go) and a baseline test run, surfacing failures for the user to decide on. It suits developers using agent harnesses with worktree support. Limitations: manual creation may be blocked in sandboxes, in which case work continues in place.

Skill files

  • SKILL.md

Repository data

Stars
325,124
Last push
Nov 3, 2026
License
MIT
Archived
No

Tools similar to using-git-worktrees

FAQ

What license does using-git-worktrees use?
MIT
What files are included with using-git-worktrees?
SKILL.md

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/skills/using-git-worktrees"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options