adr-index
できること
このスキルは、プロジェクト内のすべてのアーキテクチャの決定記録を読み、記録とそのつながりを保存する取り込みのスクリプトを実行します。多くの決定記録があり、検索でき、つながった状態にしたいチームのためのものです。
使う場面
- ✓他のプロジェクトから決定記録を取り込んだとき。
- ✓保存された索引が、ディスク上の決定のファイルと合わなくなったとき。
- ✓既存のコードベースで決定の追跡を設定しているとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-index/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“アーキテクチャの決定記録の索引を再構築し、承認済み、提案中、置き換え済みの数を見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは取り込みのスクリプトを実行します。このスクリプトは、2つの一般的なADRの形式の両方を読み、各記録とそのつながりを保存し、要約を報告します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
ADR Index
Persists every ADR under */docs/adr/ or */docs/adrs/ to the adr-patterns namespace and every relationship (supersedes / amends / related / depends-on) to adr-edges. Handles both ADR formats found in the Ruflo monorepo:
- v3-style:
# ADR-097: Titleheading +**Status**: Proposedline - plugin-style: YAML frontmatter (
id: ADR-NNNN,status: Proposed)
Implementation is in scripts/import.mjs (one Bash call) rather than dozens of per-ADR MCP tool calls — same effective behavior, materially faster, dual-format-aware, and false-positive-resistant for issue numbers.
When to use
- After importing ADRs from another project
- When the AgentDB graph is out of sync with the on-disk ADR files
- Bootstrapping ADR tracking on an existing codebase
Steps
Run the importer:
node plugins/ruflo-adr/scripts/import.mjsOptional env:
IMPORT_FORMAT=json— emit JSON instead of markdownIMPORT_DRY_RUN=1— parse + summarize, skip persistenceADR_ROOT=/path— scan a different root (default: cwd)
Inspect the summary — total ADRs, stored count, by-status breakdown, edge counts, dangling refs, status mismatches.
Verify graph integrity (optional but recommended) via the sibling
adr-verifyskill, which runsscripts/verify.mjsand exits 1 on cycles.Search semantically via
mcp__plugin_ruflo-core_ruflo__memory_searchagainst the populated namespace:memory_search --query "federation budget" --namespace adr-patterns
Storage shape
adr-patterns namespace, key <ADR-id>::<basename>, value (text):
<title> — <first paragraph of Context>
file: <relative path>
status: <Proposed|Accepted|Superseded|...>
date: <ISO date>
tags: <comma-separated>
adr-edges namespace, deterministic key <relation>:<FROM>__<TO>, value:
{ "from": "ADR-097", "to": "ADR-086", "relation": "related", "capturedAt": "<ISO>" }
Both ADR records and relationship edges are stored with explicit upsert
semantics. Re-running adr-index refreshes changed metadata in place and does
not create duplicate copies of an unchanged semantic edge.
False-positive guard
#1697 / commit abc123 / PR 1234 references inside ADR bodies are stripped before regex extraction so they don't get misread as ADR-1697 etc. See extractAdrRefs() in scripts/import.mjs.
What this skill cannot do
adr-index only ever adds/upserts. If an ADR file was deleted (or a relation line removed from a surviving file), the row it wrote stays forever — adr-verify won't catch it either, since an orphan has no dangling ref and forms no cycle. Use the sibling adr-reindex skill to reconcile a deletion (issue #2666).
Cross-references
adr-create— produces the ADR files this skill consumesadr-review— runs overadr-patternsfor compliance checksadr-verify(sibling skill) — runsscripts/verify.mjsfor graph-integrity gatingadr-reindex(sibling skill) — drop-and-rebuild reconcile for a deleted ADR file (this skill can only add, never remove)
よくある質問
どのファイルの形式を読みますか?
スキルは、ADRの見出しと状態の行を持つ形式と、フロントマターを持つ形式の2つを扱います。
最初に試せますか?
はい。スキルには、何も保存せずにファイルを解析するドライランのオプションがあります。
グラフが健全かをどう確認しますか?
スキルは、グラフを確認して循環を報告する、兄弟の検証のスキルがあると述べています。
詳細
作者による元の説明
Build or rebuild the ADR index + dependency graph by running scripts/import.mjs (handles v3-style and plugin-style ADR formats; one Bash call vs hundreds of MCP round-trips)
repo: ruvnet/ruflo
人気
- GitHubのスター
- 81k
- ランキング
- #1552
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。