跳到正文
Skillpedia
写作40k · #7134

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/create-architectural-decision-record/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能