git-worktree

Create and manage isolated Git worktrees for AI development tasks.

22|2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/tmchow/tmc-marketplace --skill git-worktree-tmchow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/tmchow/tmc-marketplace/tree/main/plugins/iterative-engineering/skills/git-worktree
Command: npx skills add https://github.com/tmchow/tmc-marketplace --skill git-worktree-tmchow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures AI development happens in an isolated git workspace to prevent conflicts with the main repository and human workflows.

Core Features & Use Cases

  • Syncs with the remote repository and detects current git state to decide on workspace management.
  • Creates and manages feature-specific worktrees or branches to isolate changes during iterative work.
  • Verifies readiness and reports the active branch and directory to confirm isolation.

Quick Start

Prompt the AI to initialize an isolated worktree for your current feature branch.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I isolate AI workspace changes from my main git repository?

Git worktrees isolate AI workspace changes by creating a separate working directory linked to your main repository, preventing conflicts during iterative development. This feature-specific worktree branches changes so they don't disrupt the main branch.

What's the best way to manage feature branches for AI development without causing conflicts?

Managing feature branches with git worktrees provides workspace isolation by syncing with the remote repository and creating dedicated worktrees for each task, ensuring AI development happens separately from human workflows and avoiding branch conflicts.

When do I need to set up git worktree branch management for iterative implementing tasks?

Git worktree branch management is needed at the start of iterative implementing tasks and spike workflows to ensure workspace isolation. It detects current git state and creates feature-specific worktrees to prevent conflicts during AI-assisted development.

Does git worktree workspace isolation sync with the remote repository automatically?

Git worktree workspace isolation includes remote synchronization, syncing with the remote repository and detecting current git state to decide on workspace management before creating and verifying the active branch and directory.

How do I verify that my git worktree is ready and properly isolated?

Verify git worktree readiness through the built-in verification step, which reports the active branch and directory to confirm workspace isolation is correctly established and the feature-specific branch is active.