ce-worktree

Create isolated git worktrees for feature branches and PR reviews.

2|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/thisisryanswift/zellij-agent-tools --skill ce-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-worktree
Source: https://github.com/thisisryanswift/zellij-agent-tools/tree/main/.opencode/skills/ce-worktree
Command: npx skills add https://github.com/thisisryanswift/zellij-agent-tools --skill ce-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Provide isolated git worktrees to separate feature work from the main checkout.

Core Features & Use Cases

  • Create a dedicated worktree for a new feature or PR review from a base branch, leaving the main checkout untouched.
  • Copy environment files (.env*, excluding .env.example) into the new worktree and manage trusted dev-tool configurations to streamline local development.
  • Ensure the worktree directory is ignored by Git in the main repository and provide easy switchability between worktrees.

Quick Start

Create a new worktree for your feature branch using the provided ce-worktree script.

Frequently Asked Questions about ce-worktree

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

FAQPage Schema
How do I isolate feature work from my main git checkout?

You can isolate feature work from your main git checkout by creating a dedicated git worktree. This leaves the main repository untouched while allowing side-by-side development for experiments, bug fixes, or PR reviews.

What is the best way to manage multiple git branches for parallel development?

Managing multiple git branches for parallel development is best handled using isolated git worktrees. This approach provides separate directories for each branch, enabling side-by-side work without stashing or committing incomplete changes.

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

When creating a new git worktree, environment files like .env are automatically copied into the new directory. This excludes .env.example files to ensure your local development environment is immediately configured.

Does this git worktree workflow support mise and direnv?

Yes, this git worktree workflow supports mise and direnv. It automatically trusts these dev tools where safe, streamlining local development and managing trusted configurations within the newly created worktree.

Do I need git installed to use parallel worktrees for branch management?

Yes, you need git installed to use parallel worktrees for branch management. The skill also requires direnv and mise as dependencies to automatically manage environment files and trust dev tool configurations.

Why does creating a worktree leave my main repository untouched?

Creating a worktree leaves your main repository untouched because it fetches the base branch into a separate, isolated directory. This directory is automatically ignored by Git in the main repository, ensuring clean separation.