/senior-standards:auditfrom Senior Standards
Use when asked to review, audit or health-check an existing repository against the senior standards, or to find what is missing in its tooling, security, CI, documentation or architecture checks, for any language; produces a prioritised gap report without changing anything.
Ships in Senior Standards. 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.
None: SKILL.md is the whole skill.
A read-only pass over an existing repository. Output is a prioritised gap report with the fix for each gap. It changes nothing: no file edits, no installs, no settings changes, no commits, until the user approves specific fixes.
core/standards.md (always injected): decision gate and ADRs, official install, doc locations, hygiene, project memory (AGENTS.md with CLAUDE.md containing only @AGENTS.md).<plugin root>/skills/repo-standards/checklist.md part 2: the Always items, plus the items the setup record turns on (Setup record drift) — the plugin root is ${CLAUDE_PLUGIN_ROOT} in Claude Code; in OpenCode it is two directories above this SKILL.md file.<plugin root>/skills/repo-standards/profiles/ as a hint, or research for a language without a profile. Verify the expected tools and settings against current official docs; do not judge from memory.project-blueprint, senior-standards:project-blueprint): README.md, at Docs full docs/product/requirements.md and docs/architecture/overview.md (threat model, layer rules), docs/adr/ with 0001, accepted ADRs for the stack, generated README.md index, CONTRIBUTING.md, AGENTS.md/CLAUDE.md, and SECURITY.md at Public yes.Read ## Project setup in the root AGENTS.md and compare each value with the repository. One check per setting; the integration branch is dev when Versioned releases is yes, otherwise main. Overrides turn single items on or off and are checked the same way.
| Setting | Check |
|---|---|
| Always | Ruleset on main with PRs required and the CI checks required (R1); CI runs check on PRs into main, and into dev too when Versioned is yes (R5); gitleaks hook config and CI job (S1); PR-title job (V2); .github/pull_request_template.md (R2); least-privilege, SHA-pinned workflows (S3); frozen installs (D3); .editorconfig, .gitattributes (R4); docs checks and ADR index (C1, C2); CONTRIBUTING.md workflow section (C4); the dependency check job (D6) and .github/scripts/senior-standards/ with a VERSION not older than the installed plugin's version (<plugin root>/package.json) — an outdated VERSION is a finding, fixed by re-running the vendor script |
| Docs: basic | README.md, AGENTS.md, CONTRIBUTING.md, docs/adr/ with 0001 and accepted ADRs for the stack |
| Docs: full | Docs: basic plus docs/product/requirements.md and docs/architecture/overview.md; layer rules enforced in check (A1) |
| Tests: light | CI builds and runs the tests that exist; tests cover the critical paths |
| Tests: standard | Tests sit beside most source modules; CI reports coverage |
| Tests: strict | Coverage threshold on changed code enforced in CI (T1) |
| Public: yes | The repository is public on the forge (or the Public items are overrides); CodeQL enabled (S2); secret scanning with push protection on (S1); Scorecard workflow (S5); SECURITY.md (S4) |
| Maintained: yes | Renovate config with lockfile maintenance (D1); a dependency audit step in CI (D7) |
| Versioned: yes | dev exists with a ruleset and in the CI branch filters (R7, R1); .github/PULL_REQUEST_TEMPLATE/release.md (V5); versioning scheme in CONTRIBUTING.md (V1); release tool config (V3); generated changelog and v* tags (V4) |
| Versioned: no | No dev branch; PRs target main |
AGENTS.md is itself a finding (Important): fix by running project-init (senior-standards:project-init). Without a record, check the Always items only and say the rest was skipped.dev branch with Versioned no) are reported as drift, never as something to delete; changing them goes through project-init.Survey. Read the setup record. List the repository: manifests (languages), lockfiles, CI workflows, .github/, config files, docs/, docs/adr/. Read-only commands only. Run the project's check entry point only if it is documented, and say so; it must not modify files.
Compare. For each item in the four sources, record: present and correct, present but weak, or missing. Examples of weak: lockfile committed but CI installs without frozen mode; permissions missing or broad; actions pinned to tags not digests; coverage measured but no threshold; layer rules documented but not enforced; dependencies in manifests without an accepted ADR; unused-code check absent; docs out of date with the code.
Check the repository settings you can read (rulesets on main and dev, visibility, secret scanning, CodeQL), through the GitHub CLI when available. If they cannot be read without changing them or without access, list them under "needs manual check".
Report in this shape:
## Audit report
Setup record: … Languages: … Sources checked: …
### Blocking
- <gap> — why it matters — fix: <exact change, file and tool>
### Important
- …
### Nice to have
- …
### Needs manual check
- …
### Fine
- <short list of what already meets the standards>
yes, or leaked secret patterns, no lockfile or unfrozen CI installs, workflows with write-all tokens or unpinned third-party actions, no default-branch protection, unreviewed install scripts, dependencies with open high/critical advisories, check red).check entry point, no ADRs for the stack, no Conventional Commit enforcement, and record items such as no coverage threshold at Tests strict, no Renovate at Maintained yes, missing SECURITY.md at Public yes, no architecture rules at Docs full).Offer next steps and stop. Ask which fixes to apply (ask with the harness's structured-question tool if it has one, otherwise in chat). Applying fixes goes through repo-standards (senior-standards:repo-standards) for tooling, project-blueprint for missing docs, and decision-gate (senior-standards:decision-gate) for any new dependency. Changing GitHub settings still needs a separate yes per setting.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/adrUse when recording an architecture or dependency decision, creating or superseding an ADR in docs/adr, changing an ADR's status, or regenerating the ADR index, in any language or repository./decision-gateUse when about to add, choose or propose a dependency, library, framework, external service, database, hosting provider or paid API, in any language or ecosystem, including in existing repositories, and before any install command runs./official-integrationUse when a dependency, library, framework or service decision has been accepted and it is time to install, configure or wire it in, in any language or ecosystem, including adding the vendor's official MCP server and Agent Skills for the harnesses the project uses./project-blueprintUse when a brainstorming spec has just been approved for a new project or for a change that introduces new services, data stores or frameworks, before writing the implementation plan; or when the user asks for project documentation, architecture docs, requirements, a README or project memory (AGENTS.md)./project-initUse when starting a new project, before planning the first feature; when the repository's AGENTS.md has no project setup record (the session-start reminder says so); or when the user wants to change one project setting such as the docs level, test extent, public, maintained or versioned, in any language or repository./repo-standardsUse when setting up or bringing a repository up to standard (formatter, linter, type strictness, tests and coverage, unused-code and architecture checks, dependency hygiene, CI, GitHub settings, a single check command), for any language or stack, new or existing.npx claudepluginhub titanfrigel/senior-standards --plugin senior-standards