njt2810/claude-code-framework/review-drift
Claude Code and agent skill by njt2810/claude-code-framework
- community
Checking that the SKILL.md file is still in the repository.
TRIGGER when: the user wants to check if the codebase matches the original spec, or says "check drift", "review drift", "does the code match the spec", "what diverged", "what changed from the plan", or wants to audit spec compliance after multiple features. DO NOT TRIGGER when: the user wants a code review (/code-review), security check (/security-check), or documentation audit (/document-all).
Install
npx vskill@latest install njt2810/claude-code-framework/review-driftSKILL.md
The same SKILL.md was published earlier as njt2810/claude-code-framework/review-drift.
Review Drift — Spec vs Code Alignment Check
When to Use
After building multiple features, before demos, before handoffs, or when something feels "off" from the original vision. Not for code reviews, security audits, or documentation cleanup.
Procedure
Detect where the codebase has diverged from its specifications, plans, and constitution. Useful after building multiple features, before demos, before handoffs, or when something feels "off" from the original vision.
Inspired by spec-driven development drift detection.
Step 1 — Gather Source of Truth Documents
Read ALL of these (skip any that don't exist):
constitution.md— project principles and constraintswiki/decisions/— all ADRs (architectural decisions)wiki/architecture.md— system designwiki/conventions.md— code patterns and standardswiki/PROJECT_STATUS.md— declared current stateCLAUDE.md— project rules and contextwiki/memory.md— accumulated knowledge
Also read:
wiki/logs/— recent session logs (last 3-5 sessions)graphify-out/GRAPH_REPORT.mdif it exists
Summarize what the project SHOULD look like according to these documents.
Step 2 — Scan the Actual Codebase
Examine what actually exists:
- Read the file structure and key source files
- Run
git log --oneline -20to see recent changes - Check test coverage: are specified features tested?
- Check for code that doesn't match documented patterns
- Check for features that exist in code but aren't in any spec or decision
Step 3 — Identify Drift
Compare source-of-truth documents against the actual codebase. Categorize findings:
Specified but not built
Features, requirements, or decisions documented in specs/ADRs that don't appear to be implemented in the codebase.
Built but not specified
Code, features, or behaviors that exist in the codebase but aren't documented in any spec, ADR, or architecture doc. This is "stealth scope."
Diverged from plan
Features that were built differently from how they were specified or planned. The code works, but it doesn't match what was decided.
Constitution violations
Code or patterns that violate principles stated in constitution.md or non-negotiable rules.
Stale documentation
Documentation that describes something that no longer matches the code. Includes outdated architecture docs, obsolete conventions, and wrong status information.
Step 4 — Present the Drift Report
Step 5 — Recommend Actions
For each finding, recommend one of:
- Update the spec — if the code is correct and the spec is outdated
- Update the code — if the spec is correct and the code diverged
- Create an ADR — if the divergence was an intentional decision that wasn't documented
- Update documentation — if the docs are stale but code and spec agree
- Discuss with user — if it's unclear which is correct
GATE — Wait for the user to decide which actions to take.
Step 6 — Execute Approved Actions
For each approved action:
- Make the change (update doc, create ADR, or flag for code changes)
- Report what was done
- If code changes are needed, recommend /new-feature or /bug-fix
After all actions:
Update wiki/memory.md with the drift review date and results.
Pitfalls
- Treating "built but not specified" as always bad — it may be intentional; ask first
- Not checking git log for context on why something diverged
- Updating specs to match code without asking (the code might be wrong)
- Running this without constitution.md reduces the value significantly
Verification
- All source-of-truth documents were checked
- Findings are categorized correctly (5 drift types)
- Each finding has a recommended action
- User approved actions before execution
- wiki/memory.md was updated with the drift review date
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
- SKILL.md in the repositoryCheckingskills/review-drift/SKILL.md
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
[](https://verified-skill.com/skills/njt2810/claude-code-framework/review-drift)