1
    🧭 Doc Drift Detector

    🧭 Doc Drift Detector

    Catch documentation that drifted from your code. Flags functions and methods named in your docs that are gone from the source, CLI flags documented but missing from the arg parser, env vars the docs mention but the code never reads, example imports of modules that no longer exist, and npm scripts or Make targets your docs reference but the project does not define. Cross-references your README and docs against Python and JS/TS source.

    Updated Jun 2026
    Security scanned
    Cursor

    $13

    · or 65 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Identify functions mentioned in READMEs that no longer exist in source code
    • Find deprecated environment variables still listed in deployment guides
    • terminal, file_read automation included
    • Ready for Cursor
    • Instant install

    Sample input

    Check if my README.md and API.md still match the current codebase. Highlight any stale environment variables or missing functions.

    Sample output

    Documentation Drift Found

    • Rule ID: STALE_ENV_VAR
    • Severity: High
    • File: README.md:42
    • Message: 'API_TIMEOUT_MS' is documented but not found in source or .env.example.
    • Evidence: export API_TIMEOUT_MS=5000
    • Remediation: Update docs to 'REQUEST_TTL'.

    About This Skill

    What it does

    Doc Drift Detector is a specialized automated auditor designed to ensure your READMEs and Markdown documentation stay in sync with your actual codebase. It scans your project to identify "ghost" references—functions, CLI flags, environment variables, and scripts that are mentioned in your docs but have been deleted or renamed in your source code.

    Why use this skill

    Manual documentation reviews are error-prone and often skipped during fast-paced development. This skill automates the tedium of cross-referencing string literals in docs against code definitions. Unlike a generic AI prompt, it utilizes a structured scanning workflow that targets specific high-risk areas like package.json, Makefiles, and framework-specific env configurations, providing severity ratings and remediation steps for every discrepancy found.

    Supported tools

    • Languages: Python, JavaScript, TypeScript
    • Config Files: package.json, Makefile, Markdown
    • Detection Scopes: Function signatures, CLI flags, Environment variables, Import paths

    Use Cases

    • Identify functions mentioned in READMEs that no longer exist in source code
    • Find deprecated environment variables still listed in deployment guides
    • Verify that Makefile commands and package.json scripts match documentation
    • Audit CLI flag references in docs against actual argument parser logic

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Read Files

    File Scopes

    doc-drift-detector/**
    **/*.md
    **/README*
    **/*.py
    **/*.js
    **/*.ts
    **/*.jsx
    **/*.tsx
    package.json
    Makefile

    Read-only. It reads both the docs and the source and cross-references them, then prints findings with rule id, severity, file, and line. Ignores node_modules, dist, build, and vendor. Writes nothing and reads no environment variables.

    Works with any agent that can read a repo and run a local Python script (Claude Code, Cursor, Codex CLI, and other SKILL.md-compatible agents). Standard library only, no install step. Read-only.

    Frequently Asked Questions

    $13