跳到正文
Skillpedia
技术文档81k · #1551

adr-create

它能做什么

这项技能引导智能体创建新的架构决策记录,即一份解释重大技术决定的简短文档。适合希望把设计选择记录下来的开发者和团队。

适用场景

  • ✓当你的团队选择了新的技术或设计方法的时候。
  • ✓当某项决定影响系统的多个部分、需要记录的时候。
  • ✓当你希望把架构决定连同其背景和后果一起保存的时候。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-create/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-create/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Find next number -- Glob for docs/adr/ADR-*.md and parse existing numbers to determine the next sequential ID (ADR-001, ADR-002, etc.). Create docs/adr/ if it does not exist.

  2. Slugify title -- Convert the title argument to a lowercase, hyphen-separated slug (e.g., "Use PostgreSQL for persistence" becomes use-postgresql-for-persistence).

  3. Create ADR file -- Write the file at docs/adr/ADR-NNN-<slug>.md using 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
    -
    
    ## Links
    
  4. Store in AgentDB -- Call mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store with:

    • 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" }
  5. Find related ADRs -- Call mcp__plugin_ruflo-core_ruflo__memory_search with the title as query in namespace adr-patterns to find related decisions. If matches are found, add them to the Links section and call mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge for each relationship with:

    • sourceId: mem:ADR-NNN
    • targetId: mem:ADR-RELATED
    • relation: depends-on
  6. Store pattern -- Call mcp__plugin_ruflo-core_ruflo__memory_store in namespace adr-patterns with key ADR-NNN and the title + context as value for future semantic search.

  7. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能