wz:using-git-worktrees

Create and manage Git worktrees for isolated feature development.

3|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/MohamedAbdallah-14/Wazir --skill wz-using-git-worktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wz:using-git-worktrees
Source: https://github.com/MohamedAbdallah-14/Wazir/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/MohamedAbdallah-14/Wazir --skill wz-using-git-worktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams and developers isolate feature work by automatically creating and managing dedicated Git worktrees, preventing accidental changes to the main workspace and enabling parallel development without branch switching.

Core Features & Use Cases

  • Directory selection and safety verification: prioritizes existing worktree directories, respects .gitignore settings, and validates safety before creating a new worktree.
  • Project-aware setup: detects the current project name and establishes a structured workspace layout for multiple branches.
  • Workflow guardrails: enforces consistent steps for creating, using, and pruning worktrees, reducing risk of accidental commits to the wrong scope.
  • Use cases include starting feature development in isolation, performing experiments on separate branches, and maintaining clean baselines for testing.

Quick Start

Create an isolated worktree for your current feature branch and start developing without touching the main workspace.

Frequently Asked Questions about wz:using-git-worktrees

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

FAQPage Schema
How do I create Git worktrees for parallel feature development without switching branches?

Git worktrees enable parallel feature development by creating dedicated workspace directories for each branch. This isolates changes and prevents accidental commits to the main workspace without requiring branch switching.

What is the safest way to manage Git worktrees for isolated feature branches?

Safe Git worktree management requires enforcing sanity checks, respecting .gitignore settings, and validating directory selection before creation. This prevents accidental commits and maintains clean baselines by applying consistent workflow guardrails.

How do I prevent accidental commits to the wrong branch when using Git worktrees?

Prevent accidental commits to the wrong branch by using Git worktrees with enforced workflow guardrails. This skill establishes isolated workspaces with safety checks and directory selection priorities, reducing the risk of committing to the wrong scope.

Does Git worktree creation respect .gitignore settings and existing directory structures?

Git worktree creation respects .gitignore settings and existing directory structures. This skill prioritizes existing worktree directories and validates safety before creating a new worktree, ensuring ignored directories are properly excluded.

When do I need to use Git worktrees for branch isolation during development?

You need Git worktrees when starting feature development in isolation, performing experiments on separate branches, or maintaining clean baselines for testing. Worktrees enable parallel work on multiple branches without touching the main workspace.

Can I set up a project-aware Git worktree layout for multiple branches?

You can set up a project-aware Git worktree layout for multiple branches. This skill detects the current project name and establishes a structured workspace layout, applying automated setup steps to reliably establish isolated workspaces.