From vibeos
Full audit cycle that dispatches audit agents (security, architecture, correctness, test quality, evidence, product drift, flow, system invariants, dependency intelligence, delivery infrastructure, red team, contract validator), applies consensus logic, and produces a composite report with actionable findings. Use when the user says "audit the code", "review everything", "check for security issues", "do a full review", or wants a comprehensive multi-perspective code review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vibeos:auditThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Dispatch the audit agents, merge findings with consensus logic, and produce a composite report.
Dispatch the audit agents, merge findings with consensus logic, and produce a composite report.
Follow the full USER-COMMUNICATION-CONTRACT.md (docs/USER-COMMUNICATION-CONTRACT.md). Key rules:
Skill-specific addenda:
Before starting, verify these exist:
project-definition.jsonIf no source code exists, report "No source code to audit" and stop.
If $ARGUMENTS specifies a single auditor name (security, architecture, correctness, test, evidence, product-drift, flow, invariant, dependency, delivery, red-team, contract), run only that auditor. Otherwise, run all auditors.
Read project-definition.json for:
Before selecting auditor dispatch mode, refresh local runtime capabilities when the detector exists:
if [ -f ".vibeos/scripts/detect-runtime-capabilities.sh" ]; then
bash ".vibeos/scripts/detect-runtime-capabilities.sh" --project-dir "."
elif [ -f "scripts/detect-runtime-capabilities.sh" ]; then
bash "scripts/detect-runtime-capabilities.sh" --project-dir "."
fi
Read .vibeos/runtime-capabilities.json if it exists. Use it as advisory input for runtime selection, but keep select-audit-visibility-mode.sh as the authority for same-tree versus worktree audit visibility inside VibeOS build sessions.
Before dispatching any auditor, choose visibility automatically:
bash scripts/select-audit-visibility-mode.sh "${ARGUMENTS:-}"
Read .vibeos/session-state.json after that command and use:
audit_visibility_modeaudit_dispatch_profileaudit_snapshot_refRules:
audit_dispatch_profile is same-tree, dispatch the *-same-tree.md auditor variants.audit_dispatch_profile is worktree, dispatch the standard isolated-worktree auditors.Dispatch the selected audit agents using the chosen visibility mode. Auditors remain read-only in both modes.
Agent dispatch list:
| Agent | File | Model | Purpose |
|---|---|---|---|
| Security | agents/security-auditor.md | sonnet | OWASP Top 10, secrets, injection, PII |
| Architecture | agents/architecture-auditor.md | sonnet | Layer violations, circular deps, boundaries |
| Correctness | agents/correctness-auditor.md | opus | Logic errors, missing error paths, user impact |
| Test Quality | agents/test-auditor.md | sonnet | Spec-first, assertion quality, mock density |
| Evidence | agents/evidence-auditor.md | sonnet | Documentation completeness, tracking accuracy |
| Product Drift | agents/product-drift-auditor.md | sonnet | Product promise drift, experience drift, stale decisions |
| Flow | agents/flow-auditor.md | opus | End-to-end user journey, layer handoffs, objective fidelity |
| System Invariants | agents/system-invariant-auditor.md | opus | State rules, ownership, idempotency, recovery, change safety |
| Dependency Intelligence | agents/dependency-intelligence-auditor.md | opus | Current-source dependency evidence, compatibility, lockfiles, audit output, transitive risk |
| Delivery Infrastructure | agents/delivery-infrastructure-auditor.md | opus | CI/CD, deployment, environment/secrets, observability, smoke checks, rollback, runbooks |
| Plan | agents/plan-auditor.md | opus | WO planning correctness, sequencing, canon alignment |
| Red Team | agents/red-team-auditor.md | opus | Adversarial corruption hunting, cheating detection |
| Contract | agents/contract-validator.md | sonnet | Frontend-backend contract verification (cross-boundary only) |
When audit_dispatch_profile is same-tree, replace each agents/<name>.md with agents/<name>-same-tree.md.
For codebases under 15K lines: dispatch each auditor on the full codebase (current behavior).
For codebases over 15K lines: use module-targeted dispatch:
src/gateway/, src/orchestrator/, frontend/src/)For per-WO audits during build: only audit the files changed by this WO (incremental audit), plus their immediate dependencies. Do not audit the full codebase.
Dispatch agents that can run independently in parallel where possible using the visibility mode selected in Step 2. Pass each agent:
project-definition.json pathAs each agent completes, extract its structured findings. Normalize each finding to this format:
{
"id": "[agent]-[N]",
"agent": "[agent name]",
"category": "[finding category]",
"severity": "[critical|high|medium|low|info]",
"file": "[file path]",
"line": "[line number or range]",
"description": "[what was found]",
"recommendation": "[how to fix]",
"confidence": "[high|medium|low]"
}
If an agent fails to complete or returns unparseable output:
Group findings by location (file + line range overlap) and category similarity:
True Positive (high confidence): 2 or more agents flag the same location or same issue pattern.
Warning (review recommended): Exactly 1 agent flags an issue.
Clean: Location checked by multiple agents with no findings.
Write the report to stdout (displayed to user). Format:
## Composite Audit Report
**Date:** [today]
**Scope:** [directories audited]
**audit_visibility_mode:** [same-tree|snapshot|committed-tree|not-applicable]
**audit_snapshot_ref:** [ref|none]
**Auditors dispatched:** [list of 8 or subset]
**Auditors completed:** [count]/[dispatched]
### Executive Summary
- **True positives (2+ auditors agree):** [count]
- **Warnings (single auditor):** [count]
- **Critical findings:** [count]
- **High findings:** [count]
- **Medium findings:** [count]
- **Low/Info findings:** [count]
### Critical & High Findings (Action Required)
| # | Finding | Severity | Consensus | Agents | File | Recommendation |
|---|---|---|---|---|---|---|
| 1 | [description] | [severity] | [true_positive/warning] | [agent list] | [path:line] | [fix] |
### Medium & Low Findings (Review Recommended)
| # | Finding | Severity | Agent | File | Recommendation |
|---|---|---|---|---|---|
| 1 | [description] | [severity] | [agent] | [path:line] | [fix] |
### Auditor Summary
| Auditor | Status | Findings | Top Issue |
|---|---|---|---|
| Security | [complete/failed] | [count] | [top finding or "clean"] |
| Architecture | [complete/failed] | [count] | [top finding or "clean"] |
| Correctness | [complete/failed] | [count] | [top finding or "clean"] |
| Test Quality | [complete/failed] | [count] | [top finding or "clean"] |
| Evidence | [complete/failed] | [count] | [top finding or "clean"] |
| Product Drift | [complete/failed] | [count] | [top finding or "clean"] |
| Flow | [complete/failed] | [count] | [top finding or "clean"] |
| System Invariants | [complete/failed] | [count] | [top finding or "clean"] |
| Plan | [complete/failed] | [count] | [top finding or "clean"] |
| Red Team | [complete/failed] | [count] | [top finding or "clean"] |
| Contract | [complete/failed/skipped] | [count] | [top finding or "clean"] |
### Overall Assessment
[1-3 sentence plain English assessment of project health]
**Recommendation:** [pass/conditional pass/fail]
- pass: No critical or high findings
- conditional pass: High findings exist but are addressable
- fail: Critical findings that must be fixed before proceeding
If this audit was triggered from /vibeos:build, save the report to .vibeos/audit-reports/[WO-NNN]-[timestamp].md for the build log to reference.
Create the directory if it doesn't exist:
mkdir -p .vibeos/audit-reports
After saving the report, register it so session-end closure gates validate the correct report:
bash scripts/register-audit-report.sh ".vibeos/audit-reports/[WO-NNN]-[timestamp].md"
When $ARGUMENTS specifies a single auditor:
project-definition.jsonnpx claudepluginhub chieflatif/codex-vibeos-plugin --plugin vibeosProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.