doc-drift/detector #9

Open
iswa wants to merge 2 commits from doc-drift/detector into master
Owner
No description provided.
iswa added 2 commits 2026-03-20 08:26:42 -07:00
Scans CLAUDE.md and PRD.md for verifiable code references — backtick
file paths, API route patterns (METHOD /api/...), and bare *.jsx
component names — then cross-checks each against the filesystem and
server/src/routes/ source tree.

Prints a per-reference PASS/FAIL table with source doc and line number.
Exits non-zero on any drift so it can gate CI.

Run with: node scripts/doc-drift.js

Nightshift-Task: doc-drift
Nightshift-Ref: https://github.com/marcus/nightshift
- Use grep -rE (ERE) instead of BRE \| alternation for BSD/macOS compat
- Add doc-drift section to CLAUDE.md Testing section with usage and purpose

Nightshift-Task: doc-drift
Nightshift-Ref: https://github.com/marcus/nightshift
This pull request has changes conflicting with the target branch.
  • CLAUDE.md
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin doc-drift/detector:doc-drift/detector
git checkout doc-drift/detector
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iswa/budget-app#9