| name | policy-audit |
| description | Audit whether a repository's checked-in code, scripts, workflows, and docs actually define and enforce repository policies. Use when asked to verify tests, CI, pre-commit, AGENTS, deploy, or release enforcement and produce a formal policy audit. |
Policy Audit
Use this skill for evidence-based repository policy audits that must follow a fixed rubric and produce a strict Markdown report.
Workflow
- Read
references/policy-rubric.md before auditing anything. That file is the authoritative rubric.
- Capture the current git SHA before the audit begins.
- Inspect the repository conservatively, prefer checked-in evidence over convention, and be very diligent when changing existing documentation so you do not regress or weaken prior instructions.
- Follow wrapper commands until the real validation, test, CI, hook, and deploy or release paths are clear.
- Run canonical validation and test commands in a read-only manner whenever feasible.
- After making fixes, perform a post-fix review of the changed documentation and surrounding instructions to verify there were no regressions.
- Create
{{ env "DOCS_INTERNAL_DIR" }}/audit/ if it does not exist, then write the final Markdown report to {{ env "DOCS_INTERNAL_DIR" }}/audit/policy.md, including the quality checks that were run and their results.
- Return the same Markdown report with no extra commentary.
Reference
references/policy-rubric.md contains the exact audit rules, discovery scope, required checks, and output format. Do not deviate from it.