onewave-ai/overnight-repo-auditor
Uses Managed Agents' 14.5-hour runtime to audit an entire codebase overnight. Security, performance, accessibility, dependency issues. You wake up to a full report.
npx skills add https://github.com/OneWave-AI/claude-skills --skill overnight-repo-auditor
Autonomously audit an entire codebase overnight and produce a single severity-rated report covering security, performance, accessibility, dependencies, and code quality. Built for Anthropic's Managed Agents runtime (14.5-hour task horizon): run to completion without questions or confirmation, writing structured findings to disk as execution proceeds so partial results survive interruption.
references/reconnaissance.md -- Phase 1 steps and the reconnaissance report template.references/shared-rubric.md -- Severity rating rubric and structured finding format. Pass both to every agent.references/agent-security.md -- Security Auditor brief and output format.references/agent-performance.md -- Performance Auditor brief and output format.references/agent-accessibility.md -- Accessibility Auditor brief, skip condition, and output format.references/agent-dependency.md -- Dependency Auditor brief, skip condition, and output format.references/agent-code-quality.md -- Code Quality Auditor brief and output format.references/compilation-and-templates.md -- Phase 3 compilation steps, final report template, and completion message.audit-workspace/ directory and overnight-audit-report.md. Never modify, build, or execute project code. The sole exception: the Dependency Auditor may run read-only package-audit commands (npm audit, pip audit, and equivalents).audit-workspace/00-reconnaissance.md as the shared context document for all agents.Follow references/reconnaissance.md for exact commands and the report template.
run_in_background: true on every call and send ALL agent calls in a single message.references/shared-rubric.md, and the agent-specific brief from its reference file. Each agent writes to its own output file under audit-workspace/.references/agent-security.md -> 01-security-audit.mdreferences/agent-performance.md -> 02-performance-audit.mdreferences/agent-accessibility.md -> 03-accessibility-audit.md (honor skip condition)references/agent-dependency.md -> 04-dependency-audit.md (honor skip condition)references/agent-code-quality.md -> 05-code-quality-audit.mdovernight-audit-report.md to the repository root, then emit the brief completion message.Follow references/compilation-and-templates.md for the deduplication map, final report template, and completion message.
| Codebase Size | Estimated Duration | Agent Strategy |
|---------------|-------------------|----------------|
| < 10K lines | 15-30 minutes | All agents, single pass each |
| 10K - 50K lines | 30-90 minutes | All agents, thorough pass |
| 50K - 200K lines | 1-4 hours | All agents, may need sub-agents for Security and Code Quality |
| 200K - 500K lines | 4-8 hours | All agents spawn 2-3 sub-agents each to parallelize file review |
| 500K+ lines | 8-14 hours | Full sub-agent deployment with file-batch assignments per sub-agent |
For codebases over 200K lines, each audit agent should spawn sub-agents to parallelize within its domain (for example, Security splits into Auth & Sessions, Data Handling, API Surface, and Infrastructure). Each brief instructs agents to self-organize sub-agent deployment based on the size discovered during their audit.
audit-workspace/ directory and overnight-audit-report.md. Suggest the user commit or copy prior results first..gitignore exists but does not list audit-workspace/, suggest adding it to prevent committing audit output.Take onewave-ai/overnight-repo-auditor from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.