using-git-worktrees

Create isolated Git worktrees with safety checks and baseline tests.

4|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/alixex/aryxn --skill using-git-worktrees-alixex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/alixex/aryxn/tree/main/.agents/skills/using-git-worktrees
Command: npx skills add https://github.com/alixex/aryxn --skill using-git-worktrees-alixex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of isolated Git worktrees, ensuring a clean and safe development environment for new features or tasks, preventing accidental commits to the main codebase.

Core Features & Use Cases

  • Isolated Workspaces: Creates separate directories for working on different branches without disrupting your main working copy.
  • Smart Directory Selection: Prioritizes preferred locations (.worktrees/, worktrees/) or global configurations, asking the user when necessary.
  • Safety Verification: Automatically checks if project-local directories are ignored by Git before creating a worktree to prevent accidental tracking.
  • Automated Setup: Detects and runs project-specific setup commands (e.g., npm install, cargo build).
  • Baseline Testing: Verifies the new worktree starts from a clean state by running project tests.
  • Use Case: Before starting a new feature like "user authentication," you can use this skill to create a dedicated, isolated worktree for it, ensuring your main branch remains stable and clean.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for the 'feature/new-login' 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?▼

To create an isolated Git worktree, this skill automates directory selection, checks .gitignore rules for safety, and runs project-specific setup commands like npm install to establish a clean workspace.

What is the safest way to set up Git worktrees without accidental commits?▼

The safest way to set up Git worktrees is verifying .gitignore rules before creation. This skill automatically checks if preferred directories like .worktrees/ are ignored to prevent accidental tracking.

How do I run baseline tests in a new Git worktree before starting implementation?▼

To run baseline tests in a new Git worktree, this skill executes project tests immediately after automated setup. This verifies the worktree starts from a clean, stable state for branch work.

Can I use Git worktrees to manage concurrent branch work without disrupting my main working copy?▼

Yes, you can use Git worktrees to manage concurrent branch work. This skill creates separate directories for different branches, ensuring your main working copy remains stable and clean.

Does setting up a Git worktree automatically run project build commands like npm install?▼

Yes, setting up a Git worktree with this skill automatically detects and runs project-specific setup commands like npm install or cargo build, ensuring dependencies are ready in the isolated environment.