audit_code_quality
Audit Python files or repositories for code quality, OOP cohesion, nesting depth, anti-patterns, and return-contract consistency, with optional strict mode to treat warnings as failures.
Instructions
Code Craft & OOP Sentry: Audits code quality, OOP cohesion, nesting depth, anti-patterns (silent swallows, mutable defaults, parameter mutations), and contract return consistency.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_code_quality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strict | No | If true, flags any warnings as failures (zero-tolerance mode) | |
| target_path | No | Path to Python file or repository directory to audit (default: '.') | . |