using-git-worktrees

Create isolated git worktrees with automatic dependency installation.

Updated May 11, 2026
One-click install
npx skills add https://github.com/AvaTar-ArTs/my-supremepowers --skill using-git-worktrees-avatar-arts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/AvaTar-ArTs/my-supremepowers/tree/main/qwen_skills/superpowers-using-git-worktrees
Command: npx skills add https://github.com/AvaTar-ArTs/my-supremepowers --skill using-git-worktrees-avatar-arts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktrees are a powerful way to isolate feature work from the main workspace, preventing cross-branch contamination and accidental changes to the active branch.

Core Features & Use Cases

  • Directory-based isolation: automatically detects or prompts for a safe worktree directory (.worktrees or worktrees) and respects global rules.
  • Safety verification: checks gitignore status and ensures the worktree won't be committed to the repo.
  • Auto-setup: detects project type (Node.js, Rust, Python, Go) and runs appropriate setup commands to prepare the environment.
  • Shift between local/global: supports project-local and global worktree locations with proper safeguards.

Quick Start

Ask me to set up an isolated git worktree for your feature work, and I will select a safe directory, create the worktree, install dependencies as needed, and verify a clean baseline.

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?

To create an isolated Git worktree, the tool automatically detects a safe directory, creates the worktree, installs dependencies for your project type, and verifies a clean baseline to prevent cross-branch contamination.

What are Git worktrees used for in a development workflow?

Git worktrees provide directory-based isolation for feature work, preventing cross-branch contamination and accidental changes to the active branch by maintaining a separate working directory for each task.

Does Git worktree setup work with Node.js, Rust, Python, and Go projects?

Yes, Git worktree setup supports Node.js, Rust, Python, and Go projects by detecting the project type and running appropriate setup commands to automatically install dependencies and prepare the environment.

Why does Git worktree setup include safety verification for the worktree directory?

Safety verification checks the gitignore status to ensure the worktree directory won't be accidentally committed to the repository, keeping the worktree clean and preventing repository contamination.

Can I use a global directory instead of a project-local worktree location?

Yes, you can shift between project-local and global worktree locations with proper safeguards, allowing you to select a safe directory like .worktrees or worktrees while respecting global rules.