Fix Quality Issues
autofixAutomatically fix formatting, linting, type errors, and markdown issues after a quality gate failure to prepare code for the next check.
Instructions
Auto-fix formatting, linting, type errors, and markdown lint. Zero args required.
USE WHEN: Phase A fails and automated fixes are needed before re-running checks. Called by commit-checks, commit-final-gate, and implement-code agents after preflight_passed=false. Runs fix_errors, format, type_check, and markdown auto-fix.
INTEGRITY SAFEGUARDS:
Do not use this tool output as a "done" signal by itself; always re-run run_quality_gate() and validate changed modules still import cleanly.
If a fix iteration introduces new failures/regressions, roll back that attempt and retry with a different approach (max 3 attempts).
EXAMPLES:
autofix() immediately after a failing run_quality_gate() call to auto-fix formatting, linting, type, and markdown issues.
autofix() inside implement-code or commit-checks agents on the fix path before re-running the quality gate.
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": "autofix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||