worktree-setup
Installation
SKILL.md
Worktree Setup
Generate the right config so AI agents start in their isolated worktrees / environments with the same setup as the main repo: dependencies installed, env files in place, tool configs copied over.
-
Unless the context already provides an answer, explicitly ask the user which tool the setup is for: Cursor, Codex, Conductor, or Claude Code.
-
Map out the project (web, native, Rust, Swift, etc.) and make judgement calls on the right setup/install, run/actions, and teardown/archive commands.
Not all projects use bun. Some use make, cargo, bun tauri dev, swift build, npm, pnpm, pip, etc. Read the README, package.json scripts, top-level Makefile, or Cargo.toml to figure it out.
What each tool reads
- Cursor: Local parallel-agent worktrees in
.cursor/worktrees.json. - Codex: Setup script + actions in
.codex/environments/environment.toml. - Conductor: Workspace setup in
conductor.json. - Claude Code:
.worktreeincludeat the repo root (gitignored files to copy into each worktree) +.claude/settings.jsonSessionStarthook for install.