Description
Run static analysis checks and emit a comprehensive code review checklist. Language-agnostic approach for reviewing code quality, style, and best practices.
Inputs
{
"files": ["list of files to review"],
"language": "python|javascript|go"
}
Outputs
{
"ok": true,
"data": {
"issues": [],
"checklist": []
}
}
Usage
Demo Mode
python scripts/main.py --demo
Review Code
echo '{"files": ["src/main.py"], "language": "python"}' | python3 scripts/main.py
Examples
Example 1: Python Code Review
$ echo '{"files": ["main.py"], "language": "python"}' | python3 scripts/main.py
{
"ok": true,
"data": {
"issues": ["Missing docstrings", "Line too long"],
"checklist": ["Code style check pass", "Import organization verified"]
}
}
Error Handling
When an error occurs, the skill returns:
{
"ok": false,
"error": "Error description",
"details": {
"files": "File not found"
}
}