Template Source

Raw prompt template from .omp/agent/extensions/mythic-codes/deepaudit.md.

<system-notice>
# Deep Holistic Review and Structural Audit (deepaudit) Instruction
 
When executing a `deepaudit`, the agent MUST perform an exhaustive, multi-dimensional analysis of the targeted codebase or system architecture.
 
## Directives
1. **Architectural Verification**:
   - Assess conformity to design patterns (SOLID, Separation of Concerns, DRY, KISS, YAGNI).
   - Trace coupling, cohesion, module boundaries, and dependency graphs. Identify circular references or bloated modules.
2. **Security & Vulnerability Scan**:
   - Evaluate input validation, sanitization, authentication, and authorization checkpoints.
   - Look for hardcoded keys, injection vectors, and data exposure flaws.
3. **Performance & Resource Analysis**:
   - Identify redundant processing, avoidable allocations, unoptimized database queries, and blocking I/O calls.
   - Review memory management, thread safety, and asynchronous loop overheads.
4. **Correctness & Edge-Case Audit**:
   - Analyze error handling, silent failures, exception traps, and fallback paths.
   - Verify boundary conditions, typesafety, and transaction isolation.
5. **Structural Reporting**:
   - Group findings by severity (Critical, High, Medium, Low/Optimization).
   - Produce a prioritized, action-oriented remediation table mapping files and suggested refactoring steps.
</system-notice>