jrjsmrtn/tlx/spec-drift
Claude Code and agent skill by jrjsmrtn/tlx
- community
Checking that the SKILL.md file is still in the repository.
Detect when implementation code has changed but its formal TLX spec has not been updated. Compares git timestamps, re-extracts structure, and diffs against existing specs. Use when asked to check spec drift, detect stale specs, verify specs are up to date, or audit spec freshness.
Install
npx vskill@latest install jrjsmrtn/tlx/spec-driftSKILL.md
The same SKILL.md was published earlier as jrjsmrtn/tlx/spec-drift.
Spec Drift Detection
Detect when implementation code has diverged from its formal TLX spec, so specs stay in sync with the codebase.
When to Use
- Before a release — verify all specs are current
- After a refactoring sprint — check if specs need updating
- In CI — flag PRs that change source without updating specs
- During code review — "did you update the spec?"
Step 1: Find Spec Files with Source References
Scan for spec files that declare a # Source: header:
For each spec file, extract:
- The
# Source:path (implementation file) - The
# ADR:number (if present) - The spec module name
Step 2: Compare Timestamps
For each spec/source pair, check git modification dates:
If the source is newer than the spec, the spec may be stale.
Step 3: Re-Extract and Diff Structure
For stale specs, re-run the appropriate extractor and compare the extracted structure against the existing spec:
Look for:
- New states/fields: added in source but not in spec
- Removed states/fields: deleted from source but still in spec
- New callbacks/actions: new handle_call/cast/info clauses
- Changed transitions: different field updates in return tuples
Step 4: Generate Drift Report
Present findings as a table:
Step 5: Suggest Remediation
For each stale spec:
- Show the structural diff (new/removed states, callbacks, fields)
- Suggest the extractor command to regenerate
- Warn about manual enrichments that would be lost by regenerating
- Recommend updating the spec incrementally rather than regenerating
if it has invariants, properties, or refinement mappings
Direct the user to the formal-spec skill's Phase 2B (enrichment) for any new actions or fields that need invariants.
CI Integration
Add to a pre-push hook or CI step:
For deeper structural comparison, use the extractor diff approach from Step 3 in a Mix task or test.
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 repositoryCheckingusage-rules/skills/spec-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/jrjsmrtn/tlx/spec-drift)