skill-policy-router

skill-policy-router is a skill for Claude Code from s977043/PlanGate. It costs 93 tokens per session (2,580 once invoked), scanned A, original, MIT.

A routing tool that takes a confirmed task type and operating mode, then returns the coding skills and required checks for that situation. Its rules distinguish which safeguards are required by the mode rather than by the task type.

In plain words
What is it for?
Use it after deciding an intent and mode to determine which skills to use, which checks are mandatory, and which additional skills are recommended.
Why use it?
Choosing procedures by guesswork can apply the wrong checks or miss required ones. This provides a consistent mapping from the task’s mode to its gate policy.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents); mentions Codex.

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Good fit Use it after deciding an intent and mode to determine which skills to use, which checks are mandatory, and which additional skills are recommended.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

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 skill-policy-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/plangate/skill-policy-router/github.svg)](https://agentmods.dev/skills/s977043/plangate/skill-policy-router)
Your own site
<a href="https://agentmods.dev/skills/s977043/plangate/skill-policy-router"><img src="https://agentmods.dev/badge/skills/s977043/plangate/skill-policy-router/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-policy-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/plangate/skill-policy-router"><img src="https://agentmods.dev/badge/skills/s977043/plangate/skill-policy-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,580 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.
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.00093 $0.02580
Opus 5 $0.00046 $0.01290
Sonnet 5 $0.00019 $0.00516
Haiku 4.5 $0.00009 $0.00258

Measured 10d ago against content hash 4356b4dce51f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

skill-policy-router 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 10d 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.

.agents/skills/skill-policy-router/SKILL.md · 214 lines

How it starts

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

Skill Policy Router

正本(sync 元): .agents/skills/skill-policy-router/SKILL.mdscripts/sync-plugin-plangate.sh.agents/skills/ を読み取り plugin/plangate/skills/ を機械生成する。.claude/skills/.codex/skills/ は sync 対象外の配布先のため、正本更新時に同一内容を手動で追従させる。

Intent と Mode を入力として受け取り、必要な Skill とゲート要件(GatePolicy)を structured JSON で返す。

参照解決順(.claude/rules/*.md / 導入先で必ずこの順に探す)

本 Skill は Mode / lite_eligible の定義正本として .claude/rules/mode-classification.md を 参照する(§Iron Law / §lite_eligible の扱い)。このパスは上流リポジトリ基準のため、導入先では 次の順で探索する:

  1. 導入先リポジトリの .claude/rules/mode-classification.md
  2. 無ければ plugin root 配下 <plugin_root>/rules/mode-classification.md<plugin_root>Bash で ls "${CLAUDE_PLUGIN_ROOT}/rules/" を実行して展開・確認した 絶対パス(Read ツールは絶対パスを要求し環境変数を展開しないため、${CLAUDE_PLUGIN_ROOT}/... という文字列をそのまま Read しない)。変数が空・未設定ならキャッシュを glob で推測せず 3 へ進む
  3. どちらにも無い場合は 「正本 mode-classification.md を参照できなかった」と明示し、 推測で内容を補わない

Iron Law

GATE POLICY IS DETERMINED BY MODE, NOT BY INTENT

GatePolicy の必須 / 任意判定は Mode によって決まる。 Intent はスキルの優先度や追加推奨にのみ影響する。

Mode の定義・判定基準(変更ファイル数・リスク・lite_eligible)は .claude/rules/mode-classification.md が単一正本。本スキルは確定済み Mode を入力として受け取り GatePolicy へ写像するのみで、Mode 自体は判定しない。下の「Mode 別ポリシー表」は Mode→GatePolicy の写像であり Mode の定義ではない(重複定義ではない)。

Common Rationalizations

こう思ったら 現実
「小さな feature だから approval 不要」 Mode が high-risk ならば Intent に関わらず approval は必須
「docs なら worktree は不要では?」 Mode が high-risk なら docs でも worktree が必要
「ultra-light なら全部スキップでいい」 verify は ultra-light でも必須

GatePolicy 型定義

{
  "requiredSkills": ["<skill-name>", "..."],
  "optionalSkills": ["<skill-name>", "..."],
  "requiresUserApproval": "<boolean>",
  "requiresEvidence": "<boolean>",
  "requiresFailingTestFirst": "<boolean>",
  "requiresWorktree": "<boolean>"
}

Skill 識別子:

識別子 対応 Skill / 行動
think 設計・計画の立案(plan.md 生成)
hunt コードベース調査(Grep / Glob 探索)
check セルフレビュー(diff-audit Skill、旧 self-review)
tdd テスト駆動開発(failing test first)
verify 受け入れ検査(test-cases.md 突合)
worktree 独立ブランチでの作業(worktree 分離)
review 外部レビュー(human / external AI)
approval 人間の明示的承認取得

Read the full file on GitHub · 214 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. 10d ago First seen · 214 lines · 93 tokens per session scan A 4356b4dce51f

Subscribe to this mod's changes

skill-policy-router is a skill published in the GitHub repository s977043/PlanGate (2 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 2,580 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

skill-maintenance

Automated skill maintenance tool (v6 — Unified Registry + Snapshots). Full scan: [Orphan] migrate misplaced skills from category dirs OR standalone skills/&lt;name&gt;/ to auto-generated/, [Sync] auto-generated/ vs registry lifecycle diff (new/deleted/revived + description auto-sync via lifecycle field), [Reg]…

jiangyuxue666/hermes-soul-governance · 123 tokens

extract

Run the full Semantica semantic extraction pipeline on a file or selected text — NER, relations, events, coreference resolution, triplets, and validation. Clears result cache before each run. Returns Markdown tables with entity/relation/event/triplet results and inline validator warnings.

semantica-agi/semantica · 59 tokens

watch

File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through /do. Use for automatic reactions to file changes; do NOT use for…

SethGammon/Citadel · 70 tokens

live-preview

Mid-build visual verification loop. Takes screenshots of components during construction, not just after. Catches visual regressions and invisible features before they compound. Requires Playwright or similar screenshot tool.

SethGammon/Citadel · 40 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

marshal

Meta-orchestrator that takes any direction — broad, specific, or vague — and autonomously chains skills and context into actionable work. Gathers context from codebase, docs, and memory. Only asks the user when it genuinely cannot proceed. Single-session orchestrator.

SethGammon/Citadel · 56 tokens