ADR Skill
Use this skill when the user asks to inspect architecture state, create suggestions, draft ADRs, or review ADR drift.
Team-awareness
Read active team config from .codex-workflow/config/active-team.json when present.
Use team default paths (especially architecture_root) as the first lookup location.
Actions
1. Status (default)
- •Read architecture hub/index files.
- •Count decisions, gaps, and pending suggestions.
- •Return concise status summary.
2. Check (full analysis)
- •Scan architecture decisions and logs.
- •Extract: ADR ID, title, status, and domain.
- •Cross-check against gap tracker.
- •Report missing/weakly-covered domains.
3. Gaps
- •Read gap index.
- •Summarize by priority and domain.
- •Recommend next ADRs to create.
4. Suggest
- •Gather topic, context, teams impacted, and priority.
- •Create suggestion in
dev_communication/shared/architecture/suggestions/. - •Filename:
YYYY-MM-DD_{team}_{topic_slug}.md.
5. Poll
- •Scan team inboxes and active issues.
- •Detect architecture-significant changes.
- •Propose ADR suggestions where needed.
6. Create ADR
- •Gather ADR fields (or source from suggestion file).
- •Use ADR template from architecture templates.
- •Save ADR under
dev_communication/shared/architecture/decisions/. - •Update indexes/logs and mark linked suggestion/gap if addressed.
7. Review ADR
- •Read target ADR.
- •Check for staleness and implementation drift.
- •Propose updates; apply on user approval.
Output expectations
- •Include exact file paths touched.
- •Separate observations from recommendations.
- •Keep summaries short unless the user requests deep analysis.