speckit.md-doctor.drift

speckit.md-doctor.drift is a command for Claude Code from arrrrny/zuraffa. It costs 42 tokens per session (1,012 once invoked), scanned A, original, MIT.

A follow-up documentation check that compares the repository with the previous MD Doctor scan. It rechecks earlier findings against commits, changed Markdown files, new search records, and refreshed test results.

In plain words
What is it for?
Use it after repository changes to reassess documentation drift for the whole project or one directory.
Why use it?
It shows which documentation problems were fixed, which remain, and which earlier recommendations are no longer relevant.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .specify/extensions/md-doctor/scripts/bash/md-doctor.sh drift --json > /tmp/md-doctor-delta.json.

Good fit Use it after repository changes to reassess documentation drift for the whole project or one directory.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/arrrrny/zuraffa
agentmods
npx agentmods add commands/arrrrny/zuraffa/speckit.md-doctor.drift

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for speckit.md-doctor.drift

README.md
[![agentmods](https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.md-doctor.drift/github.svg)](https://agentmods.dev/commands/arrrrny/zuraffa/speckit.md-doctor.drift)
Your own site
<a href="https://agentmods.dev/commands/arrrrny/zuraffa/speckit.md-doctor.drift"><img src="https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.md-doctor.drift/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for speckit.md-doctor.drift

Your own site · 80×15
<a href="https://agentmods.dev/commands/arrrrny/zuraffa/speckit.md-doctor.drift"><img src="https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.md-doctor.drift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,012 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01012
Opus 5 $0.00021 $0.00506
Sonnet 5 $0.00008 $0.00202
Haiku 4.5 $0.00004 $0.00101

Measured 7d ago against content hash dcc2d57a095a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

speckit.md-doctor.drift scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.specify/extensions/md-doctor/commands/speckit.md-doctor.drift.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MD Doctor — Drift (re-evaluate)

The "run it a week later" command. It loads the previous run's facts and ground truth, computes exactly what changed since then (git commits, changed .md files, new .memsearch records, refreshed TDD verdicts), and re-grades every previously scored file so you can say what is newly true, what is newly false, and which past suggestions were resolved or ignored.

User Input

$ARGUMENTS

Recognized modifiers:

  • --path <subdir>: re-evaluate only one subtree.
  • --json: emit the delta + re-graded facts as JSON.

With no input, re-evaluate the whole repo against the last run.

Preconditions

init or a prior scan must have run (there must be .specify/md-doctor/state/last-run.json and facts.json). If missing, stop and tell the user to run /speckit.md-doctor.init first.

Workflow

Phase 1: Compute the delta

bash .specify/extensions/md-doctor/scripts/bash/md-doctor.sh drift --json > /tmp/md-doctor-delta.json

(Dev fallback: bash <extension-root>/md-doctor/scripts/bash/md-doctor.sh drift --json.)

The delta contains:

  • prev_run.head / prev_run.timestamp — the last anchored run.
  • commits_since[] — commits between the last run's HEAD and current HEAD: what was implemented since.
  • md_changed_since[].md files git changed in that span.
  • memsearch_files_since[] — new daily records: what agents actually did.

Read the delta. Open any memsearch_files_since and skim commits_since subjects — these are the new ground truth since last week.

Phase 2: Re-score previously graded files

Load .specify/md-doctor/state/facts.json (last run's grades). For each file:

  • If it is in md_changed_since, its content changed → re-extract claims and re-grade from scratch against the new ground truth.
  • If a commits_since / memsearch_files_since entry resolves a claim the doc was wrong about, upgrade its verdict (e.g. falsestale if the code caught up).
  • If new ground truth contradicts a doc that was truthful, downgrade it (truefalse/stale).
  • Mark each file's status relative to last run: resolved (a past update/delete suggestion was applied), worsened, improved, or unchanged.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 98 lines · 42 tokens per session scan A dcc2d57a095a

Subscribe to this mod's changes

speckit.md-doctor.drift is a command published in the GitHub repository arrrrny/zuraffa (5 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,012 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.