Agent Skills
› harumiWeb/exstruct
› adr-drafter
adr-drafter
GitHub根据Issue、PR或规范起草新的ADR或更新现有ADR。提取策略上下文、决策及证据,生成结构化草案或说明无需ADR的理由,确保区分‘为什么’与‘怎么做’,并遵循治理准则。
Trigger Scenarios
需要记录架构决策时
提出架构决策更新提案时
分析Issue或PR以确定是否需ADR时
Install
npx skills add harumiWeb/exstruct --skill adr-drafter -g -y
SKILL.md
Frontmatter
{
"name": "adr-drafter",
"description": "Draft a new ExStruct ADR or propose an update to an existing ADR from an issue, PR, diff, tests, and specs. Use when an ADR is required or recommended and you need a structured draft with context, decision, consequences, and evidence."
}
ADR Drafter
Draft a policy record, not an implementation memo.
Read
dev-docs/agents/adr-governance.mddev-docs/agents/adr-criteria.mddev-docs/agents/adr-workflow.mddev-docs/adr/template.md- Related ADRs under
dev-docs/adr/
Workflow
- Confirm whether the target is a new ADR or an update to an existing ADR.
- Read the issue, diff, relevant specs, tests, and implementation files.
- Extract:
- policy-level context
- chosen decision
- positive and negative consequences
- concrete evidence from
tests,code, andrelated specs
- Produce one of these outputs:
- a new ADR draft
- an update proposal for an existing ADR
ADR not neededwith rationale
Draft Rules
- Keep
whyin the ADR and leave detailedhowin code or specs. - Fill
Tests,Code, andRelated specswhenever possible. - If the policy replaces an old one, state the supersede relation explicitly.
- If evidence is missing, say so instead of inventing support.
Version History
- 92bc120 Current 2026-07-05 14:53


