using-git-worktrees

Create isolated Git worktrees and verify workspace integrity.

7|1|Updated Mar 15, 2017
One-click install
npx skills add https://github.com/Henquewl/Hunter-X-Hunter-Greed-Island-MUD --skill using-git-worktrees-henquewl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/Henquewl/Hunter-X-Hunter-Greed-Island-MUD/tree/main/.opencode/skills/superpowers/skills/using-git-worktrees
Command: npx skills add https://github.com/Henquewl/Hunter-X-Hunter-Greed-Island-MUD --skill using-git-worktrees-henquewl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents workspace pollution and accidental commits by automating the creation of isolated Git worktrees, ensuring your primary branch remains clean while you develop new features.

Core Features & Use Cases

  • Automated Isolation: Detects existing workspaces and creates new ones only when necessary, preventing nested worktree errors.
  • Safety Guardrails: Automatically verifies that worktree directories are ignored by Git to prevent accidental tracking of build artifacts.
  • Use Case: When you need to start a new feature branch but want to keep your current environment untouched, this skill sets up a dedicated, isolated directory and runs the necessary dependency installation commands for you.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for my 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 create an isolated Git worktree for feature development?

You create an isolated Git worktree by having the skill detect your repository state and apply native or fallback creation methods to set up a dedicated feature branch directory, keeping your primary workspace untouched.

Why do I need to isolate my Git workspace when starting a new feature branch?

Isolating your Git workspace prevents workspace pollution and accidental commits, ensuring your primary branch remains clean while you develop new features in a separate directory.

What's the best way to prevent nested worktree errors in Git?

Prevent nested worktree errors by detecting existing workspaces and creating new ones only when necessary, applying fallback worktree creation methods based on your project configuration.

How do I ensure Git worktree directories are not accidentally tracked?

Ensure Git worktree directories are not accidentally tracked by using safety guardrails that automatically verify worktree directories are ignored by Git to prevent tracking build artifacts.

Does setting up a Git worktree automatically install dependencies?

Setting up a Git worktree through this skill does automatically install dependencies and runs baseline test verification to ensure workspace integrity before you begin development.

Can I use automated worktree creation without disrupting my current development environment?

Yes, automated worktree creation sets up a dedicated, isolated directory while running necessary dependency installation commands, keeping your current development environment untouched and fully functional.