adr-template
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "adr-template":https://skillpi.com/zh/skills/deepskill-51db5249493e3c8f57673412e67941a88516ecfdb241b14e4017bea1e44de66e。安装前核对上游来源和版本:https://github.com/dykyi-roman/awesome-claude-code。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为 PHP 项目生成架构决策记录(ADR)。创建包含上下文、决策和后果的结构化决策文档,以记录为何做出该架构选择及其影响。
介绍来源: third_party · dykyi-roman · 1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: adr-template
department: "chronicler"
description: "Use when recording significant architectural or design decisions that affect the system. Covers decision framing, context documentation, options analysis with tradeoff evaluation, consequence mapping, and review trigger definition. Do not use for documentation strategy planning (use documentation-plan) or release changelog creation (use changelog-design)."
version: 1
triggers:
- "ADR"
- "decision"
- "architecture decision"
- "rationale"
- "decision record"
- "design decision"
- "tradeoff"ADR Template
Purpose
Create Architecture Decision Records that capture the context, options considered, decision rationale, and consequences of significant technical choices. Produces structured ADR documents that serve as the institutional memory of the project.
Scope Constraints
Reads existing ADRs, system context, and stakeholder input to produce a structured decision record. Does not implement the chosen option or modify system architecture.
Inputs
- The architectural question or decision being made
- Current system context and constraints
- Stakeholder concerns and priorities
- Related previous decisions (existing ADRs)
Input Sanitization
No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.
Procedure
Progress Checklist
- [ ] Step 1: Identify the decision to record
- [ ] Step 2: Describe context
- [ ] Step 3: Enumerate options considered
- [ ] Step 4: Evaluate each option
- [ ] Step 5: Document the decision
- [ ] Step 6: Specify consequences
- [ ] Step 7: Define review triggers
Step 1: Identify the Decision to Record
Clearly frame the architectural question:
- What specific question was (or needs to be) resolved?
- Why is this decision significant enough to record? (Costly to change, cross-cutting impact, team disagreement)
- What is the scope of this decision? (Single service, full system, team process)
- Assign a sequential ADR number and descriptive title
Step 2: Describe Context
Document the forces at play:
- What is the current state of the system relevant to this decision?
- What constraints exist? (Technical: language, framework, infrastructure. Business: timeline, budget, team size)
- What requirements drive this decision? (Functional, non-functional, compliance)
- What assumptions are being made?
- Reference related ADRs that provide context or are affected by this decision
Step 3: Enumerate Options Considered
List at least 2-3 alternatives, including "do nothing":
- Option A: [Name] — Brief description of the approach
- Option B: [Name] — Brief description of the approach
- Option C: Do nothing / Status quo — What happens if no change is made
- For each option, provide enough detail for a reader to understand the approach without external context
Step 4: Evaluate Each Option
Analyze tradeoffs systematically:
- Pros: What does this option do well? Alignment with principles, simplicity, performance
- Cons: What are the downsides? Complexity, risk, learning curve, migration effort
- Risks: What could go wrong? Scaling issues, vendor lock-in, maintenance burden
- Effort: Rough implementation effort (T-shirt size: S/M/L/XL)
- Alignment: How well does this option align with architectural principles and team capabilities?
Step 5: Document the Decision
State the chosen option and core rationale:
- Which option was selected?
- What was the primary reason for choosing it? (Not "it's the best" — the specific tradeoff that tipped the balance)
- Was this decision unanimous or contentious? Note dissenting opinions if applicable
- What conditions would make this the wrong decision? (Helps future readers know when to revisit)
Step 6: Specify Consequences
Detail what follows from this decision:
- What becomes easier: Capabilities enabled, patterns simplified, workflows improved
- What becomes harder: Constraints introduced, options foreclosed, complexity added
- New constraints: What must all future development respect because of this decision?
- Technical debt accepted: What shortcuts or imperfections are knowingly accepted?
- Follow-up work: What tasks, migrations, or changes are needed to implement this decision?
Step 7: Define Review Triggers
Specify when this decision should be revisited:
- Scale thresholds: "Revisit if traffic exceeds X or data grows beyond Y"
- Technology changes: "Revisit if [framework/service] releases [capability]"
- Team changes: "Revisit if team grows beyond N engineers or splits into multiple teams"
- Time-based: "Review after 12 months regardless of other triggers"
- Pain indicators: "Revisit if [specific friction point] becomes a recurring issue"
Compaction resilience: If context was lost during a long session, re-read the Inputs section to reconstruct what system is being analyzed, check the Progress Checklist for completed steps, then resume from the earliest incomplete step.
Output Format
# ADR-[NNN]: [Descriptive Title]
**Status**: [Proposed | Accepted | Deprecated | Superseded by ADR-NNN]
**Date**: [YYYY-MM-DD]
**Deciders**: [Who was involved in the decision]
## Context
[What is the situation? What forces are at play? What constraints exist?]
[Reference related ADRs: ADR-NNN, ADR-NNN]
## Decision
We will [chosen approach].
[Core rationale — the specific tradeoff that decided it.]
## Consequences
### What becomes easier
- [Consequence 1]
- [Consequence 2]
### What becomes harder
- [Consequence 1]
- [Consequence 2]
### Technical debt accepted
- [Debt item and why it's acceptable for now]
## Alternatives Considered
### Option A: [Name]
[Description]
- **Pros**: [list]
- **Cons**: [list]
- **Why not**: [specific reason this was rejected]
### Option B: [Name]
[Description]
- **Pros**: [list]
- **Cons**: [list]
- **Why not**: [specific reason this was rejected]
### Option C: Do Nothing
[What happens if we don't act]
- **Pros**: No effort, no risk of change
- **Cons**: [specific problems that persist or worsen]
- **Why not**: [why inaction is unacceptable]
## Review Triggers
- [ ] [Scale threshold]: Revisit if [condition]
- [ ] [Technology change]: Revisit if [condition]
- [ ] [Team change]: Revisit if [condition]
- [ ] [Time-based]: Review by [date]
Handoff
- Hand off to documentation-plan if the ADR reveals gaps in project documentation strategy or onboarding materials.
- Hand off to changelog-design if the decision introduces breaking changes that require consumer communication and migration guides.
Quality Checks
- [ ] Decision is framed as a clear architectural question with defined scope
- [ ] Context captures constraints, assumptions, and related decisions
- [ ] At least 3 options are evaluated including "do nothing"
- [ ] Each option has pros, cons, risks, and effort assessed
- [ ] Decision rationale explains the specific tradeoff, not just "it's better"
- [ ] Consequences cover both what becomes easier and harder
- [ ] Review triggers define concrete conditions for revisiting the decision
- [ ] ADR is self-contained — a reader can understand it without external context
Evolution Notes
<!-- Observations appended after each use -->
当前收录版本
1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 为技术团队提供高价值的架构决策记录生成能力,解决结构化文档化痛点
- 覆盖完整的 ADR 生命周期,从上下文分析到后果映射和审查触发器定义
亮点
- 触发词精准覆盖 ADR 相关场景,边界清晰,有效区分于其他文档类 Skill
亮点
- 步骤划分清晰,包含端到端示例和完整输出模板
- frontmatter 完整,结构规范,易于理解和执行
待提升项
-
description写错位置 原报告严重程度:轻微
顶层 frontmatter 中 description 字段为空,但 skill_body 内部有实质描述内容
改进建议:将 description 内容移至顶层 frontmatter 的 description 字段中,保持规范一致性
亮点
- 工具来源明确,无外部依赖,执行流程可靠
- 包含 Compaction resilience 提示,增强会话中断后的恢复能力
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。