// "Generate fix suggestions based on error patterns and best practices. Use when analyzing failures to get actionable remediation steps."
| name | generate-fix-suggestions |
| description | Generate fix suggestions based on error patterns and best practices. Use when analyzing failures to get actionable remediation steps. |
| category | testing |
| mcp_fallback | none |
Analyze error patterns to suggest specific fixes and improvements.
# Categorize errors
grep "Error\|FAILED" output.log | sed 's/.*Error: //' | sort | uniq -c | sort -rn
# Get context around error
grep -B 3 -A 3 "AssertionError" output.log
# Extract error type
grep -o "Error[A-Za-z]*" output.log | sort | uniq -c
# Find patterns in multiple failures
for file in test_*.log; do
echo "=== $file ==="
grep "Error:" "$file" | head -3
done
Assertion Errors:
assert_equal(actual, expected) failsType Mismatches:
TypeError, AttributeError in function callOut of Bounds:
IndexError or array access failureImport/Module Errors:
ModuleNotFoundError, ImportError__init__.mojo or fix pathMemory/Initialization:
varReport suggestions with:
Critical (fix immediately):
High (fix soon):
Medium (nice to have):
Low (backlog):
| Problem | Solution |
|---|---|
| Unknown error type | Classify as "other", suggest general investigation |
| Insufficient context | Request more detailed error info |
| Multiple causes | Suggest fixes in priority order |
| No matching pattern | Flag for manual review |
| False positives | Verify suggestion with test run |