Claude
Claude Code is an independent agent on PATH (claude), sharing this working
tree and already authenticated. Use it as a second opinion or delegated worker,
not as ground truth: verify its claims, own any changes, and keep its task
contract narrow.
Defaults
Use claude -p --model opus --effort high unless the user or task calls for a
different model or thinking level.
- Model: accept aliases such as
opus, sonnet, or fable, or a full
model name. Default opus.
- Thinking level: pass Claude Code's
--effort flag. Valid levels are
low, medium, high, xhigh, and max. Default high.
- Cost guard: for exploratory asks, add
--max-budget-usd <amount> when
the user gives a budget or the task is likely to sprawl.
Example:
claude -p --model opus --effort high "<prompt>"
Prompting Claude
Prompt Claude like an operator: compact, block-structured, and explicit about
the artifact you need. A sharper contract beats higher effort.
- One task per run. Split review, implementation, and docs into separate
prompts.
- Name repo skills when relevant. Claude can read repo files; say "follow
write-docs for the doc" or "obey refactor-clean: no compatibility wrappers"
instead of pasting those skills into the prompt.
- Blocks, added only where useful:
<task> — the concrete job, context, and expected end state.
<output_contract> — exact response shape, highest-value first.
<default_follow_through> — take low-risk interpretations and continue;
stop only when a missing detail changes correctness, safety, or an
irreversible action.
<verification_loop> — inspect the result against requirements and revise
before finalizing.
<grounding> — ground every claim in code or tool output; label
inferences.
<action_safety> — keep the diff tightly scoped; no drive-by refactors.
- Anti-patterns: vague prompts, mixed jobs, no output contract, asking it
to "think harder" instead of tightening the task, and accepting its answer
without checking the evidence.
Consultation
Use Claude for consultation when the user asks for Claude's view or when a
second-agent read would materially reduce risk. Keep it read-oriented unless
the user explicitly asks it to edit.
- Ask for evidence, not vibes: require file paths, observed behavior, command
output, or labelled inferences.
- Prefer a read-only tool surface for reviews:
--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk.
- Triage every finding against the code before acting. Report what Claude
flagged, what you accepted, and what you dismissed.
Implementation — explicit ask only
Delegate implementation to Claude only when the user names Claude for the task.
Never hand it work on your own initiative, and never re-delegate follow-up work
without a fresh ask.
- Slice the task sharply: goal, constraints, allowed scope, and verification.
An underspecified task stays with you until a fresh agent could not misread
it.
- Start from a clean tree or record the baseline commit so Claude's diff is
separable from yours. Tell Claude to keep scratch files (probes, dumps,
notes) out of the tree — its diff must contain only the deliverable.
- Choose permissions by what the task must do:
- Read/review:
--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk.
- Narrow edits: add edit tools and keep the prompt's allowed paths explicit.
- Broad autonomous work: use
--dangerously-skip-permissions only in a
dedicated worktree, with a self-authored prompt and a mandatory diff
review after.
- Capture the response with
--output-format text by default. Use
--output-format json only when the caller needs structured metadata.
- You own the result: inspect the diff, run the relevant tests, and only then
report it. "Claude says it's done" is not done.
Liveness
claude -p is a networked, authenticated non-interactive run. If it fails,
classify the failure before retrying.
- Auth failure: do not repair credentials unless the user asks; report the
blocker. If sandboxed
claude -p says Not logged in, retry once with the
required approval because local auth can depend on keychain/session access.
- Sandbox/network failure: rerun with the required approval if the command is
important to the task.
- Long run: prefer
--max-budget-usd or a narrower prompt before raising
effort.
- Workspace trust:
-p skips the interactive trust dialog, so run it only from
a repo or worktree you intentionally trust.
Rules
- Use
claude -p --model opus --effort high as the default invocation.
- Let the user override model and effort in plain language; translate that to
--model and --effort.
- Keep Claude's writes out of the working tree unless delegation was explicit.
- Do not touch the same working tree while Claude is making edits.
- Treat Claude output as evidence to verify, not authority to relay.
1---2name: claude3description: Use Claude Code as an independent `claude -p` subagent when the user explicitly asks for Claude, wants a second-agent opinion from Claude, or asks to delegate a well-scoped task to Claude. Supports selecting `--model` and thinking/effort level with defaults of `opus` and `high`.4---56# Claude78Claude Code is an independent agent on PATH (`claude`), sharing this working9tree and already authenticated. Use it as a second opinion or delegated worker,10not as ground truth: verify its claims, own any changes, and keep its task11contract narrow.1213## Defaults1415Use `claude -p --model opus --effort high` unless the user or task calls for a16different model or thinking level.1718- **Model:** accept aliases such as `opus`, `sonnet`, or `fable`, or a full19 model name. Default `opus`.20- **Thinking level:** pass Claude Code's `--effort` flag. Valid levels are21 `low`, `medium`, `high`, `xhigh`, and `max`. Default `high`.22- **Cost guard:** for exploratory asks, add `--max-budget-usd <amount>` when23 the user gives a budget or the task is likely to sprawl.2425Example:2627```sh28claude -p --model opus --effort high "<prompt>"29```3031## Prompting Claude3233Prompt Claude like an operator: compact, block-structured, and explicit about34the artifact you need. A sharper contract beats higher effort.3536- **One task per run.** Split review, implementation, and docs into separate37 prompts.38- **Name repo skills when relevant.** Claude can read repo files; say "follow39 write-docs for the doc" or "obey refactor-clean: no compatibility wrappers"40 instead of pasting those skills into the prompt.41- **Blocks, added only where useful:**42 - `<task>` — the concrete job, context, and expected end state.43 - `<output_contract>` — exact response shape, highest-value first.44 - `<default_follow_through>` — take low-risk interpretations and continue;45 stop only when a missing detail changes correctness, safety, or an46 irreversible action.47 - `<verification_loop>` — inspect the result against requirements and revise48 before finalizing.49 - `<grounding>` — ground every claim in code or tool output; label50 inferences.51 - `<action_safety>` — keep the diff tightly scoped; no drive-by refactors.52- **Anti-patterns:** vague prompts, mixed jobs, no output contract, asking it53 to "think harder" instead of tightening the task, and accepting its answer54 without checking the evidence.5556## Consultation5758Use Claude for consultation when the user asks for Claude's view or when a59second-agent read would materially reduce risk. Keep it read-oriented unless60the user explicitly asks it to edit.61621. Ask for evidence, not vibes: require file paths, observed behavior, command63 output, or labelled inferences.642. Prefer a read-only tool surface for reviews:65 `--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk`.663. Triage every finding against the code before acting. Report what Claude67 flagged, what you accepted, and what you dismissed.6869## Implementation — explicit ask only7071Delegate implementation to Claude only when the user names Claude for the task.72Never hand it work on your own initiative, and never re-delegate follow-up work73without a fresh ask.74751. Slice the task sharply: goal, constraints, allowed scope, and verification.76 An underspecified task stays with you until a fresh agent could not misread77 it.782. Start from a clean tree or record the baseline commit so Claude's diff is79 separable from yours. Tell Claude to keep scratch files (probes, dumps,80 notes) out of the tree — its diff must contain only the deliverable.813. Choose permissions by what the task must do:82 - Read/review: `--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk`.83 - Narrow edits: add edit tools and keep the prompt's allowed paths explicit.84 - Broad autonomous work: use `--dangerously-skip-permissions` only in a85 dedicated worktree, with a self-authored prompt and a mandatory diff86 review after.874. Capture the response with `--output-format text` by default. Use88 `--output-format json` only when the caller needs structured metadata.895. You own the result: inspect the diff, run the relevant tests, and only then90 report it. "Claude says it's done" is not done.9192## Liveness9394`claude -p` is a networked, authenticated non-interactive run. If it fails,95classify the failure before retrying.9697- Auth failure: do not repair credentials unless the user asks; report the98 blocker. If sandboxed `claude -p` says `Not logged in`, retry once with the99 required approval because local auth can depend on keychain/session access.100- Sandbox/network failure: rerun with the required approval if the command is101 important to the task.102- Long run: prefer `--max-budget-usd` or a narrower prompt before raising103 effort.104- Workspace trust: `-p` skips the interactive trust dialog, so run it only from105 a repo or worktree you intentionally trust.106107## Rules108109- Use `claude -p --model opus --effort high` as the default invocation.110- Let the user override model and effort in plain language; translate that to111 `--model` and `--effort`.112- Keep Claude's writes out of the working tree unless delegation was explicit.113- Do not touch the same working tree while Claude is making edits.114- Treat Claude output as evidence to verify, not authority to relay.