ce-worktree

Create isolated git worktrees with environment copies and branch-aware safety rules.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-worktree-diestok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-worktree
Source: https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026/tree/main/.agents/skills/compound-engineering/skills/ce-worktree
Command: npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-worktree-diestok

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, mise, direnv, and includes scripts (resource) components.

What problem does it solve?

Creates isolated git worktrees under .worktrees/<branch> with branch-specific setup that git worktree add alone does not handle.

Core Features & Use Cases

  • Copies environment files (.env, .env.local, .env.test, etc.) from the main repository, skipping .env.example
  • Trusts mise/direnv configs with branch-aware safety rules and updates .gitignore to include .worktrees
  • Does not modify the main repository checkout; the new worktree is created from a fetched base branch without checkout

Quick Start

Create a new branch-specific worktree under .worktrees by running the worktree-manager script.

Frequently Asked Questions about ce-worktree

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

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

A git worktree is an isolated working directory linked to your main repository that allows parallel development on different branches. This Skill automates creating worktrees by copying environment files and applying branch-aware safety rules for dev tools like mise and direnv.

Does creating a git worktree copy my .env files automatically?

Yes, creating a git worktree with this Skill automatically copies environment files like .env, .env.local, and .env.test from the main repository into the new worktree, skipping .env.example to ensure your local secrets and configurations are immediately available.

How do I safely trust mise and direnv configurations when adding a new git worktree?

You can safely trust mise and direnv configurations by using branch-aware safety rules that selectively auto-trust these dev tools based on the specific branch. This ensures deterministic creation and prevents unauthorized configurations from running in your isolated worktree.

Can I work on a PR review without checking out the branch in my main repository?

Yes, you can review PRs without modifying your main repository checkout. This Skill fetches the base branch and prepares a dedicated git worktree under .worktrees, allowing you to review code in an isolated environment while your primary working directory remains untouched.