Adr review

From ruvnet/ruflo · View interactive version

Adr review is an AI agent skill from the GitHub repository ruvnet/ruflo. Review code changes against accepted ADRs for compliance violations

How to use this skill

Skill file

ADR Review

Review code changes against accepted Architecture Decision Records to detect violations, drift, and non-compliance.

When to use

Before merging a PR, after significant code changes, or as part of a periodic compliance check. Use this to ensure code changes respect the architectural decisions the team has agreed upon.

Steps

  1. Get diff -- Run git diff main...HEAD --name-only (or the specified branch) to list changed files. Then run git diff main...HEAD to get the full diff content.
  1. Find relevant ADRs -- For each changed file:
  1. Load ADR content -- Read each relevant ADR file. Focus on:
  1. Check for violations -- Analyze each changed file against its relevant ADRs:
  1. Query relationship graph -- Call mcp__plugin_ruflo-core_ruflo__memory_list with namespace adr-edges (rows are keyed <relation>:<from>__<to> with relation supersedes, amends or depends-on) to check if any referenced ADR has been superseded. If the namespace is empty, run adr-index first. If a referenced ADR is superseded, flag that the code references an outdated decision.
  1. Report -- Present findings as a compliance report:

```

## ADR Compliance Report

### Violations

### Warnings

### Compliant

### Unlinked Changes

```

  1. Suggest actions -- For each violation, suggest whether to update the code or propose a new ADR to supersede the violated one.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.