move-to-worktree
CommunityIsolate feature branches into .worktrees
Authoraxel-kaliff
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Keeps the project root checked out on master while moving feature work into isolated worktrees, preventing accidental development in the repository root and simplifying branch isolation.
Core Features & Use Cases
- Move checked-out branch into .worktrees: Detaches HEAD, creates a worktree for the existing branch under .worktrees, and checks out master in the project root.
- Safety checks and repository hygiene: Refuses to run when on master/main, when HEAD is detached, when there are uncommitted changes, or when the target path already exists, and ensures .worktrees is added to .gitignore.
- Nested path support: Accepts a nested subdirectory path (e.g., logging/refactor-logging) and creates parent directories automatically for organized worktree placement.
Quick Start
Move the current branch into a .worktrees subdirectory named logging/refactor-logging so the project root remains on master.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: move-to-worktree Download link: https://github.com/axel-kaliff/dotfiles/archive/main.zip#move-to-worktree Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.