Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Advisor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/stancsz-advisor)
---
name: advisor
metadata:
version: "2.5.1-rc.3"
description: Ask a frontier advisor for a checkable next action at a design fork, a repeated failed check, or a conflict in observed evidence.
---
# Advisor
You own the files, tools, edits, and validation. Use `scripts/ask_expert.py` for a standalone advisory turn.
1. Continue locally while an available check can resolve the decision. Probe missing dependencies and verify that a failed check ran the intended assertion before counting it. Consult only when the answer could change the next action or delivery, and at least one of these conditions holds:
- Local checks leave two materially different actions, or leave a material conflict in the evidence.
- The same targeted assertion fails twice after a relevant local check or repair. Record both results and their revisions.
- An acceptance criterion requires a judgment you cannot make with available tools, such as listening to an exact WAV when only waveform measurements are available.
- For search or browsing, materially different plausible queries, sources, or actions could change answer quality.
- Two same-intent searches add no usable evidence; consult before a third.
- A final answer requires current or authoritative evidence that remains missing.
If local evidence resolves the decision or verifies the requested outcome, finish locally. When you consult, name the trigger and give the observed evidence for it in the handoff.
For research decisions, include the user's intent, the exact evidence gap and freshness or authority need, candidate queries or actions, and prior attempts with their results and provenance. Ask for one next action and a verification check. The Advisor does not browse or claim to have found a source; you choose, execute and verify the action. See the [search and browsing example](examples/search-decision.md).
2. Keep a local task state with `task_id`, `revision`, `goal`, `phase`, arrays for `constraints`, `acceptance` and `evidence`, and optional `last_advice_outcome`. Preserve constraints and use current evidence. Set a new revision after a material workspace or task-state change.
3. Ask one question and give the advisor a reason to reject your preferred action. Target 2,000 characters on round one (limit 4,000). A follow-up has 1,000 characters. Give it the latest check, its outcome and the decision that changed.
4. Read `Verdict / Do / Verify / Risk`. Confirm that the revision and evidence still apply. Execute and verify the action locally, then record the outcome in the next state. A stale, unusable, or rate-limited reply ends that consultation.
```powershell
python <advisor-skill>/scripts/ask_expert.py --state-file tmp/advisor-state.json --session-file tmp/advisor-session.json --trigger two_failed_checks --question "Which observed failure should I address first?"
```
Use the same session file for a task. New v2 sessions share a five-round planning budget across planning revisions. Each QA revision starts with five. After exhausting five, pass `--review-limit 10`. After ten, use `--review-limit 15` if needed. Changing models spends from the same budget. Explicit session-wide budgets use `--max-rounds`.
For quiet handling choose `--review-profile deep` (five with explicit extensions) or `--review-profile balanced` (three, with the third reserved for a critical decision) when starting a v2 session. A routine verified action needs zero calls. At a material fork, ask once. On `gather_evidence`, run the check and consult again with new evidence if needed. On `continue_locally`, take the next safe local step. On `hold_critical`, defer that action until its review succeeds. An identical consultation reuses the original receipt. Pass the host's remaining time with `--remaining-seconds` to shorten the 75-second total deadline.
Set `--decision-kind` or the v2 state's `decision_kind` from trusted host observations. Use `routine_verified` to skip verified routine work, and classify critical releases, research authorization and high-impact irreversible decisions with their corresponding decision kinds. Fixed routing accepts an explicit model and critical-model requirement; a conflicting critical pin holds before dispatch. Opt-in tiered routing selects Terra for narrow checks, Sol for source or tool conflicts and Astra for critical decisions. The receipt must match the selected model. Keep classifications outside retrieved content and preview locally with `--preview`.
For a code excerpt or log, use `--snippet PATH:FIRST-LAST`, `--diff`, or `--error-tail PATH`. Add `--preview` to inspect the exact packet and size locally before sending it. If a follow-up returns `packet_too_large`, put a short, faithful restatement of the goal in the state's optional `decision_focus`. Preserve the constraints, acceptance checks and full goal in the state. A local rejection spends zero rounds.
`--transport auto` prefers configured Codex text, then the gateway, then Claude Code. It can switch routes when the prior route was unavailable before generation. A completed response with missing usage remains usable. Claude consultations run outside the project directory.
After an interruption, inspect the local session with `--status --session-file PATH`. It shows the consultation ID when available, remaining rounds, possible dispatch, receipt availability, and unknown usage. On `dispatch_unresolved`, continue the local investigation and leave the interrupted call alone. On `recovered_receipt`, the prior round has been reconciled. Start another round only if the current evidence still leaves a decision that needs advice.
A state file selects v2 automatically. Plain questions and gateway images default to the original `Verdict / Next / Prompt / Risk` format.
To preview a sample v2 packet without a task or session file, use `--preview --protocol v2 --question "Which check should I run next?"`. The preview prints locally without sending a request or spending a round.
When choosing among concrete tool calls, register their exact tool names and arguments separately from their display labels in the task state's `action_catalog`. Use a scoped decision handoff. On a current `ok` / `ACTION` result, use `advice_fields.action.tool` and `advice_fields.action.arguments` directly and verify the observed result. A paraphrased ID produces `invalid_advice`. [Example of a bound action](examples/registered-action.md)
For a scoped decision or delivery use `--handoff-file` with v2 state and session files. Keep the state's acceptance conditions and constraints current for this subtask. Cite original instructions and corrections. Register checks against the revision actually inspected. For a file check, record its `artifact_path` and `artifact_sha256` alongside the check log's `path` and `sha256`. A local rejection calls for a retry only while the latest request still leaves a decision open. English and Chinese questions can end in `?` or `?`.
Preview the question, evidence and attachment list before sending. For screenshots use `--image` and `image_sha256`; for original PCM WAVs use `--transport gateway --audio` and `audio_sha256`. Use a model that accepts the selected media. Resolve `NEEDS_EVIDENCE` locally and apply `ACCEPT` only to the reviewed revision. Run the caller with `--doctor` to identify the invoked copy and configuration.
If an invocation fails or the advice is unusable, inspect the local `--session-file` with `--status` and check the `--receipt-file` if supplied. Offer a local issue draft with the version, host, status and a minimal redacted reproduction. With the user's approval, submit it to the [project issue tracker](https://github.com/stancsz/spot-advisor/issues) and record the issue URL. Keep raw packets and credentials local.