lizthedeveloper/shipping-skills/detect-drift

Claude Code and agent skill by lizthedeveloper/shipping-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when checking whether documentation, tests, or specs still match the code — or when setting up scheduled automation to check it repeatedly. Covers the three drifts (documentation, test, spec/implementation), how to detect each, and why they are the best candidates for unattended routines. Use when a green test suite is not reassuring, when docs are suspected stale, or when asked "what should I automate?"

Install

npx vskill@latest install lizthedeveloper/shipping-skills/detect-drift

SKILL.md

The same SKILL.md was published earlier as lizthedeveloper/shipping-skills/detect-drift.

Detect Drift

Three things rot silently while the code moves: the documentation, the tests, and the spec. None of them break a build. Nobody is reminded to check. By the time drift is noticed it is usually via a regression that "should have been caught".

This makes drift the single best candidate for scheduled automation. It is unattended, repeatable, tied to a clear outcome, and — importantly — it needs no deploy authority. A drift routine reads and files issues. It changes nothing. That puts it comfortably on the safe side of the automation line.

The three drifts

Documentation drift

The docs describe a system that no longer exists. This is worse than having no docs, because stale docs are trusted.

Detect: re-derive the documentation from the current code and diff it against what is committed. Flag any section that references an endpoint, table, config key, environment variable or symbol that no longer exists — those are mechanically checkable and are most of the value.

Report as: a list of specific stale statements, each with the line that contradicts it. Not "the docs are out of date".

Test drift

The suite is green and no longer tests anything that matters. Common shapes:

  • Assertions that cannot fail (assert response is not None)
  • Endpoints or branches added since the last review with no coverage
  • Tests that would still pass if the feature were deleted
  • Mocks that have drifted from the thing they mock, so the test verifies the mock

Detect: flag tests with no meaningful assertion, and code paths added since the last run with no corresponding test. The strongest version is mutation-style: deliberately break a behaviour and confirm the suite actually goes red. A test that does not fail when the behaviour breaks is not a test.

This matters far more when the tests and the code were written by the same agent in the same pass — the failure mode is a suite that is perfectly consistent with the implementation and indifferent to the requirement.

Spec / implementation drift

The spec says one thing, the code does another. Neither looks wrong in isolation, which is exactly why this survives review.

Detect: walk each requirement or acceptance criterion and check there is both an implementation and a test. Produce three lists:

  1. Criteria with no implementation — silently dropped
  2. Criteria with an implementation but no test — where the next regression comes from
  3. Behaviour in the code with no corresponding criterion — scope that arrived without a decision

The third list is the one people find most uncomfortable and most useful.

A document is not a ref for the code it describes

Documentation drift has a sharper case buried inside it: a document that was accurate when written, and is now read as though it still is. Date every measurement, and name the ref it was taken on. An undated measurement stated in the present tense reads as current for as long as the document survives — nothing in the sentence itself marks it as having a shelf life.

One project's vision-audit.md asserted a figure in the present tense and tagged the line [executed], while a test file on the same commit carried the identical figure under the header "this is a historical record, not the current measurement." Two documents on main, contradicting each other — and the misleading one was the one people actually read. It cost two agents a full investigation each before anyone noticed the second document existed at all.

Index a docs directory by kind

An undated, unlabeled docs directory invites exactly this. Mark every file by what kind of claim it is making:

  • Authoritative — a decision. If the code disagrees, either the code is wrong or the doc needs amending on purpose.
  • Measured — a record of something observed, at a ref, on a date. It ages; it does not get rewritten to stay current — a new observation is a new entry.
  • Deferred — decided early, for a release that has not arrived yet.

Without the index, work gets re-derived that was already sitting in the directory — invisible, because nothing on the file said what kind of document it was. Two audits were commissioned in one project that repeated exactly this.

Running it as a routine

Schedule these; do not rely on remembering.

  • Weekly is right for documentation and spec drift. Daily is noise.
  • Per release for test drift, as part of the pre-promotion checks.
  • Have it open issues, deduplicated, rather than post a report nobody reads. See the wire-telemetry skill for the errors-to-issues pattern — this is the same mechanism.
  • Give the routine repository and issue-tracker access and nothing else. It reads and files; it does not fix, and it does not deploy.

Resist the temptation to have it auto-fix what it finds. A drift routine that also edits produces a stream of unreviewed changes, which is the problem it exists to detect.

Reporting

Every finding needs to be actionable on its own:

  • The specific claim that is now false
  • The evidence — file and line, or the test that passes when it should not
  • What changed underneath it, if determinable

Report an empty result plainly. "No drift found in X, Y, Z" is a real outcome and should be stated, not padded. If a check could not run, say which and why — a skipped check silently reported as clean is the worst possible output.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lizthedeveloper/shipping-skills/detect-drift/badge)](https://verified-skill.com/skills/lizthedeveloper/shipping-skills/detect-drift)

Something wrong with this skill or its page? Tell us.