adr-verify
它能做什么
这项技能读取已保存的架构决策记录索引,并报告诸如指向缺失记录的链接,或彼此循环取代的记录等问题。适合保存决策记录、并希望它们保持正确的团队。
适用场景
- ✓当你刚重建了决策索引,想确认它是否健康的时候。
- ✓当你希望进行严格检查、一旦有记录存在问题就失败的时候。
- ✓当你即将发布一个依赖这些决策的版本的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-verify/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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-BandADR-B supersedes ADR-A(or longer cycles). Always data corruption. - Status mismatches — an ADR is the source of a
supersedesedge but its own status isn'tSuperseded. 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-indexto confirm the graph is healthy - In CI as a fail-closed gate (
VERIFY_STRICT=1exits 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 markdownVERIFY_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 verifiesscripts/import.mjs— has its own dry-run validation; this skill is the read-back companionadr-reindex— reconciles a deleted ADR thatadr-verifycannot 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
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。