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

adr-verify

它能做什么

这项技能读取已保存的架构决策记录索引,并报告诸如指向缺失记录的链接,或彼此循环取代的记录等问题。适合保存决策记录、并希望它们保持正确的团队。

适用场景

  • ✓当你刚重建了决策索引,想确认它是否健康的时候。
  • ✓当你希望进行严格检查、一旦有记录存在问题就失败的时候。
  • ✓当你即将发布一个依赖这些决策的版本的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请检查我们的架构决策记录是否一致,并告诉我是否有断开的链接或循环。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会读取已保存的记录及其链接,查找缺失的目标、循环的取代链和状态不匹配的情况,并报告其发现。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

ADR Verify

Companion to adr-index. After import, reads the persisted graph and surfaces integrity issues:

  • Dangling refs — edge points at an ADR ID that doesn't exist in adr-patterns. Common cause: the referenced ADR is in a sibling repo or got deleted.
  • Supersede cycles — ADR-A supersedes ADR-B and ADR-B supersedes ADR-A (or longer cycles). Always data corruption.
  • Status mismatches — an ADR is the source of a supersedes edge but its own status isn't Superseded. Usually a missed status update during a successor ADR's promotion.

What this skill cannot catch: an adr-patterns row for an ADR that was deleted from disk and has zero edges referencing it or from it — invisible to every check above (issue #2666). If the reported ADR count looks higher than what's actually on disk, run adr-reindex, not adr-verify again.

When to use

  • Right after adr-index to confirm the graph is healthy
  • In CI as a fail-closed gate (VERIFY_STRICT=1 exits 1 on any issue)
  • Before publishing an ADR-related release

Steps

node plugins/ruflo-adr/scripts/verify.mjs

Optional env:

  • VERIFY_FORMAT=json — JSON instead of markdown
  • VERIFY_STRICT=1 — exit 1 on ANY issue (default: only on cycles)

Exit codes

Code Meaning
0 Graph healthy (or dangling refs / status mismatches present in non-strict mode)
1 Supersede cycle detected, OR strict mode + any issue present

Cross-references

  • adr-index — populates the data this skill verifies
  • scripts/import.mjs — has its own dry-run validation; this skill is the read-back companion
  • adr-reindex — reconciles a deleted ADR that adr-verify cannot detect
常见问题

什么是取代循环?

它指一份决策记录在循环中取代另一份,这会被视为数据错误。

它能发现已删除的记录吗?

不一定。这项技能说明,对已删除文件的孤立条目可能会漏检,因此可能需要重新建立索引。

它能让构建失败吗?

能。严格模式会在发现任何问题时以错误退出。

详情

作者的原始描述

Read back adr-patterns + adr-edges namespaces, surface dangling refs / supersede cycles / Unknown statuses; exit 1 on cycles

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1555
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能