一键导入
adr-write
Create Architecture Decision Records using the Michael Nygard template with context, decision, alternatives, and consequences
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create Architecture Decision Records using the Michael Nygard template with context, decision, alternatives, and consequences
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate or validate OpenAPI and AsyncAPI specs from code or requirements with consistent naming, errors, and pagination
Generate CHANGELOG.md from git history in Keep a Changelog format with Added, Changed, Deprecated, Removed, Fixed, and Security categories
Generate CI/CD pipeline config for detected platform with lint, test, build, and deploy stages
Scan dependencies for CVEs, outdated packages, license issues, and unused deps to produce a prioritized remediation list
Guide deployment processes including CI/CD pipeline creation, environment setup, and rollback procedures
Analyze Dockerfile and produce optimized version with multi-stage builds, layer caching, minimal base, and security hardening
| name | adr-write |
| description | Create Architecture Decision Records using the Michael Nygard template with context, decision, alternatives, and consequences |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"general"} |
Use this skill when you need to:
Discover: Check for existing ADRs in the project
doc/adr/, docs/adr/, docs/decisions/, or adr/ directoriesGather context: Understand the decision to be made
Enumerate alternatives: List all viable options
Draft the ADR: Write using the template below
Assign number and status: Follow the project's convention
0001, 0002, etc.Proposed or AcceptedFile the ADR: Save to the project's ADR directory
NNNN-short-title.md (e.g., 0012-use-postgresql.md)# ADR-NNNN: Title
**Date:** YYYY-MM-DD
**Status:** Proposed | Accepted | Deprecated | Superseded by ADR-XXXX
## Context
Describe the forces at play. What is the issue that motivates this decision?
Include technical context, business requirements, and constraints.
## Decision Drivers
- Driver 1 (e.g., performance requirements)
- Driver 2 (e.g., team expertise)
- Driver 3 (e.g., operational cost)
## Considered Alternatives
### Option A: [Name]
- **Pros:** ...
- **Cons:** ...
### Option B: [Name]
- **Pros:** ...
- **Cons:** ...
### Option C: [Name]
- **Pros:** ...
- **Cons:** ...
## Decision
State the decision clearly: "We will use [Option X] because..."
## Consequences
### Positive
- Benefit 1
- Benefit 2
### Negative
- Trade-off 1
- Trade-off 2
### Neutral
- Observation that is neither positive nor negative
## References
- [Link to relevant documentation]
- [Link to benchmark results]
Proposed -> Accepted -> (Deprecated | Superseded by ADR-XXXX)