Agent SkillsharumiWeb/exstruct › adr-drafter

adr-drafter

GitHub

根据Issue、PR或规范起草新的ADR或更新现有ADR。提取策略上下文、决策及证据,生成结构化草案或说明无需ADR的理由,确保区分‘为什么’与‘怎么做’,并遵循治理准则。

.agents/skills/adr-drafter/SKILL.md harumiWeb/exstruct

Trigger Scenarios

需要记录架构决策时 提出架构决策更新提案时 分析Issue或PR以确定是否需ADR时

Install

npx skills add harumiWeb/exstruct --skill adr-drafter -g -y
More Options

Non-standard path

npx skills add https://github.com/harumiWeb/exstruct/tree/main/.agents/skills/adr-drafter -g -y

Use without installing

npx skills use harumiWeb/exstruct@adr-drafter

指定 Agent (Claude Code)

npx skills add harumiWeb/exstruct --skill adr-drafter -a claude-code -g -y

安装 repo 全部 skill

npx skills add harumiWeb/exstruct --all -g -y

预览 repo 内 skill

npx skills add harumiWeb/exstruct --list

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

  1. dev-docs/agents/adr-governance.md
  2. dev-docs/agents/adr-criteria.md
  3. dev-docs/agents/adr-workflow.md
  4. dev-docs/adr/template.md
  5. Related ADRs under dev-docs/adr/

Workflow

  1. Confirm whether the target is a new ADR or an update to an existing ADR.
  2. Read the issue, diff, relevant specs, tests, and implementation files.
  3. Extract:
    • policy-level context
    • chosen decision
    • positive and negative consequences
    • concrete evidence from tests, code, and related specs
  4. Produce one of these outputs:
    • a new ADR draft
    • an update proposal for an existing ADR
    • ADR not needed with rationale

Draft Rules

  • Keep why in the ADR and leave detailed how in code or specs.
  • Fill Tests, Code, and Related specs whenever 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

Same Skill Collection

.agents/skills/adr-indexer/SKILL.md
.agents/skills/adr-linter/SKILL.md
.agents/skills/adr-reconciler/SKILL.md
.agents/skills/adr-reviewer/SKILL.md
.agents/skills/adr-suggester/SKILL.md
.agents/skills/codacy-issues-fetcher/SKILL.md
.agents/skills/exstruct-cli/SKILL.md

Metadata

Files
0
Version
92bc120
Hash
131e95e7
Indexed
2026-07-05 14:53

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 19:13
浙ICP备14020137号-1 $bản đồ khách truy cập$