Using-Git-Worktrees

Create isolated Git worktrees for separate development tasks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/slapglif/swe-agent --skill using-git-worktrees-slapglif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Using-Git-Worktrees
Source: https://github.com/slapglif/swe-agent/tree/main/.swe/skills/using-git-worktrees
Command: npx skills add https://github.com/slapglif/swe-agent --skill using-git-worktrees-slapglif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of managing multiple development efforts within a single repository without constantly switching branches or polluting your main workspace. It ensures isolated, clean environments for feature work or implementation plans.

Core Features & Use Cases

  • Isolated Workspaces: Create separate Git worktrees for different tasks, sharing the same repository but with distinct working directories.
  • Smart Directory Selection: Automatically or interactively determine the best location for new worktrees, respecting project conventions.
  • Safety Verification: Integrates with .gitignore to prevent accidental commits of worktree contents, maintaining repository cleanliness.
  • Use Case: When starting a new feature, use this skill to create a dedicated worktree, ensuring your changes are isolated and don't interfere with other ongoing tasks or the main branch.

Quick Start

Use the Using-Git-Worktrees skill to set up an isolated workspace for a new feature branch named 'feature/my-new-feature'.