ce-worktree

Create isolated git worktrees for parallel feature development.

10|Updated Dec 13, 2016
One-click install
npx skills add https://github.com/vitallium/dotfiles --skill ce-worktree-vitallium
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-worktree
Source: https://github.com/vitallium/dotfiles/tree/main/dot_agents/skills/ce-worktree
Command: npx skills add https://github.com/vitallium/dotfiles --skill ce-worktree-vitallium

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Create an isolated git worktree for parallel feature development or PR reviews, keeping your main checkout untouched during intense experiments.

Core Features & Use Cases

  • Creates branch-specific worktrees with origin/<branch> or local ref
  • Copies .env* files and handles trust rules for dev tools
  • Keeps main checkout clean while you work on multiple tasks in parallel

Quick Start

Invoke the worktree-manager script to create a new worktree for your feature branch.

Frequently Asked Questions about ce-worktree

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

FAQPage Schema
How do I create an isolated git worktree for parallel feature development?

To create an isolated git worktree, the tool runs git worktree add inside a .worktrees directory, fetching your target branch from origin while keeping your main checkout completely untouched.

How do I copy environment files when setting up a new git worktree?

When setting up a new git worktree, the tool automatically copies .env* files from your main checkout into the new isolated branch directory to ensure your parallel development environment matches your base configuration.

Can I handle mise and direnv trust rules automatically in a new git worktree?

Yes, you can handle mise and direnv trust rules automatically because the tool applies branch-aware conditional trust configurations to dev tools immediately after creating the new worktree.

What is the best way to review a PR without altering my main git checkout?

The best way to review a PR without altering your main checkout is creating an isolated git worktree using a local ref or origin branch, allowing you to test changes independently in a separate directory.

Does git worktree branching work with local branches or only remote origin refs?

Git worktree branching works with both local refs and remote origin branches, allowing you to fetch the base branch from origin or checkout an existing local branch into the new isolated environment.