Skip to content

Git worktree setup that detects existing isolation first, then prefers native harness tools before falling back to plain git.

CCM score
78 of 100
skills.sh installs
3.2K
GitHub stars
26.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating a fresh branch for new work or attaching a worktree to an existing branch, PR, or commit
  • Runs detection first by comparing resolved absolute git dirs, so it works in an existing linked worktree instead of nesting another one
  • Enforces one-branch-one-worktree rules, and creates a detached worktree for PRs only when fork-safe push tracking is not needed
  • Designed for agent harnesses that manage worktrees natively, with plain git worktree add as the fallback when no native tool exists

Install

$ npx -y skills add everyinc/compound-engineering-plugin --skill ce-worktree -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Worktree Isolation

Ensure the current work happens in an isolated workspace, without disturbing the user's main checkout. Most coding harnesses now create a worktree by default at session start, so the common case is that isolation already exists.

Done when: the caller is working in an isolated tree — existing or newly created — and its path and branch have been reported, or a blocker has been reported instead.

Order of operations: detect existing isolation -> prefer a native worktree tool -> fall back to plain git. Never create a worktree the harness cannot see.

Two modes, set by the caller's need:

Details

Repository
github.com/everyinc/compound-engineering-plugin
Categories
Git & Releases, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the ce-worktree skill do for Claude Code?

ce-worktree sets up isolated git worktrees so agent work happens away from your main checkout. It can create a fresh branch for new work, or attach a worktree to an existing branch, pull request, or commit, and it first checks whether isolation already exists.

How do I install the ce-worktree skill?

Run npx -y skills add everyinc/compound-engineering-plugin --skill ce-worktree -y inside your project. After that, the agent can set up isolated worktrees when you start separate work or isolate an existing ref.

Which skills lead ce-worktree in the Git and Releases category?

ce-worktree is in the Git and Releases category and ranks in the top 100 there. Other skills in the category include triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr.

Can ce-worktree check out a pull request for review?

Yes, for PRs it fetches the pull request head into a local branch and creates a worktree on that branch, so fix commits update the PR. If the ref is already checked out in another worktree, it reports that path instead of creating a second worktree.

More from everyinc/compound-engineering-plugin

All 32

Similar to Ce Worktree

More Git & Releases