adr-setup
Set up, modify, and maintain the .adr/ folder structure with proper conventions, templates, and phase lifecycle management.
Files9
View on GitHubSKILL.md.claude/skills/adr-setup/SKILL.md
GitHubPurpose
Provide a standalone skill for initializing, modifying, and maintaining the .adr/ Architecture Decision Record workspace. This skill contains all templates, conventions, and lifecycle rules needed to manage ADR folders without depending on the longrunning-session or orchestrator-session skills.
When to Use
- Bootstrapping a new project's ADR structure
- Adding a new session to an existing ADR workspace
- Creating, completing, or archiving phase files
- Auditing ADR folder structure for convention compliance
- As a fallback when longrunning/orchestrator skills fail to route correctly
ADR Folder Structure
Required Top-Level Directories
.adr/
├── README.md
├── orchestration/ # Permanent session-level docs
├── current/ # Active phase files
├── history/ # Completed phase archives
└── agent_ingest/ # Imported agent notes
Per-Session Files
Each session (orchestration/<N>_SESSION_NAME/) requires exactly 4 files:
| File | Purpose |
|---|---|
primary_task_list.md |
Master checklist of all phases |
prd.md |
Product Requirements Document |
technical_requirements.md |
Technical constraints and architecture |
notes.md |
Decisions (D#), Constraints (C#), Open Questions (Q#) |
Phase Files
- Plan files live in
current/<SESSION>/phase_N.mdwhile active - On completion, plan moves to
history/<SESSION>/phase_N.md(status updated tocomplete) - Review files are created only in
history/<SESSION>/phase_N_review.md
Naming Conventions
| Element | Convention | Example |
|---|---|---|
| Session folder | UPPERCASE_SNAKE_CASE with numeric prefix | 1_FRONTEND_DESIGN_PLANNING |
| Phase plan | lowercase with number | phase_1.md |
| Phase review | lowercase with number + review | phase_1_review.md |
| Orchestration files | lowercase snake_case | primary_task_list.md |
Phase Lifecycle (10 Steps)
- Ensure session folders exist in orchestration/, current/, history/
- Create or update the 4 orchestration files (prd, tech_reqs, task_list, notes)
- Create phase plan in
current/before starting work - Execute tasks listed in the phase file
- Validate every item in the phase validation checklist
- Create phase review file in
history/with file tree + technical summary - Move the phase plan to
history/with status updated tocomplete - Check off completed phase in primary_task_list.md
- Commit and push all phase changes
- Create next phase file before starting new work
Required Phase Metadata
Every phase file must include these fields at the top:
Phase: phase_<N>
Session: <SESSION_NAME>
Date: <YYYY-MM-DD>
Owner: <AGENT>
Status: planned | in_progress | blocked | complete
Status Transitions
planned --> in_progress --> complete
|
+--> blocked --> in_progress --> complete
Templates
All templates are in templates/ subdirectory:
phase_template.md— Phase plan with objectives, tasks, deliverables, validationphase_review_template.md— Phase completion review with file tree and technical breakdownprd_template.md— Product Requirements Documenttechnical_requirements_template.md— Technical specsprimary_task_list_template.md— Master phase checklistnotes_template.md— Decisions, constraints, open questionsadr_readme_template.md— .adr/README.md template
References
references/conventions.md— Complete ADR conventions reference document
Validation Checklist (per phase)
- [ ] All tasks complete
- [ ] Sources captured with citations
- [ ] Media references verified
- [ ] Docs match sitemap placements
- [ ] Phase file ready to move to history
- [ ] Phase review file created in history
- [ ] Changes committed and pushed
Commit Convention
After each phase completes, commit with session and phase reference:
ADR Session N Phase M: <brief description of work completed>
Safety
- If access is missing or unclear, stop and request clarification before executing
- Never force passing tests; investigate failures, document causes, fix for production
- Use the repo's configured HTTPS remote for pushes (no hardcoded remotes, no SSH)