name: adr-index description: Build or rebuild the ADR index and dependency graph in AgentDB argument-hint: "" allowed-tools: mcp__claude-flow__agentdb_hierarchical-store mcp__claude-flow__agentdb_hierarchical-query mcp__claude-flow__agentdb_causal-edge mcp__claude-flow__agentdb_causal-query mcp__claude-flow__memory_store mcp__claude-flow__memory_search Bash Read Grep Glob
ADR Index
Build or rebuild the full ADR index and dependency graph in AgentDB from the docs/adr/ directory.
When to use
After importing ADRs from another project, when the AgentDB graph is out of sync, or when bootstrapping ADR tracking on an existing codebase that already has ADR files.
Steps
-
Scan directory --
Globfordocs/adr/ADR-*.mdto find all ADR files. If no files found, report that no ADRs exist yet. -
Parse each ADR --
Readeach file and extract:- ID: from the filename (e.g.,
ADR-042fromADR-042-use-postgres.md) - Title: from the
# ADR-NNN: <Title>heading - Status: from the
**Status**:line - Date: from the
**Date**:line - Tags: from the
**Tags**:line - Links: from the
## Linkssection (supersedes, amended-by, related)
- ID: from the filename (e.g.,
-
Store in AgentDB -- For each ADR, call
mcp__claude-flow__agentdb_hierarchical-storewith:- path:
adr/<adr-id> - value:
{ "id": "<id>", "title": "<title>", "status": "<status>", "date": "<date>", "tags": "<tags>", "file": "<filepath>" }
- path:
-
Build causal edges -- For each ADR with links:
- "Supersedes ADR-XXX" ->
mcp__claude-flow__agentdb_causal-edgewithfrom: ADR-XXX,to: <current>,relation: supersedes - "Amended by ADR-YYY" ->
mcp__claude-flow__agentdb_causal-edgewithfrom: <current>,to: ADR-YYY,relation: amends - "Related: ADR-ZZZ" ->
mcp__claude-flow__agentdb_causal-edgewithfrom: <current>,to: ADR-ZZZ,relation: related - "Depends on ADR-WWW" ->
mcp__claude-flow__agentdb_causal-edgewithfrom: <current>,to: ADR-WWW,relation: depends-on
- "Supersedes ADR-XXX" ->
-
Store in memory -- For each ADR, call
mcp__claude-flow__memory_storewith:- namespace:
adr-patterns - key:
<adr-id> - value:
<title> — <first paragraph of Context section>This enables semantic search across ADRs.
- namespace:
-
Verify graph -- Call
mcp__claude-flow__agentdb_causal-queryto retrieve all edges and verify:- No dangling references (edges pointing to non-existent ADRs)
- No circular supersedes chains
- All superseded ADRs have status "superseded"
-
Report -- Output a summary:
## ADR Index Summary Total ADRs: N - Proposed: X - Accepted: Y - Deprecated: Z - Superseded: W Relationships: M edges - Supersedes: A - Amends: B - Depends-on: C - Related: D Issues found: (list any dangling refs or status mismatches)
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.