ワンクリックで
refine-adr
List existing ADRs, let the user select one, and interactively refine its sections (status, alternatives, rationale, consequences)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
List existing ADRs, let the user select one, and interactively refine its sections (status, alternatives, rationale, consequences)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate Azure infrastructure as Bicep code from planning data
Generate Azure infrastructure as Terraform code from planning data
Generate a Mermaid architecture diagram derived from application components and infrastructure context data
Configure an individual application component by mapping it to an Azure service with SKU, region, and service-specific settings
Document source control, CI/CD platform, environments, deployment process, and quality gates for the application
Read all planning data, propose relevant ADR topics, and generate Architecture Decision Records following the project template
| name | refine-adr |
| description | List existing ADRs, let the user select one, and interactively refine its sections (status, alternatives, rationale, consequences) |
This skill allows interactive refinement of an existing Architecture Decision Record. It reads all ADRs in infra/architecture-decisions/adrs/, lets the user select one, and guides them through updating specific sections.
The updated ADR will be reflected in the UI when the user refreshes after running npx @zureltd/az-infra-harness.
Run this skill when:
/refine-adrRead all files in infra/architecture-decisions/adrs/ and list them.
If no ADRs exist:
No ADRs found in infra/architecture-decisions/adrs/. Please run /generate-adrs first to create architecture decision records.
Stop the skill.
Show all existing ADRs with their current status:
Here are your existing Architecture Decision Records:
1. **adr-001-container-platform.md** — Use Azure Container Apps for API and Worker Compute
Status: draft | Category: compute
2. **adr-002-database-selection.md** — Use Azure SQL Database Serverless for Customer Data
Status: reviewed | Category: data
3. **adr-003-networking-model.md** — Hub-Spoke Network with Private Endpoints
Status: accepted | Category: networking
Which ADR would you like to refine? (Enter the number or filename)
Wait for the user's selection.
Read and display the selected ADR in full:
Here's the current content of **[ADR filename]**:
---
[Full ADR content]
---
What would you like to change? Options:
1. **Update status** — Change from [current status] to draft/reviewed/accepted
2. **Update context** — Add or refine the problem statement
3. **Add or update options considered** — Add a new alternative or update pros/cons
4. **Update decision** — Clarify or change the chosen option
5. **Update rationale** — Add more detail to the reasoning
6. **Update consequences** — Add newly discovered implications
7. **Update related components** — Add or remove component references
8. **Multiple sections** — Tell me what you'd like to change in free text
What would you like to do?
Wait for the user's response.
This skill MUST comply with the shared Interaction & Validation Standard:
.opencode/skills/_shared/interaction-validation-standard.md
Use the TodoWrite tool to track each requested change as a task.
Apply changes conversationally based on the user's selection:
If updating status:
What should the new status be?
- **draft** — Work in progress, not yet ready for review
- **reviewed** — Reviewed by the team, pending final decision
- **accepted** — Decision finalized and accepted by the team
If updating context:
Please describe the additional context or clarifications you'd like to add to the Context section. I'll show you the current text and you can tell me what to change or append.
If adding/updating options:
What option would you like to add or update?
For a new option, please provide:
- Name of the option
- 2-4 pros
- 2-4 cons
For updating an existing option, tell me the option name and what to change.
If updating rationale:
What additional reasoning would you like to add to the Rationale section? This is your chance to capture why this decision was made in the context of this specific project.
If updating consequences:
What consequences would you like to add or update? These can be:
- Positive outcomes that have been realized
- Negative trade-offs discovered
- Future actions required as a result of this decision
After each change, show the updated section and ask: "Does this look right?"
After all requested changes have been made, show the complete updated ADR:
Here's the updated ADR:
---
[Full updated ADR content]
---
Does this look correct? Would you like to make any additional changes before saving?
Wait for confirmation before writing.
Target location: infra/architecture-decisions/adrs/[original-filename]
Overwrite the existing file with the updated content.
Pre-save checks:
Error handling:
✅ Updated [ADR filename] successfully!
📄 File location: infra/architecture-decisions/adrs/[filename]
Changes made:
- [Brief summary of what was changed]
🌐 To view in the UI:
1. Ensure the Az Infra Harness is running: `npx @zureltd/az-infra-harness`
2. Refresh your browser
3. Navigate to the Architecture Decisions section
Would you like to refine another ADR?
If the user wants to refine another ADR, return to Step 2.
/generate-adrs firstAgent: "Here are your existing ADRs:
Which would you like to refine?"
User: "1"
Agent: "Here's the current content of adr-001-container-platform.md: [shows full ADR]. What would you like to change?"
User: "Update the status to accepted, and add a consequence about needing to monitor scaling behavior closely."
Agent: "I'll change the status to 'accepted' and add to the Consequences section: 'Scaling behavior must be monitored closely during initial production rollout to validate that the Consumption plan scaling triggers are correctly configured for the expected traffic patterns.' Here's the updated ADR: [shows updated content]. Does this look right?"
User: "Yes, save it."
Agent: "✅ Updated adr-001-container-platform.md successfully!"
infra/architecture-decisions/adr-template.mdinfra/architecture-decisions/adrs/.opencode/skills/_shared/interaction-validation-standard.mdDATA-STRUCTURE.mdinfra/architecture-decisions/adrs/[filename]