raphaelmansuy/edgequake/doc-traceability-validator
Claude Code and agent skill by raphaelmansuy/edgequake
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Validate documentation traceability between code annotations (@implements), feature registry, business rules, and use cases. Detect ID collisions, undocumented features, broken cross-references, and namespace violations.
Install
npx vskill@latest install raphaelmansuy/edgequake/doc-traceability-validatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as raphaelmansuy/edgequake/doc-traceability-validator.
Documentation Traceability Validator Skill
Validate and maintain accurate traceability between code annotations (@implements FEATXXXX) and documentation registries (features.md, business_rules.md, use_cases.md). This skill detects gaps, collisions, and broken cross-references that compromise documentation accuracy.
When to use
Use this skill when you need to:
- Audit documentation accuracy: Verify all code features are documented
- Detect ID collisions: Find duplicate FEAT/BR/UC IDs before they break traceability
- Find undocumented features: Discover @implements annotations missing from registries
- Validate cross-references: Ensure FEAT↔BR↔UC links are valid
- Enforce namespace allocation: Verify features use correct ID ranges
- Generate registry entries: Auto-create documentation from code annotations
- CI/CD quality gates: Block PRs with documentation gaps
- Track documentation coverage: Monitor doc completeness over time
Core concepts
Traceability Chain
The validation framework ensures bidirectional traceability:
Chain integrity requires:
- Every @implements annotation has a features.md entry
- Every features.md entry references valid BR/UC IDs
- Every BR references valid FEAT IDs
- Every UC references valid BR/FEAT IDs
Validation Dimensions
| Dimension | Weight | Description | |
|---|---|---|---|
| Completeness | 40% | % of code @implements that have docs | |
| Uniqueness | 30% | % of IDs that are unique (no collisions) | |
| Cross-refs | 20% | % of BR/UC references that resolve | |
| Namespace | 10% | % of IDs in correct allocated ranges |
Composite Score:
Namespace Allocation
Standard range allocation for EdgeQuake:
| Range | Module | Team | |
|---|---|---|---|
| FEAT00XX | Core Pipeline | Backend | |
| FEAT01XX | Query Engine | Backend | |
| FEAT02XX | Graph Storage | Backend | |
| FEAT03XX | Streaming/Pipeline | Backend | |
| FEAT04XX | Conversations/Citations | Frontend | |
| FEAT05XX | PDF/Lineage | Backend | |
| FEAT06XX | WebUI Core | Frontend | |
| FEAT07XX | API Client/Utils | Frontend | |
| FEAT08XX | Authentication | Backend | |
| FEAT085X | Cost Management | Frontend | |
| FEAT086X | WebUI Providers | Frontend | |
| FEAT10XX | Document Mgmt UI | Frontend |
Quick start
Basic validation
Generate registry entries
CI/CD integration
Scripts reference
validate_features.py
Scan code for @implements annotations and compare with features.md.
Arguments:
--code-dir: Directory to scan for @implements annotations--docs-file: Path to features.md--pattern: Regex for annotation format (default:@implements\s+(FEAT\d{4}))--extensions: File extensions to scan (default:.ts,.tsx,.rs)--fail-threshold: Minimum completeness score (0-100)--output-json: Save results to JSON file--verbose: Show detailed output
Output:
validate_traceability.py
Validate complete FEAT↔BR↔UC traceability chain.
Arguments:
--code-dir: Directory with @implements annotations--features: Path to features.md--rules: Path to business_rules.md--usecases: Path to use_cases.md--output-report: Save full report to JSON--fix-suggestions: Generate suggested fixes
Output:
generate_registry.py
Auto-generate features.md entries from code annotations.
Arguments:
--code-dir: Directory to scan--output: Output file path--format: Output format (markdown, json, csv)--group-by: Group by range, module, or file--include-context: Include surrounding code context
Output (markdown):
check_namespace.py
Validate FEAT IDs follow allocated ranges.
Arguments:
--code-dir: Directory to scan--allocation-file: YAML file with range allocations--team: Filter by team (frontend/backend)
Output:
Best practices
1. Run validation before commits
2. Document new features immediately
When adding @implements FEATXXXX:
- Check AGENTS.md for allocated range
- Add entry to features.md in same PR
- Run validation to confirm
3. Track documentation coverage
4. Fix collisions immediately
Duplicate FEAT IDs are CRITICAL - they break traceability:
- Cannot determine which feature a BR references
- Cannot track which UC implements which feature
- Makes documentation unreliable
Real-World Example: EdgeQuake Documentation Audit (Iterations 65-75)
This skill was developed and validated through 10 OODA loop iterations on the EdgeQuake codebase:
Starting State (Iteration 65)
Actions Taken
- Iteration 65: Created 4 validation scripts (validate_features.py, validate_traceability.py, generate_registry.py, check_namespace.py)
- Iterations 66-68: Fixed namespace collisions by migrating conflicting IDs:
- FEAT0701-0705 → FEAT0770-0774 (API Client Chat features)
- FEAT0501-0506 → FEAT0861-0871 (WebUI Providers)
- FEAT0801-0804 → FEAT0850-0853 (Cost Management)
- Iteration 69: Auto-generated 120 feature entries in 5 seconds using generate_registry.py
- Iteration 70: Added 20 @implements annotations to backend Rust files
- Iteration 74: Identified and fixed true collision (FEAT0301 used by both backend Pipeline and frontend Chain-of-thought)
- Iteration 75: Enhanced validation to distinguish cross-cutting duplicates (OK) from true collisions (FIX)
Final State (Iteration 75)
Key Insight: Cross-Cutting Features
The validation tool now recognizes that duplicates spanning multiple architectural layers (types, stores, hooks, components, lib) are intentional:
This is standard React/TypeScript architecture where the same feature is implemented across layers.
Troubleshooting
"X features not found in documentation"
- Run
generate_registry.pyto create templates - Review generated entries for accuracy
- Add to features.md with proper descriptions
- Re-run validation
"Duplicate FEAT ID: FEATXXXX"
- Identify both usages in validation output
- Determine which feature should keep the ID
- Assign new ID to the other feature (from correct range)
- Update code @implements annotation
- Add new ID to features.md
- Re-run validation
"Broken reference: BRXXXX not found"
- Check if BR was renamed or removed
- If removed, update referencing document
- If renamed, update the reference
- Consider adding redirect/alias
Related documents
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/doc-traceability-validator/SKILL.md
Popularity
- Repository stars
- 1,983
- Repository forks
- 222
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 May 2026, 6 months ago.
Extension points
hookPre/post lifecycle hooks
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/raphaelmansuy/edgequake/doc-traceability-validator)