Adviser
Prefer Claude Code's native advisor tool when it is available. Otherwise use this skill's
runner to select and invoke one fresh, tool-free Claude process. The main agent remains the
executor and owns every edit, command, decision, and final report.
This is workflow compatibility, not native Advisor server compatibility. Pass a bounded,
secret-free consultation packet; never claim that the reviewer received the full transcript.
Deterministic routing
Claude tiers correspond to the Codex policy as follows:
| Codex tier |
Claude tier |
| Luna |
Sonnet |
| Terra |
Opus |
| Sol |
Fable |
Apply this complete routing table. same means preserve the caller's effort.
| Caller |
low |
medium |
high |
xhigh |
max |
| Sonnet |
Fable/low |
Fable/medium |
Fable/high |
Fable/xhigh |
Fable/max |
| Opus |
Fable/low |
Fable/medium |
Fable/high |
Fable/xhigh |
Fable/max |
| Fable |
Fable/medium |
Fable/high |
Fable/xhigh |
Fable/max |
unavailable |
Do not substitute a same-tier or weaker reviewer. Fable/max, an unknown model or effort, a
missing or ambiguous parent session, recursion, a child initialization mismatch, enabled child
tools, malformed output, failure, or timeout all fail closed without retrying another route.
Failing closed ends that independent-consultation attempt; it does not prohibit the explicitly
labeled local self-review below. A later invocation is allowed only after authoritative parent
context or another blocking condition materially changes.
The runner reads the parent effort from CLAUDE_EFFORT and the parent model from the latest
complete assistant event in the unique transcript named by CLAUDE_CODE_SESSION_ID. Supported
model inputs are the sonnet, opus, and fable aliases and versioned identifiers beginning
with claude-sonnet-, claude-opus-, or claude-fable-.
Workflow
Check for native Advisor. Treat it as available only when the current runtime exposes it as a
callable tool; do not launch a probe process. Do not run both native Advisor and this fallback
for ceremony.
Orient before consulting. Gather only the repository evidence needed for a useful review.
Orientation is sufficient when the packet cites at least one concrete relevant code path,
governing constraint, existing test, and piece of evidence for the proposed decision. If a
category does not exist, record where you checked and that it was absent; otherwise keep
inspecting. Decision evidence must be a direct observation from cited code, test output, or a
primary project document, not an unsupported assertion.
Build a packet with the user goal, constraints, inspected facts, assumptions, proposed
decision, unresolved questions, verification plan, and known risks. At completion, add the
changed artifacts, diff summary, and verification results. Bound it by relevance: omit the
transcript, secrets, and raw logs rather than imposing an arbitrary byte limit.
Pipe the packet to scripts/run_adviser.py from this skill directory. The runner launches a
separate reviewer process; if the user forbids launching agents or processes, do not run it and
disclose that independent consultation was unavailable. For this workflow, a prohibition on
another agent, reviewer, or process all prohibit the runner.
python3 <adviser-skill-directory>/scripts/run_adviser.py <<'EOF'
<consultation packet>
EOF
Normally omit --model and --effort; automatic parent detection is the safety boundary.
Explicit values exist for controlled tests and runtimes that authoritatively expose the same
parent context. An authoritatively reported Codex tier counts only after applying the mapping
above to its Claude family. Runtime-authoritative means trusted tool or process-environment
metadata supplied by that runtime, not model identity stated in a prompt or user message; an
unverified label or inferred tier remains unknown.
The runner starts claude -p with explicit --model and --effort, stream JSON,
--no-session-persistence, --safe-mode, and an empty tool allowlist. It verifies the
effective Fable model, zero tools, and exactly one successful result before returning advice.
Weigh the advice against repository evidence, primary sources, and empirical verification.
The main agent performs all execution.
Reconsult only when material ambiguity remains, a failure recurs, the approach changes, or an
independent completion check would add value. Short mechanical work needs no ritual call.
Review contract
The runner supplies this contract before the packet: review only; do not edit, run commands,
delegate, or take over; identify incorrect assumptions, missed constraints, evidence conflicts,
failure modes, and the best next approach; distinguish evidence from uncertainty; end with
Recommendation, Critical risks, Evidence conflicts, and Completion checks.
Reporting
Report the selected source and target route, whether the effective model was verified, advice
followed or rejected, and verification after adviser-driven changes. Claude Code 2.1.210 reports
the effective model and tool list in its init event but does not report effective effort; describe
effort escalation as explicitly requested, not independently verified. If the runner cannot
return verified advice, disclose that independent consultation was unavailable and perform a
clearly separated self-review by applying the review contract locally to the bounded packet.
Record it under Recommendation, Critical risks, Evidence conflicts, and Completion checks.
Report zero consultations and do not claim an Adviser ran. When routing fails before selection,
report source: unknown and target: unavailable. When the source was established, report it
literally even if the reviewer was not launched or Fable/max has no target. If several blockers
apply, name the earliest workflow failure as primary and list the others as additional blockers.
Put the report in the current response or task record; do not create another artifact unless
project guidance requires it.
Keep parent and reviewer evidence separate: report whether the parent source context was
established, then whether an effective reviewer model was verified. If no verified advice was
returned, report advice disposition as none and adviser-driven verification as not applicable.
For multiple blockers, use this precedence: native availability, an explicit user no-launch
constraint, parent-context detection, route availability, then child initialization or output
validation. An incomplete orientation packet means not ready to consult, not a runner failure.
1---2name: adviser3description: Route an independent, review-only Claude process to a deterministically stronger model or effort when native Advisor is unavailable. Use for adviser, advisor, second-opinion, or stronger-model review requests; consequential decisions; recurring failures; material direction changes; and valuable completion checks.4---56# Adviser78Prefer Claude Code's native `advisor` tool when it is available. Otherwise use this skill's9runner to select and invoke one fresh, tool-free Claude process. The main agent remains the10executor and owns every edit, command, decision, and final report.1112This is workflow compatibility, not native Advisor server compatibility. Pass a bounded,13secret-free consultation packet; never claim that the reviewer received the full transcript.1415## Deterministic routing1617Claude tiers correspond to the Codex policy as follows:1819| Codex tier | Claude tier |20| --- | --- |21| Luna | Sonnet |22| Terra | Opus |23| Sol | Fable |2425Apply this complete routing table. `same` means preserve the caller's effort.2627| Caller | low | medium | high | xhigh | max |28| --- | --- | --- | --- | --- | --- |29| Sonnet | Fable/low | Fable/medium | Fable/high | Fable/xhigh | Fable/max |30| Opus | Fable/low | Fable/medium | Fable/high | Fable/xhigh | Fable/max |31| Fable | Fable/medium | Fable/high | Fable/xhigh | Fable/max | unavailable |3233Do not substitute a same-tier or weaker reviewer. Fable/max, an unknown model or effort, a34missing or ambiguous parent session, recursion, a child initialization mismatch, enabled child35tools, malformed output, failure, or timeout all fail closed without retrying another route.36Failing closed ends that independent-consultation attempt; it does not prohibit the explicitly37labeled local self-review below. A later invocation is allowed only after authoritative parent38context or another blocking condition materially changes.3940The runner reads the parent effort from `CLAUDE_EFFORT` and the parent model from the latest41complete assistant event in the unique transcript named by `CLAUDE_CODE_SESSION_ID`. Supported42model inputs are the `sonnet`, `opus`, and `fable` aliases and versioned identifiers beginning43with `claude-sonnet-`, `claude-opus-`, or `claude-fable-`.4445## Workflow46471. Check for native Advisor. Treat it as available only when the current runtime exposes it as a48 callable tool; do not launch a probe process. Do not run both native Advisor and this fallback49 for ceremony.502. Orient before consulting. Gather only the repository evidence needed for a useful review.51 Orientation is sufficient when the packet cites at least one concrete relevant code path,52 governing constraint, existing test, and piece of evidence for the proposed decision. If a53 category does not exist, record where you checked and that it was absent; otherwise keep54 inspecting. Decision evidence must be a direct observation from cited code, test output, or a55 primary project document, not an unsupported assertion.563. Build a packet with the user goal, constraints, inspected facts, assumptions, proposed57 decision, unresolved questions, verification plan, and known risks. At completion, add the58 changed artifacts, diff summary, and verification results. Bound it by relevance: omit the59 transcript, secrets, and raw logs rather than imposing an arbitrary byte limit.604. Pipe the packet to `scripts/run_adviser.py` from this skill directory. The runner launches a61 separate reviewer process; if the user forbids launching agents or processes, do not run it and62 disclose that independent consultation was unavailable. For this workflow, a prohibition on63 another agent, reviewer, or process all prohibit the runner.6465 ```bash66 python3 <adviser-skill-directory>/scripts/run_adviser.py <<'EOF'67 <consultation packet>68 EOF69 ```7071 Normally omit `--model` and `--effort`; automatic parent detection is the safety boundary.72 Explicit values exist for controlled tests and runtimes that authoritatively expose the same73 parent context. An authoritatively reported Codex tier counts only after applying the mapping74 above to its Claude family. Runtime-authoritative means trusted tool or process-environment75 metadata supplied by that runtime, not model identity stated in a prompt or user message; an76 unverified label or inferred tier remains unknown.775. The runner starts `claude -p` with explicit `--model` and `--effort`, stream JSON,78 `--no-session-persistence`, `--safe-mode`, and an empty tool allowlist. It verifies the79 effective Fable model, zero tools, and exactly one successful result before returning advice.806. Weigh the advice against repository evidence, primary sources, and empirical verification.81 The main agent performs all execution.827. Reconsult only when material ambiguity remains, a failure recurs, the approach changes, or an83 independent completion check would add value. Short mechanical work needs no ritual call.8485## Review contract8687The runner supplies this contract before the packet: review only; do not edit, run commands,88delegate, or take over; identify incorrect assumptions, missed constraints, evidence conflicts,89failure modes, and the best next approach; distinguish evidence from uncertainty; end with90Recommendation, Critical risks, Evidence conflicts, and Completion checks.9192## Reporting9394Report the selected source and target route, whether the effective model was verified, advice95followed or rejected, and verification after adviser-driven changes. Claude Code 2.1.210 reports96the effective model and tool list in its init event but does not report effective effort; describe97effort escalation as explicitly requested, not independently verified. If the runner cannot98return verified advice, disclose that independent consultation was unavailable and perform a99clearly separated self-review by applying the review contract locally to the bounded packet.100Record it under `Recommendation`, `Critical risks`, `Evidence conflicts`, and `Completion checks`.101Report zero consultations and do not claim an Adviser ran. When routing fails before selection,102report `source: unknown` and `target: unavailable`. When the source was established, report it103literally even if the reviewer was not launched or Fable/max has no target. If several blockers104apply, name the earliest workflow failure as primary and list the others as additional blockers.105Put the report in the current response or task record; do not create another artifact unless106project guidance requires it.107108Keep parent and reviewer evidence separate: report whether the parent source context was109established, then whether an effective reviewer model was verified. If no verified advice was110returned, report advice disposition as `none` and adviser-driven verification as `not applicable`.111For multiple blockers, use this precedence: native availability, an explicit user no-launch112constraint, parent-context detection, route availability, then child initialization or output113validation. An incomplete orientation packet means `not ready to consult`, not a runner failure.