marsai:using-git-worktrees

Create isolated git worktrees with safety checks and baseline verification.

2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/V4-Company/marsai --skill marsai-using-git-worktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: marsai:using-git-worktrees
Source: https://github.com/V4-Company/marsai/tree/main/default/skills/using-git-worktrees
Command: npx skills add https://github.com/V4-Company/marsai --skill marsai-using-git-worktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolated workspace creation for parallel feature development without disrupting main branches.

Core Features & Use Cases

  • Directory selection priority: existing .worktrees or worktrees, CLAUDE.md preferences, or user prompts.
  • Safety verification: verify .gitignore for project-local worktrees before creation.
  • Automatic setup: detect project type and install dependencies as needed, then verify a clean baseline.

Quick Start

Create an isolated git worktree for a new feature, perform safety checks, and verify a clean baseline.

Frequently Asked Questions about marsai:using-git-worktrees

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

FAQPage Schema
How do I create isolated git worktrees for parallel feature development?

To create isolated git worktrees for parallel feature development, you can use a tool that verifies .gitignore for project-local worktrees, follows a directory-priority policy, and runs automatic setup and baseline tests.

What is the best way to manage multiple git branches without disrupting the main workspace?

Git worktrees provide isolated workspaces for parallel feature development, allowing you to manage multiple branches simultaneously without disrupting the main branch or requiring multiple full repository clones.

How does directory selection priority work when setting up git worktrees?

Directory selection for git worktrees prioritizes existing .worktrees or worktrees directories, then checks CLAUDE.md preferences, and finally prompts the user if no default location is found.

Do I need to update .gitignore before creating project-local worktrees?

Yes, you need safety verification of .gitignore for project-local worktrees before creation to ensure the isolated workspaces are properly ignored and do not disrupt your main repository tracking.

Can I automatically install dependencies and verify a clean baseline in a new worktree?

Yes, automatic setup detects the project type, installs dependencies as needed, and verifies a clean baseline after creating the isolated git worktree to ensure the environment is ready.

When should I use git worktrees instead of cloning a repository for branch isolation?

Git worktrees are ideal when you need isolated workspaces for parallel feature development without the overhead of cloning, providing a lightweight alternative for managing multiple branches.