audit_codebase_architecture
Scans a local repository to detect circular dependencies, coupling hotspots, layer violations, and reliability/security anti-patterns, returning a 0-100 health score and Mermaid dependency graph.
Instructions
Scan a local repository directory on disk to detect circular module dependencies (Tarjan SCC), coupling/instability hotspots (Ca/Ce/I), layer boundary violations, and 12 production reliability/security/SOLID anti-patterns (N+1 queries in loops, missing HTTP timeouts, unbounded caches, check-then-act races, SQL/command injection, God modules). Outputs a 0-100 health score and Mermaid dependency graph.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directoryPath": "<directoryPath>"
},
"name": "audit_codebase_architecture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxFiles | No | Maximum source files to scan (default 250). | |
| maxFileLines | No | LOC threshold for God File detection (default 500). | |
| directoryPath | Yes | Absolute or relative path to the project directory to audit. |