advisor-gate

advisor-gate is a skill for Claude Code, Codex from yohey-w/kagemusha. It costs 145 tokens per session (15,262 once invoked), scanned A, original, MIT.

A decision-making procedure for asking a high-quality external AI model for advice on an important choice. It checks whether the available facts are sufficient, prepares the question, and reviews the reply afterward.

In plain words
What is it for?
Preparing structured requests for difficult technical, business, or project decisions. It helps identify unknown facts, assess answer reliability, and turn advice into tracked findings.
Why use it?
It prevents vague consultations that produce answers without a clear decision or enough supporting facts. It also records findings so later consultations do not repeat the same issues.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Preparing structured requests for difficult technical, business, or project decisions. It helps identify unknown facts, assess answer reliability, and turn advice into tracked findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yohey-w/kagemusha/advisor-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yohey-w/kagemusha --skill advisor-gate
Clone the repo
git clone --depth 1 https://github.com/yohey-w/kagemusha

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for advisor-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/yohey-w/kagemusha/advisor-gate.svg)](https://agentmods.dev/skills/yohey-w/kagemusha/advisor-gate)
Your own site
<a href="https://agentmods.dev/skills/yohey-w/kagemusha/advisor-gate"><img src="https://agentmods.dev/badge/skills/yohey-w/kagemusha/advisor-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 15,262 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00145 $0.15262
Opus 5 $0.00072 $0.07631
Sonnet 5 $0.00029 $0.03052
Haiku 4.5 $0.00015 $0.01526

Measured 7d ago against content hash 5afe07452527, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

advisor-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/skills/advisor-gate/SKILL.md · 1,035 lines

How it starts

The opening of the file, as written. The whole thing — 1,035 lines — stays where its author put it; the contents beside it link to each section on GitHub.

advisor-gate

外部の高品質モデルへの諮問プロンプト生成・検収手順

English abstract — This is a procedure, not a prompt library. Before writing a consultation prompt for a frontier model, the agent must (1) fix a decision contract (what will change as a result of the answer), (2) enumerate decision pivots — facts whose alternative values would flip the conclusion — and classify each as PRESENT / BOUNDED / UNKNOWN / REDACTED / NOT-MATERIAL, (3) judge sufficiency as A (decidable) / B (conditional) / C (do not generate a prompt), and only then fill the standard template. It deliberately replaces "give MECE context", which has no completion test, with a procedural criterion that does. After the answer arrives it is stored verbatim, converted into a findings ledger keyed by (target × failure mechanism × impact) so later consultations cannot re-earn the same point, and gated by decision severity. Written mainly in Japanese; the structure is language-independent.

置き場所のプレースホルダ — 本文中の保存先は次の記号で書く。自分の環境の実パスへ読み替えること。

記号 意味
<state_dir>/ 実行時の状態・作業ファイル置き場 local/state/
<state_dir>/advisor_answers/ 外部AI回答の逐語と検収カード local/state/advisor_answers/
<state_dir>/advisor_answers/findings_ledger.yaml 指摘台帳(§5.2のスキーマ) 同上
<decision_journal> 採用裁定の追記先(追記のみ) judgment/decisions_journal.md

置き場所の規約は3つだけ。①回答は逐語で1ファイル(加筆・整形・要約をしない)②検収カードは回答ファイルの末尾に併記(逐語と検収を1枚で開く)③指摘台帳は回答とは別ファイル(次回はこちらを渡し、回答全文は渡さない)。

目的

外部の高品質モデル(frontier級・拡張思考を持つ最上位の推論モデル)へ手で貼り付ける/APIで投げる「外部諮問プロンプト」を、AIエージェントが一貫した手順で生成し、返ってきた回答を検収する。

対象は、システム設計レビュー、文書批評、値付け、商談判断、発信戦略、キャリア相談などを問わない。 宛先を選ばない——拡張思考を持つ最上位モデルであれば、どのベンダーのものでも成り立つように書いてある(宛先固有の設定は、自分の環境側に1箇所だけ書く。§7を見よ)。

使う線引き: これは「日常の作業モデルへの発注」ではなく、一発で最大限の頭を使いたい重要な判断のレビューのための型である。安い作業モデルへ細かい仕事を投げるときにこの手順を回すのは過剰——そちらは普通の作業指示でよい。

本手順書が最適化するものは、次の4点である。

  1. 回答が具体的で、そのまま実装・修正・意思決定へ接続できること。
  2. オーナーの仮説や希望への自動追従を避けること。
  3. 渡された対象の内側だけでなく、フレーム外・境界面・未提示領域の穴を指摘できること。
  4. 継続諮問で同じ指摘を言い換えて繰り返させないこと。

外部AIの回答は原文のまま保存する。ただし、外部AIの発言だけを根拠に「事実」へ昇格させてはならない。回答は、事実ではなく「外部レビュー結果」「提案」「仮説」「リスク指摘」のいずれかとして扱い、採用裁定と実測結果を別に記録する。

Read the full file on GitHub · 1,035 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 1,035 lines · 145 tokens per session scan A 5afe07452527

Subscribe to this mod's changes

advisor-gate is a skill published in the GitHub repository yohey-w/kagemusha (6 stars, last pushed yesterday), licensed MIT. It adds 145 tokens to every session and 15,262 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.