using-git-worktrees

Creates isolated git worktrees for feature work while verifying gitignore rules.

91|4|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/prime-radiant-inc/serf --skill using-git-worktrees-prime-radiant-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/prime-radiant-inc/serf/tree/main/agent/skills/using-git-worktrees
Command: npx skills add https://github.com/prime-radiant-inc/serf --skill using-git-worktrees-prime-radiant-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create isolated git worktrees for feature work without altering the current workspace.

Core Features & Use Cases

  • Directory priority: prefer .worktrees then worktrees, or CLAUDE.md preference, or prompt the user.
  • Safety verification: ensure ignored by git and auto-update .gitignore if needed, with baseline checks and reporting.
  • Auto-setup and cleanup guidance: detect project setup steps (npm, cargo, pip) and report readiness with location.

Quick Start

Create an isolated git worktree for a new feature branch and verify it is ignored by gitignore rules.

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 without affecting my current workspace?

To create an isolated git worktree without altering your current workspace, this skill coordinates project-local or global locations, respects CLAUDE.md preferences, and guides safety verification before creating the worktree.

What is the best way to ensure my git worktree directory is ignored by gitignore rules?

To ensure your git worktree directory is ignored, this skill enforces gitignore verification for project-local worktrees and automatically updates your .gitignore file if needed to maintain safety.

How do I set up project dependencies like npm or cargo automatically after creating a git worktree?

To set up project dependencies after creating a git worktree, this skill auto-detects project tooling needs such as npm, cargo, or pip, and reports the final worktree location and readiness.

Can I use CLAUDE.md preferences to define where my git worktrees are stored?

Yes, you can use CLAUDE.md preferences to define git worktree storage locations. The skill respects existing CLAUDE.md configurations, otherwise preferring the .worktrees or worktrees directories.

Does creating a git worktree for feature work require manual gitignore configuration?

Creating a git worktree does not require manual gitignore configuration because the skill performs baseline safety checks and auto-updates .gitignore rules to ensure the worktree directory is properly ignored.