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 從公開儲存庫中收錄這些內容。

檢舉或申請下架