aicr-auditing-docs
Skill432 starsChanged 4 months agoApache-2.0View on GitHub
Use when reviewing AICR's Markdown documentation for duplication, drift, bloat, and gaps — to keep docs high-value as the project evolves. Triggers on "audit the docs", "review documentation", "docs cleanup", "/aicr-auditing-docs", or any request to find redundant/stale/missing docs across README, docs/, demos/, and the root governance files. Produces a prioritized findings report (research, not edits) grouped by the five audit dimensions, anchored to the project's canonical sources of truth.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- aicr-analyzing-snapshotsSkill
- aicr-creating-guided-demosSkill
- aicr-creating-slide-decksSkill
- aicr-cross-reviewSkill
- aicr-managing-openvexSkill
- aicr-release-notesSkill
- aicr-reviewing-component-driftSkill
- aicr-triageSkill
- aicr-uat-reportSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
After a large feature merges (new CLI flag, API endpoint, component, recipe field).
- Distinctive: line 28
When the same explanation appears in multiple files and you suspect drift.
- Distinctive: line 63
Run every file through these.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Auditing AICR Documentation
Overview
AICR's docs are mature and already well-structured: a persona split under
docs/ (user / integrator / contributor), a docs hub with glossary
(docs/README.md), ADRs in docs/design/, and a strong root README.md.
The recurring risk is not missing structure — it is duplication and
drift as features land. This skill is a repeatable audit, not a rewrite:
default to a findings report; only edit when explicitly asked.
When to Use
- Periodic doc health check, or before a release.
- After a large feature merges (new CLI flag, API endpoint, component, recipe field).
- When the same explanation appears in multiple files and you suspect drift.
- Not for: writing a single new doc (just write it, following the style
rules below), or generated content (
docs/conformance/,docs/user/container-images.md).
The Map (what to audit, and how it's owned)
| Area | Canonical owner | Notes |
| Project pitch, features, supported envs | root README.md | Quick Start may duplicate docs/user/installation.md — acceptable for README only. |
| User how-to / reference | docs/user/ | cli-reference.md owns flags; task narrative belongs in task docs (validation.md, agent-deployment.md). |
| Integration / embedding | docs/integrator/ | Resolver internals belong in contributor/, not here. |
| Project internals | docs/contributor/ | Architecture overview = contributor/index.md. |
| Demos / runbooks | demos/ | GitHub-only (not in fern/docs.yml nav). Terse names hurt discovery. |
| Governance | CONTRIBUTING.md, DEVELOPMENT.md, RELEASE.md, SECURITY.md | Each owns one concern; cross-link instead of repeating. |
| Agent rules | .claude/CLAUDE.md (canonical) → AGENTS.md (CI-synced mirror — never flag) | .github/copilot-instructions.md should be a pointer, not a copy. |
Sources of Truth (drift hotspots — check these first)
Drift between examples and these authoritative sources is the highest-value class of finding:
- Component/chart/image versions →
docs/user/container-images.md(the BOM, regenerated bymake bom-docs). Inline version examples elsewhere (cli-reference.md,api-reference.md,data-flow.md) should be marked illustrative and point here — never hand-pinned to a stale tag. - Tool versions (golangci-lint, Go, Ko) →
.settings.yaml. Never hardcode in prose or sample workflow YAML. - Criteria/enum values (service, accelerator, os, intent, platform, error
codes) → the Go type (e.g.
pkg/recipe/criteria.go). Enums are enumerated in many files; see the enum-audit checklist inCLAUDE.md→ Documentation updates. - API shape →
api/aicr/v1/server.yaml(OpenAPI). The component lists and response samples inapi-reference.mddrift from the registry — diff them.
The Five Audit Dimensions
Run every file through these. Group findings by dimension, prioritized.
- Duplication — same steps/tables/concepts in >1 file. Pick the canonical
owner (table above), trim the rest to a cross-link. Known repeat offenders:
agent/snapshot deployment, recipe-evidence walkthrough, constraint
paths/operators table,
make-target block, DCO/signing rules, the sixdemos/cuj*-{eks,gke}.mdfiles (~80% shared). - Overlap / misplacement — content in the wrong persona tree (e.g.,
resolver internals in
integrator/, agent deployment inintegrator/when it's a user concern), or a topic split awkwardly across files. - Bloat — verbose sections that lose no value when cut: embedded SBOM/JSON
dumps, repeated
export TAG=blocks, stub code that contradicts the architecture ("AICR is not a controller"), generic K8s boilerplate that isn't AICR-specific, walls of text needing structure. - Gaps (Diátaxis) — is each of tutorial / how-to / reference / explanation
present for the persona? Known holes: no end-to-end tutorial
(install→recipe→bundle→deploy→validate), no
aicr bundlehow-to. - Staleness / style violations — TODOs, "(Future)" content shown as usable,
contradictory version numbers, leftover template placeholders
(
__AICR (AICR)__), and violations of the repo's own doc-style rules below.
Repo Doc-Style Rules (enforce during audit)
These are defined in CLAUDE.md → Documentation Style; flag violations:
- Auto-anchors, no manual TOCs — GitHub/Fern generate anchors. Manual
## Table of Contentsblocks (present inCONTRIBUTING.md,DEVELOPMENT.md) are violations. - Promote
**Bold Label:**to a heading sparingly — only a named topic with ≥ ~8 lines beneath it. - Anchor hygiene — when renaming/removing a heading, grep
<file>.md#<old-slug>repo-wide and fix inbound links. Broken anchors fail CI via lychee on anydocs/**PR (.github/workflows/fern-docs-ci.yaml) — but notmake qualify.
How to Run It
- Parallelize by area to protect context: dispatch one research agent per
tree — (a)
docs/persona trees, (b) root + agent docs, (c)demos/. Give each the five dimensions and the sources-of-truth list; ask for a concise (<600 word) report with file paths and concrete recommendations. - Synthesize into one prioritized report. Lead with version/enum drift (highest value), then duplication consolidations, then bloat/gaps.
- Report, don't rewrite by default. If asked to fix: one focused PR per
theme (e.g., "de-dup agent deployment", "trim SECURITY.md"), keep diffs
reviewable, and after any change run
make qualify(and note lychee is separate). Touchingdocs/**requires the lychee anchor check.
Common Mistakes
- Flagging the
AGENTS.md↔CLAUDE.mdmirror as duplication — it's intentional and CI-enforced. - Recommending a TOC "for navigation" — violates the auto-anchor rule.
- Hand-fixing a version in an example — fix the pattern (mark illustrative,
link to
container-images.md) so it can't re-drift. - Editing generated files (
container-images.md,docs/conformance/) directly instead of their generators. - Auditing one file in isolation — duplication only shows up across files; read the tree.
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
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.

