plugins/dev/skills/create-worktree/SKILL.md
Create a git worktree for parallel work and optionally launch implementation session. **ALWAYS use when** the user says 'create a worktree', 'work in parallel', 'start a worktree for', or needs to work on multiple features simultaneously without switching branches.
npx skillsauth add coalesce-labs/catalyst create-worktreeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This command uses ticket references like PROJ-123. Replace PROJ with your Linear team's ticket
prefix:
.catalyst/config.json if availableTICKET-XXXENG-123, FEAT-456, BUG-789You are tasked with creating a git worktree for parallel development work.
When this command is invoked:
Gather required information:
Confirm with user: Present the worktree details and get confirmation before creating.
Create the worktree: Use the create-worktree.sh script:
"${CLAUDE_PLUGIN_ROOT}/scripts/create-worktree.sh" <worktree_name> [base_branch]
The script automatically:
catalyst.worktree.setup from config for project-specific setup.claude/ and .catalyst/ directoriesProject setup (handled by script based on config):
If catalyst.worktree.setup is defined in config, those commands run in order. Otherwise, the
script auto-detects: dependency install (bun/npm) + thoughts init.
Example config for full control:
{
"catalyst": {
"worktree": {
"setup": [
"humanlayer thoughts init --directory ${DIRECTORY} --profile ${PROFILE}",
"humanlayer thoughts sync",
"bun install",
"~/.claude/scripts/trust-workspace.sh \"$(pwd)\""
]
}
}
}
Optional: Launch implementation session: If a plan file path was provided, ask if the user
wants to launch Claude in the worktree. Note: claude -w takes a name and creates a new
worktree — so cd into the already-created worktree instead, capture stderr to a real file for
post-mortem debugging, and use --dangerously-skip-permissions since there's no TTY.
(
cd "<worktree_path>" || exit 1
exec nohup claude \
--output-format stream-json --verbose \
--dangerously-skip-permissions \
-p "/catalyst-dev:implement-plan <plan_path> and when done: create commit, create PR, update Linear ticket"
) > "<worktree_path>/worker-stream.jsonl" 2> "<worktree_path>/worker-stderr.log" &
Worktree base directory is resolved in this order:
catalyst.orchestration.worktreeDir from config (explicit override)~/catalyst/wt/<projectKey>/ (default — reads catalyst.projectKey from config)~/catalyst/wt/<repo>/ (fallback if no config)Recommended: Add ~/catalyst to Claude Code's additionalDirectories in
~/.claude/settings.json so all worktrees across projects are automatically trusted.
Example layout (for project with projectKey: "acme"):
~/catalyst/wt/acme/
├── ACME-123-feature/
├── ACME-456-bugfix/
└── ENG-789-oauth/
With orchestration (multiple named orchestrators):
~/catalyst/wt/acme/
├── auth-orch/ # orchestrator
├── auth-orch-ACME-101/ # worker
├── auth-orch-ACME-102/ # worker
├── dash-orch/ # another orchestrator
└── dash-orch-ACME-201/ # worker
User: /create-worktree PROJ-123
testing
Phase-agent that fixes a failing verify verdict so the pipeline self-heals instead of stalling to needs-human (CTL-653). Reads `${ORCH_DIR}/workers/<ticket>/verify.json`, fixes the `findings[]` (every severity:"high" plus the regression_risk drivers) directly via Edit/Write, commits the remediation, and emits `phase.remediate.complete.<ticket>`. The scheduler's router then re-dispatches `verify` to re-check (the verify⇄remediate cycle, cap 3). Dispatched as a `claude --bg` job by `phase-agent-dispatch`, which invokes it via slash command — hence `user-invocable: true`.
development
Phase agent for the verify step of the 9-phase orchestrator pipeline (CTL-450). NEW skill — has no canonical wrapper. Runs read-only adversarial verification against the implement-phase diff: tsc, tests, lint, security scan, reward-hacking scan, code review, test coverage, silent-failure hunt. Writes ${ORCH_DIR}/workers/<TICKET>/verify.json then emits phase.verify.complete.<ticket>. Reads phase-implement.json as its prior-phase artifact. NEVER writes application code — only test files allowed. Spawned via phase-agent-dispatch via slash command — hence `user-invocable: true`.
tools
--- name: phase-triage description: Phase agent that triages a Linear ticket — expands acronyms, classifies (feature/bug/docs/refactor/chore), identifies dependencies, estimates scope, writes triage.json, and posts a triage analysis comment to Linear. Triage completion is signaled by that comment plus the local triage.json — there is no `triaged` label. Emits phase.triage.complete.<TICKET> on success and phase.triage.failed.<TICKET> on error. Dispatched by the phase-agent orchestrator (CTL-452)
testing
Phase agent for the review step of the 9-phase orchestrator pipeline (CTL-450). Wraps the /review skill (gstack) — explicitly skips /ultrareview per user decision. Reads verify.json from the prior phase, runs /review against the diff, writes ${ORCH_DIR}/workers/<TICKET>/review.json, and creates a remediation commit for any HIGH-severity finding that has a deterministic fix. Emits phase.review.complete.<ticket>. Spawned via phase-agent-dispatch via slash command — hence `user-invocable: true`.