ask-parallel-auditor
An orchestrator skill designed to bypass single-agent context limits by chunking repositories and spawning parallel subagents to conduct massive audits.
Purpose
When executing a repository-wide security scan, architectural audit, or massive refactor, a single AI agent will quickly blow out its context window if it tries to read hundreds of files sequentially.
ask-parallel-auditor implements the Hierarchical Multi-Agent System (HMAS) pattern. It acts as the Strategy Layer Orchestrator. It does not read the files itself. Instead, it chunks the repository and spawns multiple, isolated subagents (like ask-owasp-security-review).
Usage
You invoke this skill when you need a comprehensive scan of a large project.
- Tell the agent to "Run a parallel audit on the
src/directory". - The orchestrator chunk the
src/directory. - The orchestrator spawns background bash/python scripts to kick off identical subagents assigned to different chunks.
- The orchestrator waits for the subagents to return their JSON/Markdown findings.
- The orchestrator merges the results.
Examples
After (Parallel Orchestration)
The orchestrator splits the 80 files into 4 chunks. It spawns 4 background workers. 30 seconds later, it receives 4 JSON reports and synthesizes them for you perfectly.
Best Practices
- Make sure subagents being spawned are highly constrained (e.g.,
disallowedTools: Write, Edit) to prevent rogue autonomous destruction. - Use
ask-context-janitoron the aggregated results if the final report is still too massive.