independent-advisor
Route an explicitly requested outside coding-agent review of code, plan, or decision while preserving its review contract. Also get a second opinion from another model, higher effort, or vendor.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- independent-advisor
- version
- 0.1.0
- description
- Route an explicitly requested outside coding-agent review of code, plan, or decision while preserving its review contract. Also get a second opinion from another model, higher effort, or vendor.
02 资源文件 7
- 参考文档README.ja.md6.6 KB
- 参考文档README.md5.8 KB
- 参考文档README.zh-TW.md5.1 KB
- 参考文档references/dispatch-protocol.md5.1 KB
- 参考文档references/executor-detection.md4.4 KB
- 参考文档references/report-contract.md3.5 KB
- 参考文档test-prompts.json10.9 KB
03 SKILL.md 正文
Independent Advisor
Consult a different executor about the user's code, plan, or decision.
This changes WHO answers, not the critique lens. For a same-executor lens change,
use loom-workflow:critique. This skill spends money, sends material off the
machine, and may run repository setup, so those effects require authorization.
For consultation comparisons, describe capability as model tier economy /
standard / frontier plus effort low / medium / high. The outside
execution record also needs the actual selected model ID and provider family.
Explicit outside review
When the user explicitly requests an outside coding agent to review code, plan,
or decision, identify the review owner before invoking
loom-code:external-review by skill name:
- Code branch review:
loom-code:closing-reviewowns its code lens, reviewer YAML and finalization checks. - Loom implementation plan review:
loom-code:write-planowns the freshplan-lens review before Build. - A proposal or complexity decision:
loom-workflow:critiqueowns the applicableproposalorcomplexitycriteria.
For code, plan, or decision without an applicable Loom review owner (including
file-level or uncommitted code review outside branch closing review), use the
advisor audit consultation report contract. Assemble its full-context packet,
run the outside leg after authorization and disclosure, and report it
separately from the incumbent.
This is not a formal owner verdict; do not invent an owning skill or claim its
formal review checks ran.
For this explicit unowned artifact review, follow the bounded packet derivation
and unavailable-history rule in references/dispatch-protocol.md: retain the
rejected-options section with its factual unavailable marker, disclose the
limitation and continue with one audit leg. Optional design history alone does
not require a question or hold; unreadable or ambiguous targets and incomplete
authorization still block execution.
When an owner exists, it assembles the review packet with its requirements and
validates the returned verdict against its own format and checks. Keep the
incumbent reviewer and its result separately attributable. The advisor does
not substitute its explore/audit comparison verdict or report template for
the owning review skill's contract. A failed or unverified outside execution
is a separately attributed failure, never a completed independent review.
Before invoking loom-code:external-review for discovery, probe or dispatch,
show the full disclosure below and prepare the runner's complete consent
record. A direct user request naming the outside coding agent and an explicit
or unambiguous active code, plan or decision target authorizes one bounded
review without a second yes/no checkpoint. Interpret the full request,
including refusals and corrections. Record authorization_source with the
verbatim user request, active target and selected_executor set to the final
user choice; it must equal the dispatched executor. Disclosure
fields record what was shown before execution, not separate acknowledgments.
Immediately before each owner call for outside discovery or execution,
re-evaluate the latest user choice across all conversation turns available
then. Refresh the final-choice record, or invalidate a stale approved record
after cancellation, replacement, or ambiguity; a clear direct request needs
no second confirmation. One execution call runs discovery, preflight, and
review consecutively. Handle a new user turn received during that call before
the next outside call; material already sent cannot be recalled.
Give the named skill that record, review_root (CLI starting
directory), requested executor and review packet. review_root is not a filesystem read boundary.
The consent may authorize bounded model selection after consent within one
provider family and effort bound, a set of allowed_families for Antigravity,
or an exact model and effort. Exclude the incumbent's provider family from
that Antigravity set; choose a concrete family and model after discovery.
The named skill owns candidate selection, explicit model and effort in the
pre-review execution and review, CLI invocation and execution evidence.
Do not read or run a loom-code file from this plugin at runtime. Accept only
the named skill's JSON evidence/status and then apply the owning review skill's
checks to any owner-governed review output, or the advisor audit report checks
to an unowned consultation. A changed executor or review_root, or a
model, effort or provider family outside the recorded bounds, voids that
authorization. If the provider or target is ambiguous, or material scope expands
beyond the active task, ask for the missing choice before dispatch. An
unsolicited second-vendor notice remains a suggestion; it never starts
discovery, probe or dispatch without a request or accepted selection.
For open-ended second-opinion consultations, continue with the explore and
audit modes below and their existing packet and report rules.
Consultation mode routing
This section applies to open-ended consultations and explicit reviews without an applicable owner. An owner-governed outside review uses that skill's task type and verdict contract instead.
explore: the solution space is open; run proposer, normalizer, and blind judge roles.audit: an incumbent exists; a single leg with full context runs, with noproposerleg.
Determine the mode from a verbatim, citable fact: a target-branch commit, PR
number and state, approval line, or the user's wording. Record that quotation as
mode_basis: Record the verbatim fact you looked up, then record mode. An implementing commit supports audit; an
approved brief without one supports explore. Never infer a stage or paraphrase
a basis. With no citable fact, ask the user which mode to run and record the
answer. Do not synthesise a basis. With conflicting facts, record both facts and surface the conflict at the user checkpoint. A user
override records mode_override as true but must never erase the original mode_basis.
No incumbent yet is valid in explore and distinct from an incomplete packet: record it as not yet existing, then
run a single blind proposal or state that this consultation shape does not apply.
An incumbent that exists but was not supplied is instead a missing packet section.
Candidate selection
Use references/executor-detection.md for the named skill handoff and its
failure mapping. Local, non-network capability observations may inform the
checkpoint, but neither an installed binary nor credentials establish model
availability. The named skill owns selection and pre-review verification after
authorization and disclosure. Never present an unverified candidate as a
verified capability.
The candidate set must support a genuinely independent opinion. No permitted
outside provider family means stop and report the failed precondition. A
same-family option cannot be counted as independent; ask for a different
provider if the user still wants an independent review, never silently swap. In
explore, one eligible candidate cannot serve as both proposer and judge;
surface the degraded choices at the checkpoint.
Authorization and the single checkpoint
For a qualifying direct user request, give this disclosure without asking the user to confirm the same review again. The direct request is the authorization source for one leg and the active task target; it does not approve a different provider, new target or broader material scope. For an ambiguous request or other opt-in, use a single checkpoint after routing and local observations, before any network-backed discovery, probe, dispatch, transmission, or money is spent. One ask carries the leg count, which executor runs which leg, the estimated cost, and the egress disclosure together, specifically:
- for consultations,
mode, verbatimmode_basis, and any conflict or override; for explicit reviews, the owning task type and review skill; - leg count and every executor-to-leg assignment;
- for each outside leg, either an exact model and effort or explicit permission
to select a model after consent within a named provider family and allowed
effort levels; Antigravity may instead record
allowed_familiesexcluding the incumbent's family, with the concrete family chosen after discovery; always recordreview_root, the CLI starting directory; - estimated cost per leg (
unknown, with the reason, never as zero and never omitted when unknowable; a genuinely zero cost stays zero, not unknown); and - the full egress and local-execution disclosure below.
Record authorization_source as either the direct request quotation, target and
final selected_executor, or the answer at that checkpoint. For a direct
request, do not mark the cost, egress,
filesystem and local setup disclosures as individually acknowledged; record
that they were shown before execution. For a checkpoint answer, require the
missing choices explicitly and do not treat a partial answer as approval. If
the executor set or material scope changes, renew authorization and repeat
cost estimation and disclosure. Never carry a previous observation or cost
figure into the changed set.
Continue in the same active turn after disclosure for a clear direct request, through discovery, preflight, execution and the owning review's result validation. Reuse the existing authorization instead of waiting for another user answer. Keep the consent record distinct from host execution approval; it does not grant that approval. Carry the original user request, exact review target, destination vendor and minimized packet scope into any required narrowly scoped host execution request through the host's existing request mechanism. Respect the host's decision; consent JSON alone never establishes host approval. Report a required second user answer as failed uninterrupted-execution acceptance, even when the host requires that answer before execution. Do not end the turn at disclosure, ask whether to send the scoped material, or make a second answer a condition of starting. Report an actual host refusal as an incomplete review and preserve the refusal instead of attempting a bypass. Cancellation, ambiguity and material scope expansion still follow the choice rules above; this continuation rule grants no additional access or retry.
The egress disclosure
For every leg, name the vendor that receives material (or every permitted
vendor for post-consent Antigravity selection), packet categories, and the
review_root. Enumerate known wider paths and explain that the CLI may read
outside that root through host tools or configuration. Approval of the
cost only never authorizes either data transfer
or local execution. Before dispatch, say plainly:
- The inspected packet is smaller than what the executor may read:
scope_boundaryincludes reachable paths outsidereview_root. Enumerate the known wider paths and what they cover, and say that paths outside the root may also be reachable. Do not promise a filesystem read limit from the selected working directory. - A no-hit scan may say the packet was checked and nothing matched; it is not a safety claim or wording that carries that meaning about the readable scope or what leaves.
- Answering also runs third-party code in the user's repository on this machine—its instructions, hooks, skills and MCP servers—even if nobody read it first. CLI startup, plugins and caches may write files even when model tools are restricted. If a pinned executor's setup is unknown, state that it cannot be enumerated in advance.
- If the audit record retains material verbatim rather than references and summaries, state its location at this checkpoint and give it the same restrictions as the dispatch packet.
Record filesystem_access_outside_root and filesystem_write_not_guaranteed
as disclosures shown. A named direct request needs no second confirmation;
otherwise require the missing authorization before dispatch. If cancellation follows an external call, report that material was
already transmitted to the named vendor and cannot be recalled.
External execution evidence
After the complete record and disclosure, hand each selected leg to loom-code:external-review
using the same consent record and review_root. That named skill owns
candidate discovery, explicit model and effort selection, pre-review execution,
CLI-specific evidence levels and failure status. Record its JSON evidence and
never turn an unavailable, mismatched, timed-out or unverified result into a
completed leg. A materially different profile needs renewed authorization and
disclosure. A frontier request cannot silently downgrade.
The blind judge and proposer must differ, and both opposite-order judge runs use identical accepted executor, model and effort settings. Each run uses a fresh process and is verified separately.
Three roles and blind judging
In explore, use three distinct roles:
proposer: sees the problem, constraints, and rejected options with reasons, but never the incumbent;normalizer: compresses both answers into matching cards without changing either claim; andblind judge: compares the anonymized cards without origin labels.
The exact packet sections and shared-card template live in
references/dispatch-protocol.md; load and follow it before dispatch, including
its explicit unowned artifact-review exception for unavailable history.
For open-ended consultations, hold the request until every required section is present, naming each missing section
rather than filling it in. An unreadable evidence path counts as a missing section; never infer or silently drop it. Mark genuinely empty sections. If
the material cannot exist, the run ends before any spending path and retains
the partial packet.
Normalisation compresses; it never rewrites: it may not change what either proposal claims. Reject and redraft a card that adds a source claim. When the normalizer authored the incumbent, that is disclosed in the report unsoftened.
The proposer never sees the incumbent solution in its packet—not quoted, summarized, or paraphrased. Any leak means that leg is void. Retry an empty output with the same blind packet, incumbent-free and with no prior challenger output.
Both bias controls are mandatory
- Anonymisation treats identity bias: remove direct origin labels and indirect tells such as register, length, and first person.
- Order counterbalancing treats position bias: judge the same pair in two runs in opposite presentation orders, each in a fresh executor process with no shared transcript, session, or cache, and record that isolation.
These are two separate controls and either one alone is insufficient. Neither substitutes for the other or for the second run: a prompt reminder is not a substitute for a second run. Reusing one session for both orders invalidates the pair. Reject a pair anonymised but judged in a single order; one judged in both orders with the origins visible; one where only the forward run carries a verdict; or a judge learning the incumbent, which voids every verdict from that leg. De-anonymize only after every scheduled swap run has a verdict. Opposite verdicts are recorded as inconclusive rather than averaged.
After normalisation, if both cards make substantially the same claim, degrade to a single leg, skip blind judging, and disclose that result. This is available never before normalisation.
The report
Load references/report-contract.md for field order, rejection keys, and worked
wording. The rules below remain binding wherever the report is stored.
- Lead with
divergence_points: the divergence points are the body and agreement never opens the report. With none, write that no divergence point was found and allowinconclusivewithout inventing support. - Every divergence or finding says whether it is a factual error or a judgement call, gives confidence and the concrete change proposed, and records resolution.
- The report is a read-only record: later adoption changes only an item's resolution, not verdict, findings, or actual cost. Editing the target is outside this consultation's scope.
- Mechanically check every leg; its own claim of completion proves nothing. Reject each under its own distinguishable reason: empty output; a refusal; a missing template field; output that restates its own input; an unchecked claim marked fabrication suspect; or no reasoning trace. A missing template field is not retried blind; only the empty-output retry described above is permitted.
- Put
degraded_legsand failure attribution in the report body. If no leg produced usable output, deliver a failure report naming every leg's failure. Record unprobed tiers as having no verification evidence; independent defects are listed separately; report actualleg_countandearly_stopped. corroborated_bynames legs; their count is not an input toconfidence. Agreement measures the sample, not the world.known_weaknessesmust state that ensembling and order reversal do not detect a blind spot shared by all reviewers.- Completeness claims never appear in the report, in any language the report is written in. Without a
coverage_disclaimer, delivery is refused.actual_costincludes probes and failed/cancelled legs; when unknowable, write unknown with its reason, never zero or the estimate. - Mark every externally authored and untrusted passage, including findings and divergences; that marking travels with the report to downstream agents.
What the report may claim
Blindness concerns the packet, not everything the proposer could read. Before
claiming it, ask whether scope_boundary could contain the incumbent. If yes or
unknown, make no unconditional blindness claim; qualify it in place: the packet omitted the incumbent, but the
reachable files may describe it, so the answer is not guaranteed blind. Claim
full blindness only when that boundary cannot reach incumbent material and state
the basis. Wherever this applies, state the qualification where blindness is claimed.
A no-hit pre-dispatch scan reports only what the scan checked and its
non-matches; it is never a safety verdict, never a claim that content was
safe or nothing sensitive left. Every report states on its own line that the
guarantee covered the dispatch packet and material readable within
scope_boundary was not subject to it; without this and the
coverage disclaimer, refuse delivery.
A pinned revision is only where the packet was extracted from; it is not what was reviewed. Never say the executor reviewed that commit, branch, or tree; it reviewed the packet. State if the target moved after pinning.
04 同仓库更多 Skills
using-loom-workflow
Route broad Loom workflow-tool requests to the right skill. Use when the request spans tools or the right workflow skill is unclear.
skill-retro
Review selected past or current Claude Code or Codex sessions against readable target skill sources and related integration. Produce source-linked proposals without applying changes.
recap-state
Give an in-session recap of current progress for 'where were we', '我們剛剛在幹嘛', '剛剛講到哪', '我跟丟了', 'ちょっと振り返って', '今どこだっけ', or '振り返り'. The built-in /recap is an away-summary.
project-retro
Review one current or specified coding session for source-backed project development improvements. Use for a requested retrospective, including 振り返り seeking improvements; not for current-progress recaps or recurring skill mining.
loom-visualization
Show comparisons, flows, decisions, states or reasoning chains as tables, ASCII or Mermaid in coding chat, including when a Loom station reports to the user (intent restatement, choices, acceptance test results); not Obsidian notes.
loom-memory
Record repo-wide lessons when saving to your own memory or asked to remember; recall, reconcile, or forget them when a task needs it.