Files
holocron/plugins/core/skills/agentsmd-audit
Defame1297 925f04acdb fix(agentsmd-audit): scope secrets-scanner placeholder allowlist to matched token
validate-secrets.sh checked the placeholder allowlist regex against the
whole line before running any secret-pattern regex. An unrelated
placeholder-looking token anywhere on the line (e.g. "example" or
"your-token-here" in a trailing comment) suppressed detection of a real
credential earlier on the same line. Scope the allowlist check to the
matched secret-candidate substring only, which the per-match re-check
already did downstream but the whole-line pre-check short-circuited
before it ever ran.

Extend validate-secrets.bats with a case proving a real AWS-style key is
still caught when a placeholder token sits elsewhere on the line.
Regenerate the flat-mirror copy at
plugins/core/skills/agentsmd-audit/scripts/validate-secrets.sh via
scripts/sync-plugin-content.sh --all per ADR-0016.
2026-08-13 21:56:28 +00:00
..

agentsmd-audit

Audit a target repo's AGENTS.md file(s) for embedded secrets, structural completeness, and drift.

What it does

Runs a single combined pass across every AGENTS.md file in a repo (root and any nested monorepo files): flags embedded secrets/credentials, checks structure against the agents.md common-sections checklist, and resolves referenced commands/paths against the actual repo to catch stale documentation. Outputs a compact findings report — findings only, grouped by dimension, each with Why and Fix. Never inspects provider-specific adapter files (CLAUDE.md, etc.) and never writes or fixes anything.

Usage

/agentsmd-audit

Provide the path to the repo root to audit when invoking.

Files

File Purpose
SKILL.md Skill instructions for agents
scripts/validate-secrets.sh Scans AGENTS.md files for embedded secrets, API keys, tokens, connection strings
scripts/validate-structure.sh Checks for empty/placeholder content, common-sections checklist, nested-vs-root duplication
scripts/validate-drift.sh Resolves referenced npm/make commands and file paths against the repo
references/sources.md Provenance record — sources that informed this skill and which files each contributed to
scripts/README.md Directory documentation for scripts/
tests/README.md Bats test dependency and run instructions
tests/validate-secrets.bats Bats test suite for scripts/validate-secrets.sh
tests/validate-structure.bats Bats test suite for scripts/validate-structure.sh
tests/validate-drift.bats Bats test suite for scripts/validate-drift.sh