1---2name: audit3description: Audit a new or unfamiliar project to understand its structure, health, risks, documentation gaps, and next actions. Use when initially entering a repo, assessing project quality, preparing onboarding, or asking what should be improved first.4---56# Audit78## Input910- A repository, path, subsystem, branch, feature, diff, or audit question.11- Use explicit input first; otherwise infer from context, recent edits, selected files, or branch.12- Safest default: audit the current project at a high level.1314## Workflow15161. **Map the project**. Identify purpose, stack, entry points, package structure, runtime, and ownership boundaries.172. **Find commands**. Locate install, dev, test, lint, typecheck, build, release, and deploy commands.183. **Run safe checks**. Execute available non-destructive checks when practical; record missing or failing checks.194. **Review docs**. Check README, architecture docs, API docs, devops docs, runbooks, and examples for gaps or stale claims.205. **Inspect risk areas**. Review security, dependencies, config, migrations, data handling, error paths, observability, and release/deploy posture.216. **Identify issues**. Produce prioritized findings with evidence, impact, and suggested next action.227. **Fill obvious docs gaps**. If requested, update small missing docs discovered during the audit.2324## Output2526- Project map27- Available commands and check results28- Findings ordered by severity or leverage29- Documentation gaps30- Suggested next actions31- Work explicitly not audited3233## Guardrails3435- Do not make broad changes during an audit unless the user asks.36- Do not run destructive commands or deploys.37- Distinguish observed facts from guesses.38- Prefer actionable findings over generic best-practice lists.