create-architectural-decision-record
它能做什么
这个工具可以创建一种名为架构决策记录(Architectural Decision Record,简称 ADR)的文档。它用于记录软件项目在构建方式上的重要决定,说明遇到的问题、最终选择的方案,以及为什么放弃其他选项。
适用场景
- ✓当你需要为新项目选择数据库时。
- ✓当你为某个功能选择新技术时。
- ✓当你要记录现有系统结构的一次重大改动时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/create-architectural-decision-record/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我创建一份架构决策记录,内容是主数据库的选择,并结合可扩展性和成本等背景进行说明。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要提供问题的背景、最终做出的决定、考虑过的其他方案,以及参与决策的人员等信息。工具会把这些内容整理成标准格式,其中包括优缺点,让决定清晰明了,方便日后随时查阅。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Create Architectural Decision Record
Create an ADR document for ${input:DecisionTitle} using structured formatting optimized for AI consumption and human readability.
Inputs
- Context:
${input:Context} - Decision:
${input:Decision} - Alternatives:
${input:Alternatives} - Stakeholders:
${input:Stakeholders}
Input Validation
If any of the required inputs are not provided or cannot be determined from the conversation history, ask the user to provide the missing information before proceeding with ADR generation.
Requirements
- Use precise, unambiguous language
- Follow standardized ADR format with front matter
- Include both positive and negative consequences
- Document alternatives with rejection rationale
- Structure for machine parsing and human reference
- Use coded bullet points (3-4 letter codes + 3-digit numbers) for multi-item sections
The ADR must be saved in the /docs/adr/ directory using the naming convention: adr-NNNN-[title-slug].md, where NNNN is the next sequential 4-digit number (e.g., adr-0001-database-selection.md).
Required Documentation Structure
The documentation file must follow the template below, ensuring that all sections are filled out appropriately. The front matter for the markdown should be structured correctly as per the example following:
---
title: "ADR-NNNN: [Decision Title]"
status: "Proposed"
date: "YYYY-MM-DD"
authors: "[Stakeholder Names/Roles]"
tags: ["architecture", "decision"]
supersedes: ""
superseded_by: ""
---
# ADR-NNNN: [Decision Title]
## Status
**Proposed** | Accepted | Rejected | Superseded | Deprecated
## Context
[Problem statement, technical constraints, business requirements, and environmental factors requiring this decision.]
## Decision
[Chosen solution with clear rationale for selection.]
## Consequences
### Positive
- **POS-001**: [Beneficial outcomes and advantages]
- **POS-002**: [Performance, maintainability, scalability improvements]
- **POS-003**: [Alignment with architectural principles]
### Negative
- **NEG-001**: [Trade-offs, limitations, drawbacks]
- **NEG-002**: [Technical debt or complexity introduced]
- **NEG-003**: [Risks and future challenges]
## Alternatives Considered
### [Alternative 1 Name]
- **ALT-001**: **Description**: [Brief technical description]
- **ALT-002**: **Rejection Reason**: [Why this option was not selected]
### [Alternative 2 Name]
- **ALT-003**: **Description**: [Brief technical description]
- **ALT-004**: **Rejection Reason**: [Why this option was not selected]
## Implementation Notes
- **IMP-001**: [Key implementation considerations]
- **IMP-002**: [Migration or rollout strategy if applicable]
- **IMP-003**: [Monitoring and success criteria]
## References
- **REF-001**: [Related ADRs]
- **REF-002**: [External documentation]
- **REF-003**: [Standards or frameworks referenced]
常见问题
什么是 ADR?
ADR 是 “Architectural Decision Record”(架构决策记录)的缩写,是一种记录软件项目架构中重要决定的文档。
为什么要使用 POS-001 或 NEG-001 这样的编码?
这些编码可以让信息条理更清晰,也便于计算机工具理解和处理这份文档,同时方便你引用文档中的某个具体条目。
文档保存在哪里?
文档会保存在名为 `/docs/adr/` 的文件夹中,文件名包含一个序号,以及决定标题的简要概括。
详情
作者的原始描述
Create an Architectural Decision Record (ADR) document for AI-optimized decision documentation.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7134
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。