madr
Draft Markdown Architectural Decision Records (MADR) capturing context, considered options, decision outcomes, and consequences. Use when recording an architectural decision, documenting a technical choice, or evaluating design alternatives. Exclude for declarative target-state specifications (use specs) or task planning (use reify).
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 3
01 前言 Front Matter
- name
- madr
- description
- Draft Markdown Architectural Decision Records (MADR) capturing context, considered options, decision outcomes, and consequences. Use when recording an architectural decision, documenting a technical choice, or evaluating design alternatives. Exclude for declarative target-state specifications (use specs) or task planning (use reify).
- allowed-tools
- Read, Write, Edit
02 资源文件 2
- 参考文档README.md1.3 KB
- 参考文档template.md1.2 KB
03 SKILL.md 正文
MADR Architectural Decision Records
Author structured Markdown Architectural Decision Records (MADR) to document technical choices, evaluated options, and downstream consequences.
Structural Anatomy
Every MADR document follows a five-part structure:
- Title: Short title representative of the solved problem and chosen solution (e.g.
# Use SQLite for Session State). - Context and Problem Statement: Two to three sentences framing the architectural dilemma, constraints, and forces. Articulate the problem as an objective question where possible.
- Considered Options: Enumerated list of mutually distinct alternatives evaluated to address the problem, including the status quo or simplest baseline.
- Decision Outcome: The chosen option paired with explicit justification explaining why it satisfies decision drivers, resolves specific forces, or outperforms alternatives.
- Consequences: Downstream impacts separated into positive improvements (
* Good, because...) and accepted trade-offs or operational costs (* Bad, because...).
Drafting Procedure
- Load Template: Read
template.mdfor the minimal starting scaffold. - Frame Problem First: Describe the operational context and forces before detailing solutions. Avoid solution-biased problem statements.
- Enumerate Alternatives: State at least two viable options under
## Considered Options. Give each option a short descriptive title. - Justify the Choice: State the chosen option under
## Decision Outcomewith functional reasoning directly addressing the problem statement drivers. - Detail Consequences: Record positive benefits and negative compromises under
### Consequences. Acknowledge trade-offs and operational liabilities.
Invariants and Scope Boundaries
- Pure Format Guidance: This skill governs how to draft a MADR. It does not mandate file paths, directory structures, sequential numbering schemes, or review workflows; those belong to repository-specific rules.
- Brevity: Maintain high instruction density and concise records (typically 30-60 lines).
- Immutability: Decision records document point-in-time rationale. When architecture evolves, record a new decision rather than mutating historical evaluations in place.
04 同仓库更多 Skills
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
madr
Draft Markdown Architectural Decision Records (MADR) capturing context, considered options, decision outcomes, and consequences. Use when recording an architectural decision, documenting a technical choice, or evaluating design alternatives. Exclude for declarative target-state specifications (use specs) or task planning (use reify).