amia-git-worktree-operations

Create, list, and remove isolated Git worktrees with one-branch-per-worktree enforcement.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Emasoft/ai-maestro-integrator-agent --skill amia-git-worktree-operations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: amia-git-worktree-operations
Source: https://github.com/Emasoft/ai-maestro-integrator-agent/tree/main/skills/amia-git-worktree-operations
Command: npx skills add https://github.com/Emasoft/ai-maestro-integrator-agent --skill amia-git-worktree-operations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Coordinate and operate multiple Git worktrees in parallel with strict isolation to prevent cross-branch contamination and ensure safe cleanup.

Core Features & Use Cases

  • Create, list, and remove per-worktree worktrees without touching the main repository.
  • Enforce one-branch-per-worktree, verify isolation, and serialize dangerous git operations.
  • Use in scenarios like PR reviews, feature development, and testing across multiple branches in parallel.

Quick Start

Spin up a dedicated worktree for a PR and verify isolation before making changes.

Frequently Asked Questions about amia-git-worktree-operations

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

FAQPage Schema
How do I manage multiple Git worktrees in parallel without cross-branch contamination?

You can manage multiple Git worktrees in parallel by using scripts that enforce strict isolation, ensuring one branch per worktree and preventing cross-branch contamination. This coordinates isolated feature development without affecting the main repository.

What is the best way to set up an isolated worktree for a PR review?

The best way to set up an isolated worktree for a PR review is to use a dedicated script that creates a per-worktree environment and verifies isolation before you make changes. This safely isolates PR reviews from the main repository.

How does Git worktree isolation prevent changes to the main repository?

Git worktree isolation prevents changes to the main repository by enforcing a one-branch-per-worktree rule and serializing dangerous git operations. This strict isolation ensures parallel feature development and testing never affect the main repo.

Can I automate safe cleanup and removal of Git worktrees after testing?

Yes, you can automate safe cleanup and removal of Git worktrees after testing by using provided scripts to remove, list, and validate isolation. This enforces safe cleanup protocols without risking the main repository.

Does this Git worktree approach require any special dependencies or environments?

No, this Git worktree approach requires no special dependencies. It provides standalone scripts and references to create, validate, and remove worktrees, making it accessible for standard DevOps and PR-workflow automation environments.

Why should I use parallel worktrees instead of git stash for feature development?

You should use parallel worktrees instead of git stash because worktrees provide strict isolation for each feature branch, allowing simultaneous development and testing. This prevents the context switching and potential conflicts common with stashing.