Copy-paste these into Claude Code. The first two populate the files you must fill; the rest drive day-to-day work.
Shortcut: the
/orchestrator:setupcommand runs an interactive interview that covers prompts 1–2 (draftCLAUDE.md, fillgates.json) and the rest of onboarding (labels, bot check, CI, arming the loop, hardening). Use it for a fresh project; reach for the individual prompts below when you want to redo one piece.Brand-new project? Read the new-project configuration checklist and USAGE.md → "Autonomous loop & the issue queue" first — they explain what
/orchestrator:setup(and prompts 1–2 below) are actually wiring up, and the one convention that trips people up: only issues labelledmodule:*are ever picked up automatically.
Read this repository — package manifests, directory structure, CI config, and any existing README — and draft
a CLAUDE.md using the template already at ./CLAUDE.md. Fill: what the project is, stack & layout, the module
list (with paths), conventions, testing approach, and definition of done. Keep it lean and project-WIDE only;
do not include task-specific detail. Show me the draft for approval before writing.
Inspect this repo's package.json / Makefile / turbo.json / CI workflows and propose values for
.claude/gates.json:
- project: name, language, package manager
- modules: each independent area with its path and a one-line description (these become worker boundaries)
- gates: exact shell commands for install, build, lint, typecheck, test, test_affected, coverage, e2e,
security. Use "" for anything that doesn't exist. Set a sensible coverage_threshold.
- budget: confirm model routing and a starting max_parallel_workers of 2
- merge.policy and baseBranch
Then RUN each non-empty gate via `bash .claude/scripts/gate.sh <name>` to verify it works, and fix any
command that fails. Show me the final file.
We're adding work in <area>. Update .claude/gates.json "modules" to add { name, path, description, owner } for
it so workers get a clean, non-overlapping boundary. Check it doesn't overlap existing module paths.
Use the orchestrator agent. Task: <goal>.
Decompose into independent, non-overlapping sub-tasks by module (read .claude/gates.json). Present the plan
and WAIT for my approval before any code is written. Use at most `max_parallel_workers` at once.
ultracode run the feature-fanout workflow, args.task = "<self-contained task description>".
Status report: for each sub-task give done/in-progress/blocked, branch/PR, gate results, and any decision you
need from me. Then stop.
Use the reviewer agent on branch <name>, once per lens in gates.json (correctness, tests, security,
performance). Each reviewer is adversarial and returns approve/reject with concrete findings. Summarize the
verdicts and whether it meets the configured consensus.
This repo is <language/framework> — different from what the template assumed. Keep the generic agents and
workflow as-is. Update ONLY .claude/gates.json and CLAUDE.md for this stack: new module map, new gate
commands, appropriate model routing and review lenses. Verify the gates run. Don't touch the agent prompts
unless a stack-specific instruction is genuinely required — if so, explain why.
Run `npx ccusage` and summarize token/cost by model for this session. Given the run we just did, recommend
changes to: max_parallel_workers, model routing, the module map, and any agent prompt that caused rework or
overlap. Propose concrete edits to gates.json.
The repo ships .github/workflows/gates.yml + .github/actions/setup — an adapter-driven CI that runs each
gate.sh gate on pull_request, reading commands from gates.json. Don't hand-edit the workflow. Instead:
1. Confirm gates.json has working gate commands (run `bash .claude/scripts/gate.sh <name>` for each).
2. If this repo isn't pure JS/TS, add the toolchain to .github/actions/setup at the "Extension point" comment
(e.g. foundry-toolchain for Solidity, setup-python for Python), keyed off project.language. Keep it a
config edit — don't fork the workflow.
3. Make the matrix checks REQUIRED via branch protection (see GETTING_STARTED "Step 7 — Enforce gates in CI"),
so a red gate actually blocks merge. Show me the branch-protection settings to apply.