yurifrl/cly · Archived

git-worktrees

Manage git worktrees for parallel development. Use when user mentions worktrees, parallel branches, or working on multiple branches simultaneously.

First seen Apr 24, 2026

Installation

$ npx skills add yurifrl/cly --skill git-worktrees

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from yurifrl/cly · top by installs.

npx skills add yurifrl/cly

Browse all from yurifrl/cly

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,528 B
  • docs SUMMARY.md 168 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Git Worktrees

Work on multiple branches simultaneously without stashing or switching.

Worktree Location

All worktrees live in .worktrees/ at repo root.

project/
├── .worktrees/
│   ├── feat-auth/
│   └── fix-login/
└── (main working tree)

Naming Convention

Worktree folder matches branch name pattern:

Branch Worktree Folder
yurifrl/feat/auth .worktrees/feat-auth
yurifrl/fix/login-bug .worktrees/fix-login-bug
hotfix/urgent .worktrees/hotfix-urgent

Pattern: Take the last two segments, join with hyphen.

Commands

Create Worktree

# New branch
git worktree add .worktrees/<folder> -b <branch-name>

# Existing branch
git worktree add .worktrees/<folder> <existing-branch>

List Worktrees

git worktree list

Remove Worktree

git worktree remove .worktrees/<name>

Prune Stale

git worktree prune

Workflow

  • Create worktree for feature/fix work
  • Each worktree is independent (own node_modules, build cache, etc.)
  • Remove worktree when branch is merged
  • Run git worktree prune to clean up stale references

Tips

  • Worktrees share the same .git - commits are visible everywhere
  • Don't forget to install dependencies in new worktree