Catalog
google/egm-drift-report

google

egm-drift-report

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.

v1.0LATEST
NewUpdated Nov 6, 2026

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.

  1. Check Input: Verify a directory containing design documents or READMEs is provided. If not provided, ask the user to specify the target directory.

  2. List Documents: List all files in the design directory.

  3. 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."
  4. Report: Produce a single report listing all discrepancies found.

    • Append the analysis for each file to {YYYY-MM-DD}_DRIFT_REPORT.md using your file-writing tool.

    • Strict Format:

      ## <DESIGN_DOC_NAME>
      
      <Bulleted list of specific divergences found>
      <Or "No drift detected">
      
  5. 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.
Files5
5 files · 13.0 KB

Select a file to preview

Overall Score

81/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

85

Quality

82

Clarity

81

Completeness

75

Summary

The egm-drift-report skill guides an agent to detect inconsistencies between design documents and source code by reading design specs, locating corresponding source files, comparing them, and generating a structured drift report. The skill uses file reading and grep-style code search to map designs to implementations and report discrepancies.

Detected Capabilities

file readcode search/grepfile write (drift report output)project navigation

Trigger Keywords

Phrases that agents use to match this skill to user intent.

detect design driftcheck code vs designverify spec implementationfind undocumented changesaudit design consistencycompare design realityspec compliance checkimplementation gap analysis

Risk Signals

INFO

File write operation: outputs drift report to {YYYY-MM-DD}_DRIFT_REPORT.md

Step 4, Report section
INFO

Directive to 'read files liberally to ensure you are looking at the current state' — intentional repeated file reads for accuracy

Step 5, Guidance section
INFO

Reference to CLAUDE_PLUGIN_ROOT and conditional Codex/Claude integration paths

Preamble integration section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

www.apache.org

Use Cases

  • Check if implemented code matches design specifications
  • Identify missing features documented but not implemented
  • Detect architectural divergence from planned patterns
  • Find incomplete data models missing specified fields
  • Verify logic changes from design to implementation
  • Audit code for hardcoded values vs. dynamic logic
  • Ensure design documentation stays in sync with reality

Quality Notes

  • Clear, well-structured workflow with 5 explicit steps
  • Specific drift detection criteria provided (missing features, incomplete models, logic shortcuts, architectural divergence)
  • Emphasis on rigor and double-checking coverage is valuable for correctness
  • Output format is strictly defined with examples
  • Guidance section explicitly instructs sequential processing to avoid buffer overflow
  • Skill correctly narrows scope: reads design docs and source code, produces report — does not modify code
  • Test scenario included validates core behavior: detecting drift and reporting discrepancies
  • Minor: References to integration docs (Codex, Claude) assume context external to this skill; not critical but makes preamble slightly cryptic
Model: claude-haiku-4-5-20251001Analyzed: Nov 6, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use google/egm-drift-report in your dev environment

Command Palette

Search for a command to run...