Agent Skills › google/elephant-goldfish-model › egm-drift-report

egm-drift-report

GitHub

检测设计文档或README与代码实现之间的漂移和不一致,生成包含具体差异的 actionable 报告。

skills/egm-drift-report/SKILL.md google/elephant-goldfish-model

Trigger Scenarios

用户要求检测设计文档与代码的一致性 用户要求检查目录中所有设计文档或 README 的漂移情况

Install

npx skills add google/elephant-goldfish-model --skill egm-drift-report -g -y
More Options

Use without installing

npx skills use google/elephant-goldfish-model@egm-drift-report

指定 Agent (Claude Code)

npx skills add google/elephant-goldfish-model --skill egm-drift-report -a claude-code -g -y

安装 repo 全部 skill

npx skills add google/elephant-goldfish-model --all -g -y

预览 repo 内 skill

npx skills add google/elephant-goldfish-model --list

SKILL.md

Frontmatter
{
    "name": "egm-drift-report",
    "license": "Apache-2.0",
    "description": "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.",
    "disable-model-invocation": true
}

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.

Version History

  • 7bd119c Current 2026-11-07 08:56

Same Skill Collection

distributions/claude/skills/egm-bootstrap/SKILL.md
distributions/claude/skills/egm-brainstorm/SKILL.md
distributions/claude/skills/egm-draft/SKILL.md
distributions/claude/skills/egm-drift-report/SKILL.md
distributions/claude/skills/egm-resolve/SKILL.md
distributions/claude/skills/egm-review-loop/SKILL.md
distributions/claude/skills/egm-review/SKILL.md
skills/egm-bootstrap/SKILL.md
skills/egm-brainstorm/SKILL.md
skills/egm-draft/SKILL.md
skills/egm-resolve/SKILL.md
skills/egm-review-loop/SKILL.md
skills/egm-review/SKILL.md

Metadata

Files
0
Version
7bd119c
Hash
c000ffe2
Indexed
2026-11-07 08:56

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 12:18
浙ICP备14020137号-1