# ce-worktree

> Claude/Codex skill by [@everyinc](https://omgskills.com/library/everyinc/index.md) · 25k stars · Updated 2026-08-31

Set up isolated git worktrees — create a new branch for fresh work, or attach a worktree to an existing branch, PR, or commit. Use when starting isolated work or isolating an existing ref.

Tags: compound, engineering

## Install

```sh
git clone https://github.com/EveryInc/compound-engineering-plugin /tmp/compound-engineering-plugin && ln -s /tmp/compound-engineering-plugin/skills/ce-worktree ~/.claude/skills/ce-worktree
```

## From README

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: New work (default). No ref named — create a fresh branch from a base (trunk). This is what ce-work and ce-code-review use when the user picks the worktree option. Isolate an existing ref. The caller names a PR head, branch, or commit — attach the worktree to that ref instead of creating a new branch. A branch can be checked out in only one worktree at a time.

## Links

- HTML page: https://omgskills.com/skills/everyinc/compound-engineering-plugin/ce-worktree/
- GitHub: https://github.com/EveryInc/compound-engineering-plugin
- Author: [@everyinc](https://omgskills.com/library/everyinc/index.md)

## More from this repo

- [ce-brainstorm](https://omgskills.com/skills/everyinc/compound-engineering-plugin/ce-brainstorm/index.md) — Explore vague or ambitious ideas into a right-sized requirements-only unified plan.
   - [@everyinc](https://omgskills.com/library/everyinc/index.md) · 25k stars
- [ce-code-review](https://omgskills.com/skills/everyinc/compound-engineering-plugin/ce-code-review/index.md) — Structured code review for bugs, regressions, tests, and standards.
   - [@everyinc](https://omgskills.com/library/everyinc/index.md) · 25k stars
- [ce-commit](https://omgskills.com/skills/everyinc/compound-engineering-plugin/ce-commit/index.md) — Used to create a git commit with a clear, value-communicating message.
   - [@everyinc](https://omgskills.com/library/everyinc/index.md) · 25k stars
