Zum Inhalt springen
Skillpedia
Dokumentation10k · #11880

egm-drift-report

Was er macht

Dieser Skill vergleicht Designdokumente mit dem tatsächlichen Code und listet die Unterschiede auf. Er ist für Teams gedacht, deren Dokumentation hinter der Software zurückbleibt.

Wann du ihn nutzt

  • ✓Wenn du vermutest, dass der Code nicht mehr zu seinen Designdokumenten passt.
  • ✓Wenn du alle Designdokumente oder READMEs eines Ordners auf Übereinstimmung prüfen willst.
  • ✓Wenn du eine Liste von Funktionen brauchst, die in den Dokumenten stehen, aber im Code fehlen.

Link zum Skill

https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe alle Designdokumente in unserem Dokumentenordner gegen den Code und sag mir, wo sie nicht mehr stimmen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die KI listet jedes Designdokument auf, findet die passenden Quelldateien, liest den aktuellen Code und vergleicht beides. Fehlende Funktionen, geänderte Abläufe und andere Abweichungen werden in einem Bericht festgehalten.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

  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.
Häufige Fragen

Was gilt als Abweichung?

Jede Lücke zwischen dem, was ein Dokument beschreibt, und dem, was der Code tatsächlich tut.

Was passiert, wenn ein Dokument seinen Code nicht nennt?

Die KI sucht nach den Klassen oder Funktionen, die das Dokument erwähnt, und fragt dich eventuell nach Links.

Behebt der Skill die Abweichungen?

Seine Aufgabe ist ein Bericht über die Abweichungen.

Details

Originalbeschreibung des Autors

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.

repo: google/elephant-goldfish-model

Beliebtheit

GitHub-Sterne
10k
Platz im Ranking
#11880
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills