comment-review
Skill0 starsChanged 51 days agoMITView on GitHub
コード内コメントを「検証すべき主張」として扱い、機械判定(lint)とAIによる実装一致検証の2層で精査する。AI駆動開発でコメントを書く/レビューする/コミット前にチェックするときに使う。
3 other projects use a version of this.
Adopted by
Most recently taken up by
- openkursar/hello-halotheir own version, first seen Nov 1, 2026
- Stirling-Tools/Stirling-PDFtheir own version, first seen Oct 8, 2026
- thaitype/skillstheir own version, first seen Mar 15, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Stirling-Tools/Stirling-PDF★ 96ksame name
- openkursar/hello-halo★ 1.9ksame name
- thaitype/skills★ 13same name
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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- deep-investigationSkill
- dev-setupSkill
- figma-impl-initSkill
- figma-implSkill
- pdf-bookletSkill
- pdf-booklet-template-designerSkill
- pr-descriptionSkill
- skill-creatorSkill
The file
Files
コメント精査
前提
AIはコード内コメントを疑わずに読み、設計書やFigmaより優先して実装の根拠にする。 そのためコメントの嘘・推測・感想は、そのまま誤った実装を生む。
コメントは lint も型チェックもテストも通らないため、**コードベース内で唯一「検証されない仕様書」**になっている。 このスキルはその検証を担う。
重大度の定義(すべての判断の基準):
- error = AIが根拠として採用すると、誤った実装を生むもの(嘘・推測・感想・いずれ陳腐化する情報・根拠不明の主張)
- warning = 採用されても害はないが、読むコストだけかかるもの
→ 詳細は references/severity.md
3層構成
| 層 | 実行タイミング | 手段 | 性質 |
| A. 機械判定 | pre-commit | scripts/comment-lint.mjs | 決定的・1秒未満・ブロックする |
| B. 一致検証 | pre-push / CI / レビュー時 | このスキル(AI判断) | 非決定的・報告のみ |
| C. 全体コードレビュー | Bの後 | 通常のレビュー | Bで意図が確定した状態から始める |
A→B→C の順で、安い工程から実行する。 Bで人間がコメントを確定させると、コメントが「AIの推測」から「承認された意図」に変わり、Cの検証基準として使えるようになる。
用途別の入口
コメントを書く/実装する
references/comment-rules.md を読み、残してよいコメントの条件に従う。
プロジェクトの CLAUDE.md / AGENTS.md に規約を入れる場合は assets/agent-rules.md を貼る。
コミット前に機械チェックする
前提: 対象リポジトリの scripts/comment-lint.mjs に実体が配置されていること。
未配置なら README.md の「導入手順 2」に従ってコピーする。
cp <このスキル>/scripts/comment-lint.mjs scripts/comment-lint.mjs一度きりの確認で配置したくない場合は、このスキルの scripts/comment-lint.mjs を
直接指して実行してもよい(設定ファイルはカレントディレクトリから読む)。
node scripts/comment-lint.mjs # ステージ済み差分
node scripts/comment-lint.mjs --all # 追跡中の全ファイル
node scripts/comment-lint.mjs --base <ref> # <ref> からの差分(CI向け)
node scripts/comment-lint.mjs --json # JSON出力終了コードは error があれば 1、設定ファイルが不正なら 2。
重大度と検査対象はリポジトリ直下の comment-lint.config.json で調整する(無ければ既定値)。
正当なコメントにも一致する4ルールは既定が warning なので、error に引き上げる前に
--all で件数を確認する。
ルールの一覧・設定キー・拡張方法・機械では判定できない範囲は references/lint-rules.md。
コメントと実装の一致を検証する(このスキルの中核)
references/consistency-check.md の手順に従う。
要点のみ:
- コメントを「正しい説明」ではなく検証すべき主張として扱う
- 信頼順位は 上位ソース(設計書・Figma・チケット) > 確認済みコメント > 実装 > 未確認コメント
- 報告だけを行う。コメントもコードも修正しない。どちらが正しいかは人間が決める
- 未確認コメントを根拠に「実装が誤り」と判定してはいけない。上位ソースがない矛盾は「判断不能」とする
人間がレビューする
references/review-checklist.md のチェックリストを使う。PRテンプレートにも転記できる。
このスキルがやらないこと
- コメント・コードの修正(判断は人間に返す)
- ロジック・設計・パフォーマンス・命名のレビュー(層Cの役割)
- 引用先の実在確認のうち外部API依存のもの(チケットの状態、Figmaのnode-id有効性)はCI側で行う
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.

