egm-drift-report
What it does
This skill compares design documents with the actual code and lists the differences. It is for teams whose documentation may have fallen behind the software.
When to use it
- ✓When you suspect the code no longer matches its design documents.
- ✓When you want a consistency check across all design docs or READMEs in a folder.
- ✓When you need a list of features described in docs but missing from the code.
Skill link
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Check all the design docs in our docs folder against the code and tell me where they no longer match.”
5 new skills a week. 1 minute to read.
How it works
The AI lists each design document, finds the matching source files, reads the current code and compares the two. It records missing features, changed behavior and other differences in a report.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
What counts as drift?
Drift is any gap between what a document describes and what the code actually does.
What if a document does not name its code?
The AI searches for the classes or functions the document mentions and may ask you to add links.
Does the skill fix the differences?
Its job is to produce a report of the differences.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 10k
- Ranking position
- #11880
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
egm-bootstrap
10kHelps your agent add or fix README files across a project's folders, using a clear description of each part's job.
egm-brainstorm
10kHelps your agent turn a rough idea into a clear, reviewed concept summary through questions and critical review.
egm-draft
10kHelps your agent write a design document one section at a time, starting from an agreed concept summary or your notes.
egm-resolve
10kHelps your agent work through review findings on a design document, applying clear fixes and asking you about the rest.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.