Claude-skill-registry drift-check

Detect documentation drift (docs out of sync with code). Use after changes, periodically, or when something feels wrong. Returns severity-rated findings with specific fixes.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/drift-check" ~/.claude/skills/majiayu000-claude-skill-registry-drift-check && rm -rf "$T"
manifest: skills/data/drift-check/SKILL.md
source content

Drift Check

Detect documentation rot by comparing code reality against documented expectations.

When to Use

  • After completing a feature or bug fix
  • Before starting work on unfamiliar area
  • When behavior doesn't match expectations
  • Periodically (weekly recommended)

Severity Levels

SeverityAreasAction Required
🔴 CriticalAuth/RLS wrong, billing docs incorrect, schema mismatchFix immediately
🟠 HighServer action undocumented, invariant violatedFix this session
🟡 MediumRoute missing from surfaces, stale checklistFix soon
🟢 LowMinor description inaccuracyTrack

Check Categories

  1. Server Actions vs Docs — Actions exist in code but not documented (or vice versa)
  2. Routes vs User Surfaces — Routes exist but not in feature doc tables
  3. Schema vs Data Model — Tables/columns don't match docs
  4. RLS vs Permissions Docs — Policies undocumented or incorrect
  5. Invariants vs Reality — Can't find code enforcing documented invariants
  6. Workflow Steps vs UI — Documented steps don't match actual UI

Quick Check Commands

# Count server actions
find app/actions -name "*.ts" | wc -l

# Count routes
find app -name "page.tsx" | wc -l

# Recent migrations (verify reflected in docs)
ls -lt supabase/migrations/ | head -5

Output

## Drift Check Report — [date]

**Scope**: [full / feature-name]

| Severity | Count |
|----------|-------|
| 🔴 Critical | [n] |
| 🟠 High | [n] |
| 🟡 Medium | [n] |
| 🟢 Low | [n] |

### Issues Found
[For each issue: category, location, finding, remediation]

### No Drift Found
[Areas checked with no issues]

Related