using-git-worktrees

Create and manage isolated git worktrees for parallel branch development.

1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/CC90210/CMO-Agent --skill using-git-worktrees-cc90210
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/CC90210/CMO-Agent/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/CC90210/CMO-Agent --skill using-git-worktrees-cc90210

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the issue of context switching overhead and workspace pollution by allowing you to work on multiple git branches simultaneously in isolated directories.

Core Features & Use Cases

  • Isolated Workspaces: Creates separate directory structures for different branches, preventing file conflicts and build artifacts from bleeding across tasks.
  • Safety Verification: Automatically checks for gitignore compliance to ensure worktree contents are never accidentally committed to the main repository.
  • Use Case: Use this when you need to start a new feature branch or experimental brand-voice test without interrupting your current work on the main branch.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for the new 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 work on multiple git branches at the same time without switching context?

Git worktrees enable parallel development by creating separate directory structures for different branches. This approach prevents workspace pollution and allows you to manage concurrent campaign tasks or experimental testing without interrupting your main branch workflow.

What is the best way to start a new feature branch without disrupting my current directory?

Using git worktrees provides an isolated workspace for the new feature branch. It automatically verifies directory safety by checking gitignore compliance, ensuring worktree contents are never accidentally committed to the main repository during development.

Can I run automated dependency installation and baseline tests in an isolated git workspace?

Yes, managing isolated git worktrees supports automated dependency installation and baseline test validation before task execution. This ensures complex project environments requiring strict workspace separation are fully configured for safe concurrent development.

Does setting up a git worktree check for gitignore compliance automatically?

Yes, the worktree creation process includes safety verification that automatically checks for gitignore compliance. This mechanism ensures that worktree contents are never accidentally committed to the main repository during your parallel development sessions.

When do I need isolated git workspaces for experimental testing?

You need isolated git workspaces when running experimental tests or concurrent campaign management that require strict workspace separation. Git worktrees prevent build artifacts and file conflicts from bleeding across tasks in complex project environments.

Why does my build output pollute other branches during parallel development?

Build artifacts bleed across tasks when working in a single directory. Git worktrees solve this context switching overhead by creating isolated directory structures for different branches, preventing file conflicts and maintaining clean workspace separation.