Skip to content
cccskills
FreePublished on GitHub

adversarial-review

敵対的分析手法を統合したレビューの entry skill。

認知バイアス対策の3手法 (Pre-mortem / War Game / Logic Torturing)と、宣言・主張と実態の乖離を突く claim-vs-actual 検出3パターン(Self-Contradiction / Refactor-Claim Audit / Cross-File Leakage)へルーティングし、通常のレビューでは見えない設計の盲点・ 防御の穴・論理の弱点・宣言と実装のズレを可視化する。

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md7.3 KB
  • references/TECHNIQUES.md6.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Adversarial Review(敵対的レビュー)

通常のコードレビューは「正しさの確認」に集中する。 敵対的レビューは 「どう壊れるか」「どう攻撃されるか」「どこが論理的に弱いか」 に集中する。

背景 / Background

AIをレビューに使う最大の価値は、情報の整理ではなく 思考の死角を映す鏡 としての活用にある。 このスキルは、2系統の敵対的手法を体系化し、レビューの質を根本的に引き上げる。

認知バイアス対策(思考の死角)

手法対策するバイアス核心の問い
Pre-mortem生存バイアス・楽観バイアス「失敗したとして、なぜ?」
War Game自己中心バイアス「敵の立場から、どう攻撃する?」
Logic Torturing確証バイアス「この論理の穴を潰して」

claim-vs-actual 検出(宣言・主張と実態の乖離)

手法対象とするズレ核心の問い
Self-Contradiction宣言と同一ファイルの実装「規則 X を宣言した本人が破っていない?」
Refactor-Claim Audit完了主張と残骸「『全部やった』を grep で反証できる?」
Cross-File Leakage構造変更と caller 側「直したのは変更元だけ、参照元は?」

When to Use / いつ使うか

  • 設計判断やアーキテクチャ変更を含むPRのレビュー時
  • セキュリティに影響する変更のレビュー時
  • 重要な技術選択の妥当性を検証したいとき
  • 「本当にこれで大丈夫か?」という不安があるとき

Routing / ルーティング

入力に応じて、適切な手法へルーティングする。複数手法の併用も可能。

キーワード手法スキルID
失敗, リスク, 負債, インシデント, pre-mortemPre-mortempre-mortem
攻撃, セキュリティ, 悪用, 脆弱性, war-gameWar Gamewar-game
論理, 判断, 根拠, なぜ, 代替案, logicLogic Torturinglogic-torturing
自己矛盾, contradiction, 宣言と実装, declared butSelf-Contradictionself-contradiction
削減, 完了, 全て置換, all replaced, -N%, リファクタRefactor-Claim Auditrefactor-claim-audit
caller, 残骸, 参照漏れ, 再採番, leakageCross-File Leakagecross-file-leakage
敵対的, adversarial, 全部, フル全手法実行上記6つすべて

デフォルト動作

  • キーワード指定なし → 変更内容から自動判定:
    • 設計ドキュメント/ADR → Pre-mortem + Logic Torturing
    • セキュリティ関連コード → War Game + Logic Torturing
    • 一般的なコード変更 → Logic Torturing
    • 宣言的フレーズ(「禁止」「必ず」「MUST」等)を含む変更 → Self-Contradiction
    • 完了主張(「全置換」「-N%」等)を含む commit/PR → Refactor-Claim Audit
    • 構造変更(再採番・シンボル改名・分割)を含む変更 → Cross-File Leakage
    • 大規模変更(ファイル数10以上or差分500行以上)→ 全手法実行

Execution Flow / 実行フロー

1. 変更内容の分類
   ├─ 設計/ADR → Pre-mortem を優先実行
   ├─ セキュリティ関連 → War Game を優先実行
   ├─ 判断を含む変更 → Logic Torturing を実行
   ├─ 宣言的フレーズ → Self-Contradiction を実行
   ├─ 完了主張 → Refactor-Claim Audit を実行
   └─ 構造変更 → Cross-File Leakage を実行

2. 各手法の実行(並列可能)
   ├─ Pre-mortem: 失敗シナリオ × 最大5件
   ├─ War Game: 攻撃シナリオ × 最大5件
   ├─ Logic Torturing: 論理検証 × 最大5件
   ├─ Self-Contradiction: 宣言と実装の乖離 × 最大5件
   ├─ Refactor-Claim Audit: 完了主張の反証 × 最大5件
   └─ Cross-File Leakage: caller 側残骸 × 最大5件

3. 統合サマリの生成
   ├─ 重複する指摘の統合
   ├─ 重大度による優先順位付け
   └─ Human Handoff 条件の判定

Output Format / 出力形式

## 🔍 Adversarial Review Summary

### 検出された盲点: N件

- Pre-mortem: X件 (失敗シナリオ)
- War Game: Y件 (攻撃シナリオ)
- Logic Torturing: Z件 (論理的な穴)
- Self-Contradiction: A件 (宣言と実装の乖離)
- Refactor-Claim Audit: B件 (完了主張の反証)
- Cross-File Leakage: C件 (caller 側残骸)

### 最も重大な発見

<最も致命的な1件の要約>

### 詳細

(各手法の出力を統合)

他スキルとの関係

既存スキル関係棲み分け
architecture-risk-register補完risk-register は「リスクが文書化されているか」を確認。Pre-mortem は「文書化されていないリスクを発見」する
security-basic補完security-basic は既知パターン(SQLi, XSS等)を検出。War Game は「既知パターンに当てはまらない攻撃経路」を発見する
adr-decision-quality補完adr-decision は ADR の形式品質を確認。Logic Torturing は「記述された判断の論理的強度」を検証する

References

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

<What this skill does>

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Review changes to the Agent Skills import/export bridge for path safety, round-trip fidelity, and validation correctness.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Checks whether AI-assisted work defines review criteria, accessible context, explicit review loop, human judgment boundary, and feedback capture before delegating to an agent.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Detects per-caller special-cases (bandaids) bolted onto shared infrastructure/common functions, and when two or more same-kind special-cases exist proposes generalizing the lower-level mechanism instead.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

See all skills by s977043

Report a problem with this skill