mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Moves the ADR markdown template, AgentDB graph-storage recipes,
lifecycle state machine, code-ADR violation detection workflow,
and index-file format out of the agent prompt into a sibling
REFERENCE.md.
Before: 96 lines per spawn (~1150 tokens).
After: 46 lines per spawn (~550 tokens). Net savings ~600 tokens
per adr-architect spawn.
Reference content lives at plugins/ruflo-adr/REFERENCE.md (78 lines):
- Full ADR markdown template with all 5 standard sections
- Lifecycle state machine ASCII diagram + transition rules
- AgentDB hierarchical-store + causal-edge commands with
relationship vocabulary (supersedes / amends / depends-on)
- Code-ADR violation detection workflow (Grep → git blame →
ADR-status comparison)
- Common drift patterns to flag
- Index file format for docs/adr/README.md
The agent prompt keeps:
- 4-row responsibilities block
- Tools list (8 entries: agentdb / memory / Read-Write-Edit / Grep
/ Glob / Bash)
- Cross-references to ruflo-jujutsu + ruflo-docs
- Memory + Neural Learning tails (Part 4 invariant)
ADR-098 acceptance progress:
- device-coordinator: 30 ≤ 60 ✓
- domain-modeler: 54 ≤ 60 ✓
- adr-architect: 46 ≤ 60 ✓ (was 96)
- Remaining: cost-analyst (105)
Plugin version: 0.1.0 → 0.1.1 (patch — token diet only).
ruflo-adr
ADR lifecycle management -- create, index, supersede, and link Architecture Decision Records to code.
Overview
Manages Architecture Decision Records through their full lifecycle (proposed, accepted, deprecated, superseded). ADRs are stored as markdown files in docs/adr/ and indexed in AgentDB with causal edges tracking supersedes/amends/depends-on relationships. Includes compliance checking that scans git diffs for ADR violations.
Installation
claude --plugin-dir plugins/ruflo-adr
Agents
| Agent | Model | Role |
|---|---|---|
adr-architect |
sonnet | ADR lifecycle management, code-ADR linking via grep/blame, AgentDB graph storage |
Skills
| Skill | Usage | Description |
|---|---|---|
adr-create |
/adr-create <title> |
Create a new ADR with sequential numbering and AgentDB registration |
adr-index |
/adr-index |
Build or rebuild the ADR index and dependency graph in AgentDB |
adr-review |
/adr-review [--branch BRANCH] |
Review code changes against accepted ADRs for compliance violations |
Commands (7 subcommands)
# Lifecycle
adr create <title>
adr list
adr status <adr-id> <new-status>
adr supersede <old-id> <new-id>
# Compliance
adr check # Scan recent git changes for ADR violations
adr graph # Show ADR dependency graph
adr search <query> # Semantic search across ADRs
ADR Lifecycle
proposed --> accepted --> deprecated
\--> superseded by ADR-XXX
Relationships tracked as causal edges: supersedes, amends, depends-on, related.
Related Plugins
ruflo-ddd-- Document domain decisions as ADRsruflo-sparc-- Architecture phase (Phase 3) produces ADRsruflo-migrations-- Schema change decisions recorded as ADRs
License
MIT