Loading...
Loading...
Add ADR references to code for traceability. TRIGGERS - ADR traceability, code reference, document decision in code.
npx skill4agent add terrylica/cc-skills adr-code-traceability/itp:goADR: {adr-id}ADR: 2025-12-01-my-feature/docs/adr/2025-12-01-my-feature.md| Language | New File Header | Inline Comment |
|---|---|---|
| Python | | |
| TypeScript | | |
| Rust | | |
| Go | | |
Is this a NEW file created by the ADR?
├── Yes → Add reference in file header
└── No → Is the change non-obvious?
├── Yes → Add inline comment with reason
└── No → Skip ADR reference"""
Redis cache adapter for session management.
ADR: 2025-12-01-redis-session-cache
"""
class RedisSessionCache:
...// ADR: 2025-12-01-rate-limiting - Using token bucket over sliding window
// for better burst handling in our use case
const rateLimiter = new TokenBucketLimiter({ rate: 100, burst: 20 });| Issue | Cause | Solution |
|---|---|---|
| ADR not found | Wrong path format | Use relative path from repo root |
| Reference not showing | Comment syntax wrong | Check language-specific comment format |
| Too many references | Over-documenting | Only add where traceability adds value |
| Outdated ADR link | ADR was renamed | Update path to match current ADR filename |
| Hook reminder annoying | No ADR for this change | Add inline ADR comment or create new ADR |