egm-drift-report
できること
このスキルは、設計文書と実際のコードを比べ、その違いを一覧にします。文書がソフトウェアに追いついていないかもしれないチーム向けです。
使う場面
- ✓コードが設計文書と合っていないのではないかと疑うとき。
- ✓フォルダ内のすべての設計文書やREADMEに、整合性の確認をかけたいとき。
- ✓文書には書かれているのにコードにはない機能の一覧がほしいとき。
スキルのリンク
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ドキュメントフォルダにあるすべての設計文書をコードと照らし合わせ、どこが合っていないか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは各設計文書を一覧にし、対応する元のファイルを見つけ、現在のコードを読んで両者を比べます。欠けている機能、変わった動作、その他の違いを報告書に記録します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Detect Drift In Designs and Code
When running in Codex or ChatGPT Work, first read Codex integration.
In Claude Code or Cowork, read ${CLAUDE_PLUGIN_ROOT}/docs/claude.md first.
When the user asks to detect drift across all designs or a set of READMEs, the goal is to identify all instances where the codebase has diverged or failed to implement the specifications described by those designs or READMEs.
Check Input: Verify a directory containing design documents or READMEs is provided. If not provided, ask the user to specify the target directory.
List Documents: List all files in the design directory.
Analyze: For EACH design document:
- Contextualize: Read the design document. Identify the intent, proposed changes, and specific filenames/symbols mentioned.
- Locate Source: Find the corresponding source code files in the source tree. If paths aren't explicit, use code search or grep to locate the relevant classes, functions, or API endpoints mentioned in the doc. Prompt the user to add missing links to the document to make future detection cheaper.
- Verify: Read the current state of those source files.
- Detect Drift: Compare the design vs. reality. Look specifically for:
- Missing Features: Logic described in the doc but absent in the code.
- Incomplete Models: Dataclasses/Classes/Structs/Protos missing fields specified in the design.
- Logic Shortcuts: Hardcoded values where dynamic logic was planned.
- Architectural Divergence: Implementation using different patterns/libraries than proposed.
- Filter: Report ONLY the differences. Do not describe what is working or what matches. If the code matches the design perfectly, output "No drift detected."
Report: Produce a single report listing all discrepancies found.
Append the analysis for each file to
{YYYY-MM-DD}_DRIFT_REPORT.mdusing your file-writing tool.Strict Format:
## <DESIGN_DOC_NAME> <Bulleted list of specific divergences found> <Or "No drift detected">
Guidance
- Be rigorous. If a design doc mentions a specific object, field or file name and the code doesn't have it, that is a reportable drift. Double check for coverage. If there is some part of the logic that is not referenced in a design or README, this is a reportable drift.
- Read files liberally to ensure you are looking at the current state of the code, not relying on memory.
- Process the files sequentially to ensure the tool output buffer doesn't overflow.
よくある質問
ドリフトとは何ですか?
ドリフトとは、文書が説明している内容と、コードが実際に行っていることとの間のずれのことです。
文書がコードの名前を挙げていない場合はどうなりますか?
AIは文書が言及しているクラスや関数を検索し、リンクの追加をお願いすることもあります。
このスキルは違いを修正しますか?
その役割は、違いの報告書を作ることです。
詳細
作者による元の説明
Runs drift detection on all design documents to check for document and code consistency. Produces an actionable report with differences. Use when the user asks to detect drift or check for consistency across all design documents or READMEs in a directory.
人気
- GitHubのスター
- 10k
- ランキング
- #11880
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
egm-bootstrap
10kエージェントが、プロジェクトのフォルダ全体にREADMEファイルを追加・修正し、各部分の役割を明確に説明できるよう支援します。
egm-brainstorm
10kエージェントが、あいまいなアイデアを質問と批判的なレビューを通じて、明確で検証された概念の要約に変えられるよう支援します。
egm-draft
10kエージェントが、合意された概念の要約やあなたのメモを基に、設計文書を1つのセクションずつ書けるよう支援します。
egm-resolve
10kエージェントが、設計文書に対するレビューの指摘を1つずつ解決し、明確な修正は適用して、残りの判断はあなたに確認できるよう支援します。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。