spec-loop-write-adr
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse this skill for ADR writing only.
Before doing that work, read adr-format.md and
apply it.
Read and apply project instructions such as when present.
AGENTS.mdThis skill writes ADRs. It does not decide whether an ADR is
required. Routing belongs to .
../spec-loop-plan-task/SKILL.mdThe ADR being drafted or updated is the governing artifact for this
skill.
Use the same ADR format whether or not a task artifact also exists.
本技能仅用于ADR撰写。
开展工作前,请阅读adr-format.md并遵循其规范。
若项目中存在等说明文档,请阅读并遵循相关要求。
AGENTS.md本技能负责撰写ADR,但不负责判断是否需要创建ADR。路由判断属于的职责范围。
../spec-loop-plan-task/SKILL.md正在起草或更新的ADR是本技能的核心管控工件。
无论是否存在任务工件,均需使用相同的ADR格式。
Mandatory clarification gate
强制澄清环节
Before drafting or revising the ADR as current truth, check whether
any material unresolved question remains about the decision, decision
criteria, trade-offs, credible options, or governing boundaries.
If yes, create only enough ADR structure to hold the topic and
current evidence safely, then use
before continuing. Do not wait
for the user to ask for clarification explicitly.
../spec-loop-clarify-task/SKILL.mdRe-run this gate whenever later ADR drafting exposes a new material
unresolved branch.
Before writing or revising, classify each input item into its proper
section:
- = pre-decision facts that would still be true under another credible alternative, such as requirements, constraints, current-state findings, scope boundaries, and explicit deferrals;
Context - = credible competing options;
Alternatives - = the clarified reasoning, accepted criteria, trade-offs, option comparisons, and brief reasons the chosen option won; and
Analysis - = the chosen outcome as a concise TL;DR, including any explicit deferrals or major retained boundaries that are part of the outcome.
Decision
Treat as the ADR's authoritative decision-and-reason
ledger.
Do not repeat an point elsewhere in decision-and-reason
form.
AnalysisAnalysisWhen a task artifact exists, use its , , and
other ADR-relevant sections such as , , and,
when relevant, as the primary ADR inputs. Otherwise use
confirmed chat clarification and other current evidence.
ResearchAnalysisConstraintsDesignScenario在将ADR起草或修订为当前权威版本之前,请检查关于决策内容、决策标准、权衡因素、可行备选方案或管控边界是否存在任何未解决的实质性问题。
如果存在此类问题,请仅创建足够容纳主题和现有证据的ADR结构,然后使用进行澄清,之后再继续。无需等待用户明确要求澄清。
../spec-loop-clarify-task/SKILL.md后续ADR起草过程中若发现新的未解决实质性分支问题,请再次执行此环节。
在撰写或修订之前,请将每个输入项归类到对应的章节:
- (背景)= 即使选择其他可行方案仍成立的决策前事实,例如需求、约束条件、当前状态调研结果、范围边界以及明确的延迟事项;
Context - (备选方案)= 可行的竞争选项;
Alternatives - (分析)= 明确的推理过程、已接受的标准、权衡因素、选项对比,以及所选方案胜出的简要理由;
Analysis - (决策)= 简洁的最终选择结论(TL;DR),包括作为决策结果一部分的任何明确延迟事项或主要保留边界。
Decision
将视为ADR中权威的决策与理由记录。
请勿在ADR的其他决策与理由部分重复中的内容。
AnalysisAnalysis若存在任务工件,请使用其(调研)、(分析)以及其他与ADR相关的章节(如(约束)、(设计),以及相关的(场景))作为ADR的主要输入。否则,请使用已确认的对话澄清内容和其他现有证据。
ResearchAnalysisConstraintsDesignScenario