agentleFS
BipBop-LabsBipBop-Labs/bipbop-skills/skills/adr-review/SKILL.md

adr-review

Skill3 starsChanged 6 days agoMITView on GitHub

Check the current diff or branch against accepted Architecture Decision Records, policies, and procedures. Flag likely violations, changes that need a new or changed doc, and changes that touch known debt. Report only. Never block and never fix. Use when the user runs /bipbop-skills:adr-review or asks if a change respects the ADRs, policies, or design decisions.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read-only. Compare a change set to accepted decisions and report.

    line 11
  2. Distinctive:

    Find the relevant ADRs: Do not load all of them. Use:

    line 24
  3. Very specific:

    Every ADR read. Use paths, tags, and topic matching.

    line 91

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/bipbop-skills:adr-review

Read-only. Compare a change set to accepted decisions and report. Standing rules: ../adr/SKILL.md.

Arguments: $ARGUMENTS. base-ref (default: the merge base with the default branch, else HEAD) or --staged.

Procedure

  1. Get the change set.
    • --staged: git diff --staged --name-only and the diff.
    • Otherwise: git merge-base <base> HEAD, then git diff <merge-base>...HEAD, plus uncommitted changes (git diff). If there is no diff, say so and stop.
  2. Find the relevant ADRs. Do not load all of them. Use:
    • index rows whose paths globs match a changed file;
    • @decision ADR-NNNN tags in changed files or 30 lines or fewer from a changed hunk (git diff -U30 and grep the hunk);
    • index titles and tags that share a topic with the diff (dependency names in manifests, module names in paths, words in commit messages);
    • the same paths match against the policy and procedure indexes, when those folders exist. Open only those docs. List them with the reason for each selection.
  3. Check for violations. For each relevant accepted ADR, compare its Decision paragraph to what the diff does. Report a finding only when the diff plausibly contradicts the Decision. Cite the ADR, the file, and the hunk, and quote the sentence of the Decision that is at risk. Rate the confidence high / medium / low. Legacy superseded, deprecated, or rejected documents are not binding. Report them as collection-maintenance issues. Do not treat them as current constraints and do not silently delete them. 3b. Check policies and procedures. For each relevant accepted policy, report a diff that plausibly breaks its Rule section, in the same form as step 3. For each relevant procedure, report a diff that makes a step, the verify step, or the rollback step wrong. Suggest an update to the procedure in the same change. If the diff adds or edits a rule doc, check that its kind is correct (routing test in ../adr/SKILL.md). Also check that it does not restate a rule that a different doc holds.
  4. Check unrecorded design intent. Apply "When an ADR is warranted" and "Keep the collection compact and current" in ../adr/SKILL.md. For each candidate, cite the evidence and the essential missing context. Suggest an update to related ADRs first. A technical change alone is not a finding. When the intent is not certain or the evidence is not available, report that. Do not report it as a missing ADR. Also flag contradictory records, and references that a consolidation left behind.
  5. Check known debt. For each changed file, grep known-debt.md for its path or the keywords of the item. If the diff touches a listed item, say that a change to it is permitted. If the diff appears to fix it, suggest the removal of the entry.
  6. Validator. Run python3 "${CLAUDE_PLUGIN_ROOT}/skills/adr/scripts/validate-adrs.py" --no-code-scan only if the diff touches the ADR, policy, or procedure folder. Include its errors.
  7. Report in this shape and nothing else:
ADR review of <range> (<n> files)

Relevant docs: ADR-0003 (paths), ADR-0007 (@decision tag in src/x.py),
policies/product-metrics.md (paths)

Likely violations
- [high] ADR-0003: src/net/client.py adds `import requests`; Decision says
  "all outbound HTTP goes through httpx". Edit the ADR or revert.

Likely policy or procedure breaks
- [medium] policies/product-metrics.md: src/metrics/active.py counts daily
  users; Rule says "active means one session in the last 7 days".

Qualifying ADR candidates
- <evidence of the intended constraint, missing architectural context, and
  affected existing ADRs or a justified new record; omit when none qualify>

Known debt touched
- src/legacy/parser.py is listed; change allowed. Looks fixed: remove entry.

Nothing else found.

Omit empty sections. Never edit files or add @decision tags from this skill. Report validator failures, but do not turn this review into a merge gate.

Pitfalls

  • Every ADR read. Use paths, tags, and topic matching.
  • Style disagreements reported as violations. Only the Decision text counts.
  • A guess at the intent of an ADR beyond its text. If the text is ambiguous, say "ambiguous" and rate low.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.