テスト観点レビュー(差分ドリブン)
Skill7 starsChanged 5 months agoMITView on GitHub
変更差分から重要なテスト観点と欠落を洗い出し、優先度付きでテストケース案を提示する
In this repository140 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- static/llms.txtllms.txt
- ask-codexSkill
- river-review-disciplineSkill
- skill-creatorSkill
- skill-ops-plannerSkill
- skill-optimizerSkill
- commandsSkill
- adversarial-reviewSkill
- review-teamSkill
- river-review-architectureSkill
- river-review-codeSkill
- river-review-docsSkill
- river-review-frontendSkill
- river-review-performanceSkill
- river-review-security-auditSkill
- river-review-securitySkill
- river-reviewSkill
- river-review-testingSkill
- unknown-coverage-reviewSkill
- Coverage and Failure Path GapsSkill
- Flaky Test Risk CheckSkill
- GitHub Actions Workflow Security ReviewSkill
- Standard Review Policy for DownstreamSkill
- Test Assertion Effectiveness 常に PASS するテストの検出Skill
- Test Presence for Changed CodeSkill
- Test Naming and StructureSkill
- a11y Accessible Name BasicsSkill
- Agent Skill Bridge ReviewSkill
- Altitude Generalization GuardSkill
- API Compatibility and Test Gap ReviewSkill
- Assumption Resolution Trace Plan の前提解消トレーサビリティSkill
- Async Correctness 非同期処理の正しさ検証Skill
- Behavior-Structure Separation 振る舞い変更と構造変更の分離・外部挙動維持Skill
- Closure Scope Retention GuardSkill
- Component Variants / States Documentation コンポーネント状態の文書化Skill
- Configuration File ReviewSkill
- Cross-File Leakage リファクタ後の caller 側残骸検出Skill
- Design Source-of-Truth Conformance デザイン定義準拠Skill
- Design System Component Reuse GuardSkill
- Design Token EnforcementSkill
- Detector Detection Power 検査器の検出力の検証Skill
- Documentation Hygiene ドキュメント衛生Skill
- End-to-End Wiring 末端到達・貫通の検証Skill
- Existing-Pattern Conformance 既存パターン準拠の確認Skill
- Firebase Security Rules ReviewSkill
- Fix Scope Integrity 指摘対応ループのスコープ逸脱・前提破壊検出Skill
- GitHubレビューコメント対応(修正案つき)Skill
- Hallucinated Reference 幻覚的参照の実在確認Skill
- Hello Skill (Always-On Sample)Skill
- i18n Unused Key ReviewSkill
- Impact Evidence Coverage 影響・失敗系・外部依存の証拠充足Skill
- Independent Review SynthesisSkill
- Invisible Unicode Injection Scan 不可視 Unicode コード注入検出Skill
- Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全Skill
- Laravel Eloquent N+1 and Query Efficiency ReviewSkill
- Laravel Mass Assignment and Authorization ReviewSkill
- The first 60 shown.
The file
Files
Pattern declaration
Primary pattern: Reviewer Secondary patterns: Inversion Why: テスト観点レビューはチェックリスト型評価が主だが、実行パスへ影響するコード変更が差分にない場合は実行を止める必要がある。
Goal / 目的
- 差分で増えた挙動に対して、抜けやすいテスト観点を洗い出し、最小限のテストケース案を優先度付きで提示する。
Non-goals / 扱わないこと
- 完成したテストコードを書くこと。フレームワークの宗教論争(Jest/Vitest 等)は避ける。
- 既存テストが差分を十分にカバーしている場合に、無用な追加を要求しない。
Pre-execution Gate / 実行前ゲート
このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。
- 差分にソースコード(
src/**/*,lib/**/*)またはテストファイル(*.test.*,*.spec.*,tests/**/*)の変更が含まれている - 実行パスへ影響する変更が差分に含まれている(ドキュメントや設定値のみの変更ではない)
- inputContextにdiffが含まれている
ゲート不成立時の出力: NO_REVIEW: test-plan-review — テスト観点レビューの対象となるコード変更が検出されない
False-positive guards / 抑制条件
- すでにテスト差分が含まれ十分なカバレッジが見える場合は
NO_ISSUES。
Rule / ルール
- 影響範囲の分解
- 変更された機能/データ/契約/権限/失敗パスを列挙し、どこが新規/変更/削除かを整理。
- 観点の抽出
- 正常系・異常系(バリデーション、認可、タイムアウト、リトライ、境界値、並行実行)・データ永続化・互換性(前方/後方)を観点ごとにまとめる。
- テストケース案(最大 6 件)
- 各ケースで「前提/操作/期待」を 1 行ずつ書く。クリティカルパスを優先。
- 既存テストがあれば補強ポイントだけを示す(例: ブランチカバレッジ不足)。
- リスクと優先度
- 見逃すと障害・データ破壊・セキュリティインシデントにつながる箇所は
severity=critical|majorを明記。
- 見逃すと障害・データ破壊・セキュリティインシデントにつながる箇所は
- 情報不足時の質問
- 要件・仕様が不明な箇所は仮説として記し、確認質問を添える。
Output / 出力
- すべて日本語。
<file>:<line>: <message>形式。場所不明は(summary):1:や(test-case):1:を使う。 - Summary 1 行の後にテストケース案を列挙:
TestCase: <前提> | <操作> | <期待> [severity=critical|major|minor] - 質問は
[q] <内容>として短く書く。最大 10 行。
評価指標(Evaluation)
- 合格: 差分に紐づくテスト観点が整理され、優先度付きの最小ケース案と確認質問がある。
- 不合格: 差分と無関係な一般論、既存テストを無視した過剰要求、根拠のない断定。
人間に返す条件(Human Handoff)
- 仕様が未確定でテスト期待値を断定できない場合。
- 互換性ポリシーやリリース方針が不明で、テスト範囲の判断が分かれる場合。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

