ADR Compliance Review

VerifiedCaution

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

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude Code
#adr#architecture#code-review#compliance#governance

Recommended for

Automated summary

Reviews a branch's code changes against accepted Architecture Decision Records and produces a compliance report flagging violations, superseded references, and uncovered changes.

Strengths

  • Combines three discovery paths for relevant ADRs: grepping for ADR-\d+ references, matching changed paths against docs/adr/, and semantic lookup via memory_search
  • Uses the causal graph to detect whether a cited ADR has been superseded, catching references to outdated decisions
  • Emits a structured four-section report (violations, warnings, compliant, unlinked changes) that maps cleanly onto a PR review
  • Recommends a concrete action per violation: fix the code or draft a superseding ADR

Limitations

  • Only as good as the ADR set itself — requires decisions to exist, be current, and live in a discoverable location like docs/adr/
  • Enforces only ADRs with an accepted status, so undocumented or implicit architectural rules are invisible to it
  • Relies on ruflo MCP servers for semantic search and causal queries, making the workflow non-portable to other toolchains
When to use it

Run it before merging a pull request or as part of a recurring architecture compliance check.

When not to use it

Skip it on repositories without formal ADRs, or when the goal is style and bug review rather than architectural conformance.

Security analysis

Caution
Quality score86/100

The skill declares Bash but only uses it for read-only `git diff` commands; Read/Grep/Glob are read-only and the MCP tools are scoped memory/graph queries. There is no destructive command, no network exfiltration, no secret/token transmission, and no obfuscated payload. Because it invokes a shell tool for legitimate purposes, it falls under 'caution' rather than 'safe'.

No concerns found

How this analysis is made

Examples

Pre-PR compliance check
Review my current branch against our accepted ADRs and tell me if anything violates our architecture decisions before I open the PR.
Target a specific branch
Run adr-review --branch feature/payments-refactor and give me the full compliance report.
Check a contested refactor
We just swapped the message queue in the orders module — check whether this change contradicts any accepted ADR and whether the ADRs it cites are still current.

name: adr-review description: Review code changes against accepted ADRs for compliance violations argument-hint: "[--branch BRANCH]" allowed-tools: mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-query mcp__plugin_ruflo-core_ruflo__agentdb_causal-query mcp__plugin_ruflo-core_ruflo__memory_search Bash Read Grep Glob

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.

  2. Find relevant ADRs -- For each changed file:

    • Grep the file for ADR references (ADR-\d+)
    • Grep docs/adr/ for ADRs that mention the changed file paths or modules
    • Call mcp__plugin_ruflo-core_ruflo__memory_search with the file path and change summary to find semantically related ADRs
  3. Load ADR content -- Read each relevant ADR file. Focus on:

    • The Decision section (what was decided)
    • The Status (only enforce "accepted" ADRs)
    • The Consequences (expected constraints)
  4. Check for violations -- Analyze each changed file against its relevant ADRs:

    • Does the code change contradict an accepted decision?
    • Does it use a technology/pattern that an ADR explicitly rejected?
    • Does it modify a module in a way the ADR's consequences warned against?
    • Is the code referencing a deprecated or superseded ADR?
  5. Query relationship graph -- Call mcp__plugin_ruflo-core_ruflo__agentdb_causal-query to check if any referenced ADRs have been superseded. If so, flag that the code references an outdated decision.

  6. Report -- Present findings as a compliance report:

    ## ADR Compliance Report
    
    ### Violations
    - [ ] <file>:<line> — violates ADR-NNN: <reason>
    
    ### Warnings
    - [!] <file> references superseded ADR-NNN (replaced by ADR-MMM)
    
    ### Compliant
    - [x] <file> — consistent with ADR-NNN
    
    ### Unlinked Changes
    - [?] <file> — no ADR coverage (consider creating one)
    
  7. Suggest actions -- For each violation, suggest whether to update the code or propose a new ADR to supersede the violated one.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/adr-compliance-review-mte1lhnq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/adr-compliance-review-mte1lhnq/download' --output '.skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md.part' && mv '.skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md.part' '.skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-query mcp__plugin_ruflo-core_ruflo__agentdb_causal-query mcp__plugin_ruflo-core_ruflo__memory_search Bash Read Grep Glob

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md' && test -s '.skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/adr-review' && cp -R '.skill-downloads/adr-compliance-review-mte1lhnq' '.claude/skills/adr-review'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/adr-compliance-review-mte1lhnq'

openskills read 'adr-compliance-review-mte1lhnq'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/adr-compliance-review-mte1lhnq/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills