adr-create
它能做什么
这项技能引导智能体创建新的架构决策记录,即一份解释重大技术决定的简短文档。适合希望把设计选择记录下来的开发者和团队。
适用场景
- ✓当你的团队选择了新的技术或设计方法的时候。
- ✓当某项决定影响系统的多个部分、需要记录的时候。
- ✓当你希望把架构决定连同其背景和后果一起保存的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-create/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们选择 PostgreSQL 作为持久化存储的决定创建一份新的架构决策记录。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找到下一个 ADR 编号,根据标准模板创建文件,并把摘要保存到决策记忆中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Create ADR
Create a new Architecture Decision Record with the next sequential number, register it in the AgentDB graph, and link it to related ADRs.
When to use
When a significant architectural decision needs to be recorded -- new technology adoption, API design choices, data model changes, infrastructure decisions, or any cross-cutting concern that affects multiple components.
Steps
Find next number --
Globfordocs/adr/ADR-*.mdand parse existing numbers to determine the next sequential ID (ADR-001, ADR-002, etc.). Createdocs/adr/if it does not exist.Slugify title -- Convert the title argument to a lowercase, hyphen-separated slug (e.g., "Use PostgreSQL for persistence" becomes
use-postgresql-for-persistence).Create ADR file --
Writethe file atdocs/adr/ADR-NNN-<slug>.mdusing the standard template:# ADR-NNN: <Title> - **Status**: proposed - **Date**: <today's date YYYY-MM-DD> - **Deciders**: <leave blank for author to fill> - **Tags**: <leave blank> ## Context <!-- What is the issue that motivates this decision? --> ## Decision <!-- What is the change that we are proposing? --> ## Consequences ### Positive - ### Negative - ### Neutral - ## LinksStore in AgentDB -- Call
mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-storewith:- key:
mem:ADR-NNN - tier:
semantic - value: a JSON-encoded string:
{ "id": "ADR-NNN", "title": "<title>", "status": "proposed", "date": "<today>", "file": "docs/adr/ADR-NNN-<slug>.md" }
- key:
Find related ADRs -- Call
mcp__plugin_ruflo-core_ruflo__memory_searchwith the title as query in namespaceadr-patternsto find related decisions. If matches are found, add them to the Links section and callmcp__plugin_ruflo-core_ruflo__agentdb_causal-edgefor each relationship with:- sourceId:
mem:ADR-NNN - targetId:
mem:ADR-RELATED - relation:
depends-on
- sourceId:
Store pattern -- Call
mcp__plugin_ruflo-core_ruflo__memory_storein namespaceadr-patternswith keyADR-NNNand the title + context as value for future semantic search.Report -- Output the created file path, ADR number, and any related ADRs found.
常见问题
记录里包含什么?
模板包括背景部分、决定、正面、负面和中性的后果,以及相关链接。
新记录的状态是什么?
这项技能把新记录设为“提议中”,以便团队在接受之前进行审查。
文件放在哪里?
这项技能会在 docs/adr 文件夹中创建它,并使用带编号的文件名。
详情
作者的原始描述
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1551
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。