Creates isolated git worktrees under `.worktrees/<branch>` with the environment setup that `git worktree add` doesn't handle. Copies your `.env` files over, auto-trusts mise and direnv configs when safe (with branch-aware rules so PR review branches don't blindly trust untrusted `.envrc` content), and keeps `.gitignore` tidy. Most useful when reviewing PRs without disturbing your main checkout or running parallel features without branch-switching churn. Integrates with `ce-work` and `ce-code-review` so they can offer worktree creation as an option. The trust logic is thoughtful: base branches get auto-trust after config diffing, feature branches require manual review.

skills.sh installs
3.1K
GitHub stars
26K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/everyinc/compound-engineering-plugin
Category
Git & Pull Requests
First seen
Jun 3, 2026

More from everyinc/compound-engineering-plugin

All 78
1openclaw avatarautoreviewopenclaw/agent-skillsRun a structured code review (Codex default, optional Claude, Pi, Droid, Copilot, or OpenCode) as a closeout check on a local or PR branch before commit or ship3.1Kskills.sh installs
2microsoft avatarauthor-contributionsmicrosoft/vscodeIdentify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an auth3Kskills.sh installs
3mksglu avatarcontext-modemksglu/context-modeUse context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process3Kskills.sh installs
4microsoft avatarupdate-screenshotsmicrosoft/vscodeDownload screenshot baselines from the latest CI run and commit them. Use when asked to update, accept, or refresh component screenshot baselines from CI, or af3Kskills.sh installs
5greptileai avatargreploopgreptileai/skillsIteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments. 3Kskills.sh installs
6semgrep avatarcode-securitysemgrep/skillsSecurity guidelines for writing secure code. Use when writing code, reviewing code for vulnerabilities, or asking about secure coding practices like 'check for 2.8Kskills.sh installs