delegate-to-claude-codelisted
Install: claude install-skill T0mSIlver/skills
# Delegate to Claude Code (CLI)
Run `claude` for a second opinion, review, or a delegated edit worker. Default
path: `claude-rc-spawn` — interactive Claude in detached tmux with Remote
Control, so the user can watch and steer from claude.ai/code. Use plain
`claude -p` when machine-readable capture matters more than visibility.
Model default: `--model opus --effort high` (`sonnet --effort low` for trivia).
## Happy path
1. **Write the brief** to `.agent-runs/$slug/prompt.md` (`slug="claude-$(date
+%Y%m%d-%H%M%S)"; mkdir -p ".agent-runs/$slug"`): context, exact task, constraints, acceptance criteria,
verification commands, output shape. Demand evidence (commands run, exit
status, changed files, risks) and state explicitly: **verify synchronously —
never end the turn waiting on a background monitor or watcher.** Workers
otherwise park themselves "waiting for the monitor" and yield-loop.
2. **Launch.** Reviewer (read-only) via Remote Control tmux:
```bash
claude-rc-spawn \
--cwd "$PWD" \
--prompt-file ".agent-runs/$slug/prompt.md" \
--name "$slug-review" --tmux-session "$slug-review" \
--permission-mode plan \
--model opus --effort high
```
Edit worker: same command, replacing `--permission-mode plan` with
`--permission-mode acceptEdits`, renaming `--name`/`--tmux-session` to
`"$slug-edit"`, and adding `--worktree "$slug"` (Claude creates the worktree
and branch).
Noninteractive fallback (JSON capture, no Remo