plugin/plangate/skills/review-gate/SKILL.md
Review Gate を実施し、実装の仕様準拠・品質・セキュリティを 6 観点でレビューする。Use when: 実装完了後にレビューをしたい時。「Review Gate を通したい」「コードレビューをして」「実装の品質確認をしたい」「severity を確認したい」。
npx skillsauth add s977043/plangate review-gateInstall 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.
実装後に 6 観点でレビューを行い、critical finding を Completion Gate に伝達する。
NO MERGE WITHOUT TWO-STAGE REVIEW
severity=critical の finding がある場合、fix なしに Completion Gate を通過させない。
| こう思ったら | 現実 | |---|---| | 「テストが通ったからレビュー不要」 | テスト通過はロジック正確性の一部に過ぎない。セキュリティ・仕様準拠は別途確認が必要 | | 「小さな変更だから critical は出ない」 | 規模に関わらず 6 観点でチェックせよ。1 行の変更でも脆弱性は混入する | | 「外部レビューを受けたから大丈夫」 | review type の EvidenceItem として記録せよ。記録なき承認は存在しない |
/pg-check を実行して finding を収集する# 差分レビューを実行して severity 付き finding を取得する
/pg-check <対象ブランチ or PR番号>
/pg-check の Findings を以下の 6 観点に分類する:
| # | 観点 | チェック内容 | |---|------|------------| | 1 | 仕様準拠 | 受入基準・設計書との一致 | | 2 | コード品質 | 可読性・命名・構造の明確さ | | 3 | セキュリティ | 入力バリデーション・認証・認可・機密情報 | | 4 | パフォーマンス | N+1 クエリ・ループ内 I/O・不要データ取得 | | 5 | テスト不足 | カバレッジ・エッジケース・重要パスの未テスト | | 6 | 破壊的変更 | 後方互換性・API 変更・スキーマ変更 |
severity=critical が 1 件以上 → Completion Gate をブロックseverity=major が 1 件以上(high-risk / critical Mode)→ 推奨または強制ブロック以下のフォーマットで出力する(「出力フォーマット」セクション参照)。
[REVIEW GATE] BLOCKED
reason: severity=critical の finding が <N> 件あります。fix 後に再レビューが必要です。
| 観点 | Finding | Severity | 対応 | |-----|---------|---------|------| | 仕様準拠 | <finding または「なし」> | <severity> | <対応内容> | | コード品質 | <finding または「なし」> | <severity> | <対応内容> | | セキュリティ | <finding または「なし」> | <severity> | <対応内容> | | パフォーマンス | <finding または「なし」> | <severity> | <対応内容> | | テスト不足 | <finding または「なし」> | <severity> | <対応内容> | | 破壊的変更 | <finding または「なし」> | <severity> | <対応内容> |
**総合判定**: PASS / BLOCK(critical: N件, major: N件)
→ Completion Gate: PASS / BLOCKED
{
"id": "review-gate-001",
"type": "review",
"reviewer": "review-gate skill",
"outputExcerpt": "critical: 0件, major: N件",
"conclusion": "Review Gate PASS / BLOCKED"
}
review-gate.md(正本 - ブロック条件・Mode 別適用条件)/pg-check(差分レビュー・finding 収集)evidence-ledger(EvidenceItem 記録手順)review-principles.md(レビューの姿勢・禁止事項・False-positive ガード)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生成".