/grey-matter:conformance-auditfrom grey-matter
Audit a repo's skills, scripts, agent guidance, and docs against current grey-matter standards and apply mechanically-safe fixes behind an approval gate. Use to re-conform an adopted repo or inside adopt-project.
Ships in grey-matter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Measure a repo's agent/repo-health artifacts against grey-matter's current standards, then
apply the fixes that are mechanically unambiguous — leaving the judgment calls for a human. It is
the gate.mjs + curate-docs instinct pointed at a repo (often a foreign one): "does this
repo still follow current conventions, and where it trivially doesn't, fix it."
Two ways in: standalone, to re-conform a repo as grey-matter's guidance drifts (invocation
policy changes, a new consistency check, a reshaped skill); and called by adopt-project as a
pipeline step during a brownfield adoption. Same audit either way; the difference is only where its
fixes land (see Non-destructive).
This skill consumes grey-matter's standards, it does not re-author them. The standards live in the checks and the convention docs (see Rule sources); conformance-audit reads them and measures a target against them, so it stays current automatically as those sources evolve — which is the whole point of being re-runnable.
The skill runs audit, then a gate, then fix. The split is load-bearing: the full classified report must exist and be approved before any fix is applied, so the assessment is never rushed by fixing-as-you-find.
Before reporting current nonconformance, record the target repository identity (remote or supplied path), inspected ref or commit, any supplied comparison/cited implementation revision, its relation to the inspected revision when locally verifiable, and available upstream evidence. Qualify findings to the inspected snapshot when it predates a cited change or currency cannot be established; absence from that snapshot is not evidence of a current product defect. A pinned source read establishes only what that source says, not runtime behavior. Use an already-authorized current source when available; otherwise report the missing access or revision. This preflight does not itself authorize a fetch or clone. Preserve the target's declared verification phase and policy; neither a release nor a missing phase authorizes a phase change.
Walk the four artifact classes (below) and, for each nonconformance, write a finding tagged safe-auto-fix or needs-judgment (the line is below). Edit nothing in this phase. The output is a report: each finding names the artifact, what's wrong, the rule it violates (cite the source), and its tier.
Present the report, most-actionable-first, grouped by class. The human approves which safe-auto-fixes to apply. Judgment findings are surfaced for the human to act on (or to route — see Composition); they are never auto-applied. Approval is required before Phase 2.
Apply the approved safe-auto-fix findings. Leave every needs-judgment finding as a surfaced report item. Land the fixes non-destructively (below).
The tier is decided by one question: does a mechanical rule already define the one correct form, or does fixing it require interpreting intent?
agents/openai.yaml sidecar; a skill
absent from its bucket README.md or from compass; a check or test script that no gates.json check runs;
a broken relative link; a doc misfiled against the docs/agents / dot-prefix rule. These are what
the existing checks already define as right-or-wrong — the fix is the form the rule specifies.AGENTS.md into
pointers; deciding a doc duplicates a skill's job; judging a steering rule a no-op; deduping
overlapping skills; README content that has drifted from what the project does. Surface these;
never auto-apply.When unsure which tier, it is needs-judgment. The safe tier is for the genuinely unambiguous.
SKILL.md frontmatter, invocation policy and its sidecar, bucket/index placement.AGENTS.md / CLAUDE.md / steering: pointer-style not reference-bloated, no
no-ops, no duplication of a skill's job, and everything it names still resolves. From a
grey-matter checkout, node scripts/check-guidance.mjs --repo <target> --no-global reads the
target without writing: its errors join the safe tier, its judgment findings the needs-judgment tier.
A repo AGENTS.md with no test commands by tier (the
test-environment ladder) is needs-judgment:
naming the commands takes the project's intent. Read the Verification phase: line, time
each Git hook and read hosted CI triggers against
local gates; each item in its Findings list is
needs-judgment. Compare a vendored gate.mjs version line with grey-matter's
scripts/gate.mjs and offer the update; never apply it unasked.README.md currency, docs/ layout, relative links, stale or duplicate
docs.Out of scope — the conformance surface only. Audit organization, currency-drift signals,
placement, links, duplication — not content. Do not rewrite or fact-check documentation content
(that is readme's and the authors' job), and do not assess domain-model / GLOSSARY.md content
accuracy (that is domain-modeling / adopt-project's characterize step). A README's drift is a
finding; rewriting its prose is not this skill's job.
Consume these; do not copy them into a new rubric (a fourth copy drifts):
scripts/check-*.mjs embody (invocation policy, index
set-equality, link resolution, installer safety). On a foreign repo that has no grey-matter
scripts, apply the rules those checks embody against the target's files — do not run our scripts
in their repo. When checking links by hand, skip fenced code and inline code spans (link-shaped
example syntax there is not a link); adopt-project's relocate-knowledge.mjs check-links does this.writing-for-agents, docs/agents/doc-conventions.md,
docs/agents/skill-frontmatter.md, and the readme / curate-docs standards. A judgment finding
cites the doc it violates, so it rests on a real rule, not an opinion.Grey-matter-internal rules are N/A on foreign skills. Bucket READMEs, the compass router, and
agents/openai.yaml invocation sidecars are grey-matter's own distribution layout, not part of the
agentskills standard. On a repo that does not distribute its skills through grey-matter (its own
skill product, its own installer), report them as N/A, not as findings. Audit those skills against
the open standard instead: frontmatter shape and name rules, and links that resolve where the
skills are installed, not only in the source repo.
For stored media or generated-evidence growth, consume repository-artifact-hygiene observations. Storage/retention choices remain needs-judgment. When project instructions conflict about the same artifact scope, report both and preserve the project-specific rule pending resolution; use artifact hygiene's lifecycle reference. A warning or binary extension is not nonconformance; only an explicit project policy defines a mechanical violation.
Footprint conformance comes from that skill's footprint inspector, whose conformance block reads
the target without writing (node <skill-dir>/scripts/inspect-footprint.mjs --repo <target> --floor 0B):
Report each scratch family's path, measured bytes, outcome and activeReasons, with the
inspector's coverage and errors. Compare retained attempts with artifact hygiene's bounded-history
rule; report unbounded run history as needs-judgment with its measured size. Size alone does not
establish that an artifact can be deleted.
pytestRetention.finding: a pytest project with no tmp_path_retention_policy keeps every run.
Safe tier: add the one line it prints as fix.scratchCitations: tracked JSON or Markdown citing .scratch paths, which dangle once scratch
goes. Needs-judgment: promote each cited file, using the family's keep list as the migration aid.Fixes apply regardless of an incumbent agent layer. Under adopt-project's subsume-and-replace
intent (docs/adr/0002-adopt-project-soft-lens-polarity-gate.md), an incumbent's nonconformance is the
target of adoption, not a protected authority — adopt-project is replacing that layer with
grey-matter's (lossless and gated; see ADR 0001/0002). So do not soften to report-only just because the
repo has its own AGENTS.md or skills. A standalone run is always on grey-matter's own adopted repo, so
the same applies there by default.
Land fixes on git: a clean working tree going in, fixes applied behind the Phase-1 gate, one reviewable commit, never a byte overwritten outside an approved finding.
adopt-project: fold the fixes into adoption's reviewable commit (don't make a
separate one), and return the findings list so adoption can present it at its own gate. Adoption
files approved judgment findings as review-first migration findings; this skill doesn't file them.For a judgment-tier doc finding, cite the convention it violates and recommend the skill that
owns the fix (readme for README drift, curate-docs for a stale/duplicate/promotable doc) as the
human's follow-up. Do not invoke readme or curate-docs mid-audit — they are interactive judgment
flows and calling them would cascade sub-sessions. Safe mechanical doc fixes (a broken link, a
misfiled doc) this skill applies itself in Phase 2; only the judgment doc work is deferred to those
skills.
readme/curate-docs where they own the fix), never
silently auto-applied.readme/curate-docs — it cites and recommends them.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smileynet/grey-matter --plugin grey-matterOther plugins' skills for the same job
51 skills in this plugin
/adopt-projectAdopt a brownfield repo into grey-matter: characterize its as-is model, subsume existing agent config, seed a triaged board, and wire plumbing./changelogMaintain CHANGELOG.md in Keep a Changelog format with user-facing entries. Use when recording what changed for a release, updating the Unreleased section, or asked to write/update the changelog./cheat-sheetList every skill in this set by category with a one-line description. Use when the user wants a quick reference card of available skills, asks "what skills are there", or "list all commands".