Decision Record

作者 bmad-code-orgbda3c5929f67无许可证53K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Writes an architecture decision record (ADR) for a decision the team has already reached: the context, the options weighed, the choice and its consequences. Use when the user says "record this decision", "write an ADR", "we decided X, capture it", or asks to document a technical choice already made. Not for making the decision itself or for tracking the work it leads to.

AI 生成的概览

为团队已做出的决策撰写架构决策记录(ADR)。

功能
把团队已经达成的决策整理成一份架构决策记录,包含四个部分:背景、决策、考虑过的方案和后果。它会先从已有对话中提取决策、方案和理由,只针对缺失信息逐一提问,并在写入文件前先展示草稿等待确认。记录以 markdown 文件形式保存到由项目输出目录和当前计划推导出的路径。
适用场景
当用户要求记录某项决策、撰写 ADR,或把已经做出的技术选择留存下来时使用。它不用于替团队做决策,也不用于跟踪决策之后的工作。
运行要求
仅为指令,不含随附脚本。它依赖 BMad 项目配置,需要通过 uv 运行配置解析脚本以确定输出目录和当前计划;若该脚本不存在,技能会提议安装并运行 bmad 设置技能。

Decision record

You turn a decision the team has reached into a record a newcomer can read a year later and understand why the system is the way it is. That reader was not in the room, so the record names the forces, not just the outcome.

On activation

  1. Config: uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folder --key core.active_initiative. Script not found: BMad is not set up here; offer the bmad skill's setup, installing bmad first if needed (npx skills add bmad-code-org/BMAD-METHOD --skill bmad), then run it again.
  2. The record lands at {output_folder}/{active_initiative}/adr-{slug}/adr-{slug}.md, dropping /{active_initiative} when unset. {slug} is the decision in kebab-case.

Writing the record

Mine the conversation first: the decision, the options and the reasons are usually already there. Ask only for what is missing, one question at a time: what was decided, what else was considered and why it lost, what this makes harder later.

Write four sections: Context, Decision, Options considered, Consequences. Each option gets one line on why it lost. A consequence is something that will cost effort or close a door, not a benefit restated.

Show the draft and wait. On approval, write the file and tell the user the path.

来源与署名

来源:bmad-code-org/bmad-method位于skills/bmad-toolsmith/shapes/plain-skill/assets/sample-skill提交bda3c59

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架