using-git-worktrees

Create isolated git worktrees for concurrent feature development.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/otto-poblysh/pedagemy-early-access --skill using-git-worktrees-otto-poblysh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/otto-poblysh/pedagemy-early-access/tree/main/.agents/skills/using-git-worktrees
Command: npx skills add https://github.com/otto-poblysh/pedagemy-early-access --skill using-git-worktrees-otto-poblysh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents messy local branches and accidental commits by creating isolated git workspaces for feature work without constantly switching branches.

Core Features & Use Cases

  • Isolated Workspaces: Creates git worktrees that share the same repository while keeping changes separated.
  • Deterministic Directory Selection: Chooses a project-local or preferred directory based on existing folders, CLAUDE.md preference, or an explicit user choice.
  • Safety Guardrails: Verifies project-local worktree directories are ignored via git check-ignore before creating them, and runs a clean test baseline to confirm the workspace is ready.

Quick Start

Ask the assistant to start using the using-git-worktrees skill to create a new isolated worktree for your next feature branch.

Frequently Asked Questions about using-git-worktrees

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I isolate feature development work without switching git branches?

Git worktrees let you isolate feature development by creating separate working directories from the same repository, preventing messy local branches and accidental commits while keeping changes safely separated.

What's the best way to manage concurrent feature branches in a single git repository?

Managing concurrent feature branches is best handled by creating isolated git worktrees, allowing you to run tasks in separate directories without affecting your current working directory or constantly switching branches.

How do I set up a deterministic directory for a new git worktree?

Deterministic directory selection for a new git worktree is achieved by choosing a project-local folder, checking CLAUDE.md preferences, or prompting for explicit user input to ensure a consistent workspace setup.

Does git worktree creation verify that project-local directories are safely ignored?

Yes, git worktree creation verifies project-local directories are ignored using git check-ignore before creating them, ensuring the workspace setup does not accidentally track isolated feature work in your main repository.

Why run a baseline test verification after creating an isolated git workspace?

Baseline test verification runs after creating an isolated git workspace to confirm the feature branch environment is clean, safe, and fully ready for implementation before you begin modifying any code.

Can I use git worktrees for implementation plans that require workspace separation?

Git worktrees are ideal for implementation plans requiring workspace separation, applying when you need to isolate feature work, run tasks independently, and keep changes safely detached from your current working directory.