ce-worktree

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

1|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/FFCfelps1/SGPPF_Maua --skill ce-worktree-ffcfelps1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-worktree
Source: https://github.com/FFCfelps1/SGPPF_Maua/tree/main/.gemini/skills/ce-worktree
Command: npx skills add https://github.com/FFCfelps1/SGPPF_Maua --skill ce-worktree-ffcfelps1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill creates an isolated git worktree for parallel feature work or PR review, keeping your main checkout intact.

Core Features & Use Cases

  • Worktree Creation: Easily create a worktree for parallel feature work or PR review without disturbing the main checkout.
  • Environment Setup: Copies environment files like .env, .env.local, etc., from the main repo to the worktree.
  • Dev Tool Trust: Trusts mise/direnv configurations for the worktree with branch-aware safety rules.
  • Worktree Management: Includes instructions for listing, removing, and switching to worktrees using git commands.

Quick Start

Create a new worktree for 'feat/new-feature' branch using: bash <CLAUDE_SKILL_DIR>/scripts/worktree-manager.sh create feat/new-feature

Frequently Asked Questions about ce-worktree

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

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

Run the worktree-manager script with the create command and your target branch name. This isolates the new branch in a separate git worktree for parallel feature development without disturbing your main checkout.

What is a git worktree and when do I need one for feature management?

A git worktree is a separate working directory linked to your main repository. You need one for feature management when isolating parallel development or PR review work without interfering with your mainline history.

Does this worktree setup copy environment files like .env from the main repo?

Yes, the worktree setup automatically copies environment files like .env and .env.local from the main repository to the new worktree directory, ensuring your parallel feature development environment matches your main checkout.

Can I use direnv or mise configurations with a new git worktree?

Yes, you can use direnv or mise configurations with a new git worktree. The setup automatically trusts these environment configurations using branch-aware safety rules to execute them securely.

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

The best way to manage multiple git worktrees for parallel branches is using standard git commands to list, switch to, and remove worktrees, keeping your mainline history clean while maintaining isolated feature environments.

Why should I use a git worktree instead of stashing changes to switch branches?

You should use a git worktree instead of stashing changes because it creates a fully isolated working directory for parallel feature development, avoiding interference with the main repository and maintaining a clean mainline history.