plugin/plangate/skills/skill-policy-router/SKILL.md
Intent と Mode を受け取り、必要な Skill・ゲート要件(GatePolicy)を返す。Use when: 依頼の Intent と Mode が確定した後、どの Skill とゲートが必要かを決定したい時。「どのスキルが必要か教えて」「ゲートポリシーを決めて」「Mode に応じた手順を教えて」。
npx skillsauth add s977043/plangate skill-policy-routerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Intent と Mode を入力として受け取り、必要な Skill とゲート要件(GatePolicy)を structured JSON で返す。
GATE POLICY IS DETERMINED BY MODE, NOT BY INTENT
GatePolicy の必須 / 任意判定は Mode によって決まる。 Intent はスキルの優先度や追加推奨にのみ影響する。
| こう思ったら | 現実 | |---|---| | 「小さな feature だから approval 不要」 | Mode が high-risk ならば Intent に関わらず approval は必須 | | 「docs なら worktree は不要では?」 | Mode が high-risk なら docs でも worktree が必要 | | 「ultra-light なら全部スキップでいい」 | verify は ultra-light でも必須 |
{
"requiredSkills": ["<skill-name>", "..."],
"optionalSkills": ["<skill-name>", "..."],
"requiresUserApproval": "<boolean>",
"requiresEvidence": "<boolean>",
"requiresFailingTestFirst": "<boolean>",
"requiresWorktree": "<boolean>"
}
Skill 識別子:
| 識別子 | 対応 Skill / 行動 |
|--------|----------------|
| think | 設計・計画の立案(plan.md 生成) |
| hunt | コードベース調査(Grep / Glob 探索) |
| check | セルフレビュー(self-review Skill) |
| tdd | テスト駆動開発(failing test first) |
| verify | 受け入れ検査(test-cases.md 突合) |
| worktree | 独立ブランチでの作業(worktree 分離) |
| review | 外部レビュー(human / external AI) |
| approval | 人間の明示的承認取得 |
| フィールド | ultra-light | light | standard | high-risk | critical | |-----------|------------|-------|----------|-----------|---------| | requiredSkills | verify | check, verify | think, check, verify | think, approval, worktree, tdd, check, review, verify | think, approval, worktree, tdd, review, verify | | optionalSkills | check | think, hunt | hunt, tdd | — | — | | requiresUserApproval | false | false | recommended | true | true | | requiresEvidence | false | false | true | true | true | | requiresFailingTestFirst | false | false | conditional | true | true | | requiresWorktree | false | false | false | true | true |
standard の補足:
requiresUserApproval=recommended: 人間確認を強く推奨するが必須ではないrequiresFailingTestFirst=conditional: TDD が optional として推奨されるcritical の追加要件:
以下のフォーマットで入力を受け取る:
{
"intent": "<feature|bug|refactor|research|review|docs|ops>",
"mode": "<ultra-light|light|standard|high-risk|critical>"
}
mode が不明な場合は standard をデフォルトとして使用する。
intent が不明な場合は feature をデフォルトとして使用する(Intent は GatePolicy に影響しない)。
「Mode 別ポリシー表」から対応する行を読み取り、ベース GatePolicy を構築する。
Intent に応じて optionalSkills を追加・調整する:
| Intent | 推奨 optionalSkills 追加 |
|--------|------------------------|
| feature | think(未追加の場合) |
| bug | hunt(原因調査のため) |
| refactor | check(品質確認のため) |
| research | — |
| review | check |
| docs | — |
| ops | verify(デプロイ検証のため、未追加の場合) |
ただし、requiredSkills に既に含まれている Skill は optionalSkills に重複追加しない。
構築した GatePolicy を structured JSON で出力する。
{
"input": {
"intent": "<intent>",
"mode": "<mode>"
},
"policy": {
"requiredSkills": ["<skill-name>"],
"optionalSkills": ["<skill-name>"],
"requiresUserApproval": true,
"requiresEvidence": true,
"requiresFailingTestFirst": true,
"requiresWorktree": true
},
"notes": "<特記事項(critical の追加要件等)>"
}
入力: { "intent": "docs", "mode": "ultra-light" }
出力:
{
"input": {
"intent": "docs",
"mode": "ultra-light"
},
"policy": {
"requiredSkills": ["verify"],
"optionalSkills": ["check"],
"requiresUserApproval": false,
"requiresEvidence": false,
"requiresFailingTestFirst": false,
"requiresWorktree": false
},
"notes": ""
}
入力: { "intent": "feature", "mode": "high-risk" }
出力:
{
"input": {
"intent": "feature",
"mode": "high-risk"
},
"policy": {
"requiredSkills": ["think", "approval", "worktree", "tdd", "check", "review", "verify"],
"optionalSkills": [],
"requiresUserApproval": true,
"requiresEvidence": true,
"requiresFailingTestFirst": true,
"requiresWorktree": true
},
"notes": ""
}
tools
PlanGate の TASK-XXXX 作業コンテキストを Progressive Disclosure で読込・更新する。Use when: セッション再開時、フェーズ遷移時、status.md/current-state.md/handoff.md を更新したい時。
development
Evaluate and improve an existing Codex skill using explicit success criteria and small controlled changes. Use when the user asks to optimize a skill, reduce over-triggering or under-triggering, improve reliability, tighten instructions, or add evals for a skill. Also trigger on "スキルを改善して", "スキルを最適化して", "スキルの品質を確認して".
development
Create an operating policy and roadmap for a live portfolio of Codex skills. Use when the user asks to organize, govern, audit, measure, retire, or scale skills already used by a team or repository. Also trigger on "スキルの運用計画", "スキルポートフォリオ", "スキルロードマップ", "スキルを整理して".
development
Design a new Codex skill from a concrete use case and produce a repo-ready skill package. Use when the user asks to create a new skill, define a skill's responsibility, draft SKILL.md, choose frontmatter, design supporting files, or prepare eval criteria for a new skill. Also trigger on "スキルを作りたい", "スキルを作って", "スキルを追加して", "新しいスキル", "SKILL.md生成".