agentleFS
LeostrukaLeostruka/devin-bundle/skills/drift-report/SKILL.md

drift-report

Skill0 starsChanged 3 months agoMITView on GitHub

Use when checking whether design documents, READMEs, or specs still match the code they describe. Reads each document, locates the referenced source files, and reports only concrete divergences in a dated drift report. Detection only; does not fix code or docs.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default targets when the user names none: docs/ and .devin/plans/ in this bundle.

    line 17
  2. Distinctive:

    If absent, ask the user to specify the target directory.

    line 25
  3. Distinctive:

    Contextualize: read the document; extract intent, proposed changes, and specific filenames or symbols mentioned.

    line 29
  4. Distinctive:

    Verify: read the current state of the source files with tools.

    line 35
  5. Very specific:

    Report: write findings to <YYYY-MM-DD>_DRIFT_REPORT.md in the project .devin/ directory when it exists, else the design directory.

    line 46
  6. Distinctive:

    Every claimed divergence cites the doc section and the code location actually read.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Drift Report (design vs code consistency)

Overview

Adapted from egm-drift-report in google/elephant-goldfish-model (Apache-2.0). Detects where the codebase diverged from or failed to implement what design documents describe. Report-only: divergences are evidence for a human decision or a follow-up task, never silently repaired in the same pass.

Default targets when the user names none: docs/ and .devin/plans/ in this bundle; in target projects, the directory of specs or READMEs the user points at. spec-consistency.py covers plan-file internals (checkboxes, declared refs); this skill covers doc-to-code fidelity.

Procedure

  1. Check input: require a directory of design documents or READMEs. If absent, ask the user to specify the target directory.
  2. List documents in the directory; process them sequentially to keep tool output under control.
  3. For EACH document:
    • Contextualize: read the document; extract intent, proposed changes, and specific filenames or symbols mentioned.
    • Locate source: find the referenced code via explicit paths, code search, or grep on the classes/functions/endpoints named. If the doc lacks links, tell the user to add them so future detection is cheaper.
    • Verify: read the current state of the source files with tools; never compare from memory.
    • Detect drift, looking specifically for:
      • Missing features: logic described in the doc but absent in code.
      • Incomplete models: dataclass/class/struct/proto fields the design specifies but the code lacks.
      • Logic shortcuts: hardcoded values where dynamic logic was planned.
      • Architectural divergence: implementation using different patterns or libraries than proposed.
    • Filter: report ONLY differences. When code matches the design, record "No drift detected" for that document.
  4. Report: write findings to <YYYY-MM-DD>_DRIFT_REPORT.md in the project .devin/ directory when it exists, else the design directory. Strict format per document:

    ## <DESIGN_DOC_NAME>
    
    <bulleted list of specific divergences>
    or "No drift detected"

Iron rules

  1. Report-only. Never edit code or docs to close a drift found in the same pass; record it and stop.
  2. Every claimed divergence cites the doc section and the code location actually read; no memory-based claims.
  3. "No drift detected" is a first-class result, not a failure.
  4. Be rigorous: a named object, field, or file absent from code is reportable drift; so is shipped logic unreferenced by any doc.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.