Skip to main content

/audit

Best used: when you want an exhaustive security-oriented audit of the current project (first-party code and dependencies) and prioritized bug plans the fleet can execute — without rediscovering holes ad hoc. See Skills overview.

/audit is plans only: it does not implement fixes, does not pen-test live systems, and must not write exploit PoCs. Default sessions are frontier / reasoner only; mid/small models refuse unless the operator passes --force-model.

Why use it

Without /auditWith /audit
Security findings live in chat and get lostEach finding becomes a .plans bug plan with Priority
Weak models confidently miss holesRuntime model gate + Preferred models on every fix plan
Scanner noise floods the ready queueSeverity map, 25-plan cap, confirm before write
Fixes and “proof” shells mix into the auditHard ban on exploits; redacted evidence only

Usage

InvocationBehavior
/auditFull audit → findings package → confirm → write plans
/audit <path>Audit that project root
/audit --dry-runFindings only; zero plan files
/audit --writeWrite after package without confirm
/audit --to draftsPrivate drafts instead of ready bugs/
/audit --force-modelOverride mid/small refuse (risk acknowledged)
/audit --deps-only / --code-onlyNarrow buckets
/audit --include-noiseKeep low-signal scanner hits
/audit --continueResume capped backlog from a prior run

Pipeline

resolve project → model-fit gate → inventory
→ dependency audit → first-party code audit
→ dedupe / severity → Priority
→ present findings → confirm (or --write / --dry-run)
→ emit bug plans → stop

Never auto-starts /work on the new plans.

Severity → Priority

SeverityPriorityExamples
Critical / HighP1RCE, auth bypass, committed secrets, critical reachable CVE
MediumP2Limited XSS, medium CVE in used path
Low / hygieneP3Defense-in-depth, unused transitive noise

Every emitted plan sets Preferred models: frontier, reasoner (or frontier alone for critical/RCE-class) so mid/small fleet workers skip under normal fit rules.

Write rules

  • Default lane: .plans/bugs/sec-<kebab>.local.md (sticky .local)
  • --to drafts for human promote later
  • Cap 25 plans per run; remainder in footer / --continue
  • Plan shape matches the plan template (no Lane: / Status:)

Safety

  • No exploit payloads or weaponized “proofs”
  • Redact secrets (path + last 4 / hash)
  • No public disclosure side-effects from the skill defaults
  • No destructive remediation from /audit itself

Scaffolded?

Yes — dual-use Claude command + Grok skill (scripts/anchor.py platform lists).

Full contract: source .claude/commands/audit.md / .grok/skills/audit/SKILL.md.