with one click
adr
Architecture Decision Record assistant for rhdh-adr repository
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Architecture Decision Record assistant for rhdh-adr repository
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | adr |
| description | Architecture Decision Record assistant for rhdh-adr repository |
Help write, review, and refine Architecture Decision Records for RHDH projects.
/adr structure - Structure a messy problem into ADR format/adr draft - Generate complete ADR from your decision/adr critique - Review and critique an existing ADR/adr alternatives - Suggest alternative approaches/adr refine - Improve a specific ADR sectionHelp structure a problem into ADR format.
Process:
ADR-TEMPLATE.md to understand structureOutput: Structured outline ready to fill into template
Generate a complete ADR draft from a decision.
Process:
Ask user for:
Optionally ask for project context if needed: "What's your project repository URL and what does it do?"
Read ADR-TEMPLATE.md for structure
Read ADR-GUIDE.md for guidelines
Pull the latest main and re-run the script ./scripts/suggest-next-adr.sh if needed.
Run ./scripts/suggest-next-adr.sh from the repo root to get the next ADR number for filename.
Use the output for the filename: decisions/NNN-kebab-case-title.md
(Logic matches .github/workflows/adr-number-check.yaml.)
main plus your changes) — not numbers proposed in other open PRs.decisions/NNN-*.md files (better chance of avoiding conflicts; not guaranteed).Generate complete ADR including:
Output: Complete ADR saved as decisions/NNN-kebab-case-title.md, ready for review and PR
Critique an existing ADR draft to strengthen it.
Process:
ADR-GUIDE.md for quality criteriaOutput: Critique with actionable improvements
Suggest alternative approaches and play devil's advocate.
Process:
Output: Comprehensive alternatives analysis
Improve a specific section of an ADR.
Process:
ADR-GUIDE.md for section-specific guidanceOutput: Refined section ready to use
Project: RHDH (Red Hat Developer Hub) - Kubernetes operator and related components
Repository Structure:
rhdh-adr/
├── ADR-TEMPLATE.md # Template to follow
├── ADR-GUIDE.md # Writing guidelines
├── ADR-AI-GUIDE.md # AI assistance guide
└── decisions/ # Actual ADRs
├── 001-flavor-based-config.md
└── 002-plugin-infrastructure.md
Key Principles:
Technical Context:
Common Patterns to Consider:
User: /adr structure
Claude: "What problem are you solving? What's the current state and limitation?"
User: "We can't share secrets across Backstage instances. Users duplicate secrets in every CR."
Claude: [Reads ADR-TEMPLATE.md, provides structured outline]
User: /adr draft
Claude: "What decision have you made? What problem does it solve?"
User:
Decision: Label-based secret discovery in namespace
Problem: No way to share common credentials across Backstage instances
Current state: Each CR must specify secrets individually
Claude: [Reads ADR-TEMPLATE.md and ADR-GUIDE.md, generates complete ADR]
User: /adr critique decisions/003-namespaced-config.md
Claude: [Reads file and ADR-GUIDE.md, provides critique]
Critique of ADR-003:
Context section:
✅ Clear problem statement
❌ Missing: Why is duplication specifically a problem? (ops burden? consistency?)
Decision section:
✅ Specific implementation approach
⚠️ Consider clarifying: What happens if labeled secret doesn't exist?
Alternatives section:
❌ Missing: Operator-namespace approach (cluster-wide defaults)
❌ Missing: External secret management (e.g., Vault)
Consequences:
✅ Good positive list
❌ Negative list incomplete - missing: namespace coupling, RBAC complexity
Do:
Don't:
Iteration Pattern: Most effective ADRs come from 3-5 iterations:
/adr structure → outline/adr draft → initial version/adr critique → identify gaps/adr refine → improve weak sections/adr alternatives → ensure completenessThis skill integrates with the ADR lifecycle documented in ADR-GUIDE.md:
1. `/adr draft` → Generate initial ADR
2. Open PR with ADR (Open PR = Proposed)
3. `/adr critique` → Strengthen before team review
4. Team reviews PR, comments
5. `/adr refine` → Address feedback
6. PR approved & merged → ADR finalized (Merged PR = Accepted)
Remember: The skill accelerates drafting. Team PR review is where the real architectural decision happens.