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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-06
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- 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
02 资源文件 4
- 参考文档agents/openai.yaml204 B
- 资产文件assets/icon.svg281 B
- 参考文档test_scenarios.yaml1.3 KB
- 参考文档TEST.md130 B
03 SKILL.md 正文
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.
04 同仓库更多 Skills
arena
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.
arena
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.
guard
Full safety mode: destructive command warnings + directory-scoped edits. (gstack)
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback