cm-git-worktrees

Create isolated Git worktrees with ignore verification and project setup.

48|23|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/tody-agent/codymaster --skill cm-git-worktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cm-git-worktrees
Source: https://github.com/tody-agent/codymaster/tree/main/skills/cm-git-worktrees
Command: npx skills add https://github.com/tody-agent/codymaster --skill cm-git-worktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating isolated git worktrees to safely run feature development without impacting the active workspace.

Core Features & Use Cases

  • Directory priority-based worktree discovery (.worktrees or worktrees) with automatic fallback
  • Safety verification to ensure worktrees are ignored by git to prevent accidental commits
  • Auto-detection of the current project and automatic project setup before switching contexts
  • Clear guidance for integrating with existing workflows (cm-planning, cm-execution) to coordinate changes

Quick Start

Run the cm-git-worktrees skill to establish an isolated git worktree for your current project and verify it’s ignored by git.

Frequently Asked Questions about cm-git-worktrees

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

FAQPage Schema
How do I create an isolated git worktree for feature development?

Git worktrees provide isolated branch workspaces, allowing you to run parallel tasks across multiple projects or experiment safely without impacting your active workspace. They enforce directory priority and run project setup checks before creation to ensure a clean environment for new features.

How do I prevent accidental commits when using git worktrees?

To prevent accidental commits in git worktrees, the skill performs safety verification to ensure the worktree directory is properly ignored by git. It checks your project setup and enforces ignore rules before creating the isolated workspace, safeguarding your main repository state.

Can I run parallel tasks across multiple projects using git worktrees?

Yes, you can run parallel tasks across multiple projects using git worktrees. The skill auto-detects your current project context and establishes isolated workspaces, allowing you to manage separate feature branches and experiments simultaneously without altering your primary workspace directory.

What is the best way to manage feature branches without altering my current workspace?

The best way to manage feature branches without altering your current workspace is using git worktrees with directory priority discovery. The skill automatically finds a .worktrees or worktrees folder, verifies git ignore status, and runs project setup to isolate your development context safely.