review-code
Skill8 starsChanged 2 months agoMITView on GitHub
PRベースの多角的コードレビューを実行する。 小規模な差分は直接レビューし、独立した成果物や競合仮説があり調整コストを上回る場合だけ必要な数のsubagentを並列起動する。指摘箇所のコード実在確認・ WebSearchによる公式ドキュメント裏取りでハルシネーションを防止する。 各指摘に前提知識・公式リファレンスURLを付与し教育的なレビューを提供する。 言語・フレームワークを自動検出し、プロジェクト設定+公式ガイドラインに基づくレビューを実施。 以下の場合に使用: (1) PRのコードレビューを依頼されたとき (2) git diffに対するコードレビュー (3) マージ前の品質チェック (4) コードの改善提案が欲しいとき
69 other projects use a version of this.
Adopted by
Most recently taken up by
- Moriarty33/jb-kaizentheir own version, first seen Nov 8, 2026
- serionist/claude-session-restoretheir own version, first seen Nov 8, 2026
- GeiserX/sstacktheir own version, first seen Nov 8, 2026
- GeiserX/agent-skillstheir own version, first seen Nov 6, 2026
- GeiserX/claude-skillstheir own version, first seen Nov 6, 2026
- 0xdeafcafe/skillstheir own version, first seen Nov 6, 2026
Used with
Projects with it also use audit-test-suite, change-data-safely and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
yaohuangguanSkillaudit-test-suite
Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.
Also in 3 projects that use this
yaohuangguanSkillchange-data-safely
Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.
Also in 3 projects that use this
mrdulasolutionsSkillclear-caches
Clear extension caches, analysis data, and drafts from the database. Use when testing sender lookups, analysis, or draft generation from a clean state.
Also in 3 projects that use this
GeiserXSkilldocs-loop
Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.
Also in 3 projects that use this
mrdulasolutionsSkillelectron-devtools-testing
Test the Electron app interactively using Chrome DevTools Protocol. Use when the user asks to test, verify, or interact with the running app via browser automation.
Also in 3 projects that use this
GeiserXSkillfull-loop
Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.
Also in 3 projects that use this
- +1 more from mrdulasolutions
- +4 more from GeiserX
- +1 more from yaohuangguan
Other versions69 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 69
- penpot/penpot★ 62ksame name
- pnpm/pnpm★ 37ksame name
- verdaccio/verdaccio★ 18ksame name
- NVIDIA-NeMo/DataDesigner★ 2.4ksame name
- OpenAEV-Platform/openaev★ 1.8ksame name
- bazel-contrib/rules_python★ 692same name
- wataru-maeda/react-native-boilerplate★ 521same name
- ankitvgupta/exo★ 494same name
- ankitvgupta/mail-app★ 494same name
- ninehills/skills★ 280same name
59 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-efficiency-auditSkill
- dry-codingSkill
- exploratory-testSkill
- graph-think-mapSkill
- guided-codeSkill
- handoffSkill
- issue-analysisSkill
- karin-infoSkill
- local-repo-finderSkill
- milestone-triageSkill
- pr-comment-planSkill
- pr-generatorSkill
- print-debugSkill
- private-isu-tuningSkill
- property-based-testSkill
- propose-pi-extensionsSkill
- research-questionerSkill
- skill-zipSkill
- ts-lint-searcherSkill
The file
Files
Code Review: 多角的PRレビュー
核心原則
- 教育的レビュー: 指摘ごとに「なぜ問題か」の理由と、理解に必要な前提知識・公式ドキュメントURLを提示する
- 証拠ベース: すべての指摘は
file:lineで特定し、Readでコード実在を確認済みであること - ハルシネーション防止: API仕様・言語仕様に言及する場合は
WebSearchで公式ドキュメントを裏取りする - コード変更禁止: レビューのみ。修正は行わない
入力処理
$ARGUMENTS の内容に応じて:
- GitHub PR URL:
gh pr view --jsonでPR情報を取得(diff, comments, files, body) - ブランチ名:
git diff main...{branch}で差分取得 - 引数なし: 現在のブランチの
git diff main...HEADを使用
Phase 1: Context Collection(コンテキスト収集)
目的: レビュー対象の差分取得 + プロジェクトの言語・フレームワーク・lint設定を把握
Step 1: 差分取得
- PR URL →
gh pr view --jsonで構造化情報取得 - ブランチ →
git diffで差分取得 - 変更ファイル一覧と変更行数を把握
- 未追跡ファイルを含める:
git diffは未追跡(新規)ファイルを出力しない。git status --shortの??とgit ls-files --others --exclude-standardで新規ファイルを列挙し、内容を直接 Read してレビュー対象に加える
Step 2: 言語・フレームワーク自動検出
- lang-detection.md に従い、設定ファイルを
Glob→Readで検出 - 検出結果: 言語、フレームワーク、linter設定
Step 3: 公式レビューガイドラインの取得
- lang-detection.md の「動的参照戦略」に記載された
site:付き検索クエリを使用する site:付きで公式ドキュメントに限定して検索する(例:site:typescriptlang.org,site:go.dev)。見つからなければ「公式未確認」と明記する- 検索クエリに現在の年を含めて最新ドキュメントを優先する
WebFetchで公式ドキュメントページの詳細を取得し、Phase 2 の Agent D に渡す
Phase 1 出力: 差分サマリー、検出言語/FW、lint設定、取得した公式ガイドライン
Phase 2: Multi-perspective Review(多角的レビュー)
目的: 必要な観点を独立してレビューし、指摘を比較できるようにする
小規模な差分は親が直接レビューする。独立した成果物や競合仮説があり、調整コストを上回る場合のみ、必要な観点数の Task(Explore) を並列起動する(固定数を必須にしない)。起動する場合も、以下の候補から必要な観点だけ選び、各agentは他のagentの結果を知らない。
各agentに渡す情報:
- 差分(git diff 出力)
- 変更ファイルの全体コンテキスト(
Readで変更関数の前後を含む) - Phase 1 で検出した言語・FW情報
Agent A: Correctness — ロジックの正確性、エラーハンドリング、要件一致 Agent B: Security & Performance — セキュリティ脆弱性、パフォーマンス問題 Agent C: Design & Maintainability — 設計品質、可読性、テスト網羅性 Agent D: Language-specific — 言語固有の観点(公式ガイドライン + プロジェクトlint設定ベース)
各agentの出力スキーマ: review-dimensions.md を参照
Phase 3: Synthesis & Verification(統合・検証)
目的: 指摘の品質保証と教育的レポートの生成
Step 1: 統合と重複排除
- 起動したagentの指摘を統合
- 同一箇所への重複指摘をマージ(重大度は高い方を採用)
Step 2: ハルシネーション防止チェック
- 全指摘の
file:lineをReadで再確認 - API仕様や言語仕様への言及を
WebSearchで裏取り(site:付きで公式ドキュメントに限定)
Step 3: 教育的リファレンスの付与 各指摘に対して:
- 前提知識: この指摘を理解するために必要な概念を簡潔に説明
- 公式リファレンス:
WebSearchで該当する公式ドキュメントのURLを取得し付与 - 学習ポイント: この指摘から学べること、同様の問題を今後防ぐ方法
Step 4: 重大度スコアリング
- severity-scoring.md に従い分類
- マージ判定(LGTM / 要修正 / 要検討)
出力フォーマット
## PR レビューサマリー
**対象**: {PR タイトル / ブランチ名}
**言語**: {検出された言語・フレームワーク}
**変更規模**: {ファイル数}ファイル, +{追加行} -{削除行}
## 強み
- {具体的に良い点} — `file:line`
## 課題
### 🚨 Critical(修正必須)
#### {問題タイトル}
- **箇所**: `file:line`
- **コード**: `引用`
- **問題**: {なぜ問題か}
- **改善案**: {具体的な修正方法}
- **前提知識**: {理解に必要な概念の簡潔な説明}
- **リファレンス**: [{ドキュメント名}]({URL}) — {該当セクション}
### ⚠️ Important(修正推奨)
{同一形式}
### 💡 Minor(提案)
{同一形式}
## 学習リソース
- [{概念名}]({公式ドキュメントURL}) — {この PR で特に関連する箇所}
## 評価
{マージ可否と理由(1-2文)}エラーハンドリング
| 状況 | 対応 |
| PR URLが無効 | 再入力を求める、またはブランチ名にフォールバック |
| 差分が巨大(1000行超) | 変更ファイルを重要度で優先順位付けし、上位を集中レビュー |
| 言語検出失敗 | Agent D をスキップし、必要な観点のagentだけで実行 |
| WebSearch で公式ドキュメントが見つからない | リファレンスなしで指摘を出力(「公式ドキュメント未確認」と明記) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

