agentleFS
rvdbreemenrvdbreemen/adr-kit/skills/audit/SKILL.md

audit

Skill10 starsChanged 5 months agoMITView on GitHub

Are we still on course? Lint the decisions and judge the code in one run. Use for ADR audit, architecture drift, a whole-codebase compliance check, or a governance report. Read-only.

164 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use overdrive, delight and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikafastovets-langSkill

    overdrive

    Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?

    Also in 12 projects that use this

  • mtctSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

    Also in 18 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 12 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 10 projects that use this

  • tdiminoSkill

    shape

    Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shape the UX, before we build, design discovery.

    Also in 8 projects that use this

  • +4 more from mtct
  • +1 more from nikafastovets-lang

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 147 edited versions we read keep these.

  • 2

    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:

    Use $ARGUMENTS to pick the scope.

    line 10
  2. Very specific:

    Add --llm to include the judge's LLM pass for llm_judge ADRs.

    line 40
  3. Distinctive:

    Never collapse 1 and 3 into "the audit failed".

    line 56
  4. Distinctive:

    Never work around an Accepted ADR silently.

    line 64

“Common” is measured: kept by at least 6 in 10 of the 147 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

ADR Audit

Use $ARGUMENTS to pick the scope. Empty means the whole codebase, because that is the question people mean when they ask whether the project is still on course. Read-only: this skill reports, it never edits an ADR or a source file.

Why one command for two questions

Two answers are needed and either one alone is misleading:

  • Are the decisions any good? A clean judge over vague ADRs proves nothing, because a vague rule cannot be violated.
  • Does the code obey them? A sharp ADR set nobody checks the code against is documentation, not governance.

bin/adr-audit runs adr-lint and adr-judge together so the caller does not have to know the answers come from two binaries.

Run it

# The whole codebase: every tracked file judged as if newly added, so forbid
# rules reach code no recent diff touched.
"$ADR_KIT/bin/adr-audit" --whole-codebase --adr-dir docs/adr --repo-root .

# A specific diff: the hook and pull-request case.
git diff --unified=0 origin/main...HEAD | "$ADR_KIT/bin/adr-audit" --diff -

# Machine-readable, for a CI job or another tool.
"$ADR_KIT/bin/adr-audit" --whole-codebase --format json

Add --llm to include the judge's LLM pass for llm_judge ADRs. It costs money and time proportional to the number of opted-in ADRs, so confirm with the user before adding it — never on your own initiative.

Read the exit code before you read the output

The two failures have different owners, so they have different codes:

ExitMeaningWho fixes it
0on coursenobody
1the code violates an Accepted ADRthe author of the code, or supersede the decision
3the ADR set fails its own gatesthe author of the records
4bothboth, and report them separately
2the audit could not runtooling or configuration; it did not answer "no"

Never collapse 1 and 3 into "the audit failed". Say which one, and to whom it belongs. Exit 2 is not a finding: report that the audit could not run and why, and do not present its silence as a pass.

Responding to findings

  • Code violations — cite ADR, file and line. Offer to fix the code, or, if the decision itself is what is wrong, to supersede it with /adr-kit:adr. Never work around an Accepted ADR silently.
  • ADR-quality failures — name the failing gate, not just the ADR. Offer /adr-kit:grill ADR-NNN for a Proposed record. An Accepted record's body is immutable: the honest routes are a supersession or a retirement, never a rewrite.
  • Whole-codebase mode surfacing old violations — expected and worth saying plainly. A rule added after a file was written has never been applied to that file. Offer a remediation task rather than a large unrequested edit.

Which gates a green audit covers

By default the lint half runs completeness, audit and consistency -- the structural gates, which have exact answers. A green audit at the default set is not a statement that the records are sharp, and this command's own rationale turns on that distinction: a clean judge over vague ADRs proves nothing, because vague rules cannot be violated.

--gates passes a set through to adr-lint. --gates all adds schema, evidence, clarity, policy and quality.

QuestionGate set
Are the records structurally sound?default
Are they sharp enough to be violated?--gates all
Would they survive release?--strict

Say which set produced the answer when you report it. "The audit is green" is a different claim depending on the set, and the reader cannot tell from the verdict line alone.

Where it fits

  • /adr-kit:judge judges one staged diff at commit time. Narrower and faster.
  • /adr-kit:lint checks the records alone.
  • /adr-kit:guardian runs a version of this combination on a cadence.
  • /adr-kit:audit is the on-demand form a person, a hook or a CI job can simply demand, and the only one that reaches code no diff has touched.

bin/adr-discover is a different thing despite the old name: it is the init scanner that looks for decision-shaped artefacts. It does not audit anything.

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.