worktree

Create, list, and clean up Git worktrees for GitHub issues in a monorepo.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/rosinbum/usopc-athlete-support-agent --skill worktree-rosinbum
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/rosinbum/usopc-athlete-support-agent/tree/main/.claude/skills/worktree
Command: npx skills add https://github.com/rosinbum/usopc-athlete-support-agent --skill worktree-rosinbum

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of Git worktrees within a monorepo, automating the creation, listing, and cleanup of development environments tied to specific issues.

Core Features & Use Cases

  • Issue-Based Worktree Creation: Automatically sets up a new Git worktree for a given GitHub issue, including dependency installation.
  • Worktree Status Listing: Provides a clear overview of active worktrees, their associated branches, and their synchronization status with the main branch.
  • Automated Cleanup: Removes stale worktrees whose branches have been merged into the main branch, keeping the repository tidy.

Quick Start

Use the worktree skill to create a new worktree for issue number 42.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I automate git worktree creation for a specific issue in a monorepo?

To automate git worktree creation, this skill generates a new worktree for a given GitHub issue and automatically handles dependency installation. It validates the issue's existence and sets up the isolated development environment tied to that specific issue branch.

What is the best way to list active git worktrees and check their sync status?

Listing active git worktrees provides a clear overview of associated branches and their synchronization status with the main branch. This feature ensures you can monitor which development environments are up-to-date and which require merging or rebasing.

How can I clean up stale git worktrees after branches are merged?

Cleaning up stale git worktrees is handled by automated removal of environments whose branches have been merged into the main branch. This process validates branch merge status to keep your monorepo tidy and free of obsolete working directories.

Does this worktree management skill work without external dependencies?

Yes, the worktree management skill operates without external dependencies. It relies on internal scripts and references to handle issue-based worktree generation, status updates, and cleanup directly within your existing git and monorepo development workflow.

When do I need to use git worktrees for my development workflow?

You need git worktrees when managing multiple branches simultaneously in a monorepo without cloning the repository multiple times. Worktrees allow you to check out different branches into separate directories, streamlining issue-based development and context switching.