egm-drift-report — скилл для Claude Code: поиск расхождений
Скилл egm-drift-report для Claude Code сверяет дизайн-документы и README с кодом. Запускается по явному запросу на поиск расхождений или проверку согласованности файлов в каталоге.
Apache-2.0 583 установок ★ 21 935 обновлён 2026-11-15
npx skills add google/elephant-goldfish-model --skill egm-drift-report -a claude-codeЧто делает egm-drift-report
Скилл сравнивает дизайн-документы и README с текущим кодом и собирает найденные расхождения в один отчёт. Он проверяет пропущенные функции и поля моделей, жёстко заданные значения вместо запланированной логики, а также отличия в архитектуре и библиотеках. В отчёт попадают только различия; если документ совпадает с кодом, для него указывается No drift detected.
Скилл последовательно обрабатывает файлы и дописывает результат в {YYYY-MM-DD}_DRIFT_REPORT.md, по отдельной секции на каждый документ. Для поиска исходников он использует названные в документе файлы и символы, а если явных путей нет — поиск по коду. Автоматический вызов отключён: проверку запускают явной просьбой.
Какие задачи решает
- найти функции из документа, которых нет в коде
- сверить поля классов и структур с проектной спецификацией
- обнаружить жёсткие значения вместо описанной динамической логики
- выявить расхождения между README и реализацией
Примеры запросов агенту
- Найди расхождения между всеми дизайн-документами в этом каталоге и кодом.
- Проверь README в каталоге на соответствие текущей реализации.
- Сверь дизайн-документы с исходниками и запиши найденные различия в отчёт.
Как установить egm-drift-report
1Через Skills CLI (Vercel)
npx skills add google/elephant-goldfish-model --skill egm-drift-report -a claude-code2Вручную: положить файлы
~/.claude/skills/egm-drift-report/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/egm-drift-report/
1Через Skills CLI (Vercel)
npx skills add google/elephant-goldfish-model --skill egm-drift-report -a codex2Вручную: положить файлы
.agents/skills/egm-drift-report/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add google/elephant-goldfish-model --skill egm-drift-report -a cursor2Вручную: положить файлы
.cursor/skills/egm-drift-report/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install google/elephant-goldfish-model skills/egm-drift-report2Вручную: положить файлы
.github/skills/egm-drift-report/SKILL.md1Через Skills CLI (Vercel)
npx skills add google/elephant-goldfish-model --skill egm-drift-report -a gemini-cli2Командой платформы
gemini skills install https://github.com/google/elephant-goldfish-model --path skills/egm-drift-reportВручную: положить файлы
.devin/skills/egm-drift-report/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add google/elephant-goldfish-model --skill egm-drift-report -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об egm-drift-report
Как установить egm-drift-report в Claude Code?
Выполни npx skills add google/elephant-goldfish-model --skill egm-drift-report -a claude-code. Скилл устанавливается в ~/.claude/skills/egm-drift-report/SKILL.md.
Что делает egm-drift-report?
Скилл сопоставляет дизайн-документы и README с текущим кодом, затем записывает только обнаруженные расхождения в {YYYY-MM-DD}_DRIFT_REPORT.md.
Вызывается ли egm-drift-report автоматически?
Нет. Автоматический вызов отключён, поэтому проверку запускают явной просьбой найти расхождения или проверить согласованность документов и кода.
Исходный текст
SKILL.md · Apache-2.0
---
name: egm-drift-report
license: Apache-2.0
disable-model-invocation: true
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.
---
# Detect Drift In Designs and Code
When running in Codex or ChatGPT Work, first read [Codex integration](../../docs/codex.md).
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:
```markdown
## <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.
© google · Apache-2.0 · google/elephant-goldfish-model