con un clic
fix-failing-tests
Iteratively fix all failing tests until the test suite is green
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Iteratively fix all failing tests until the test suite is green
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Ansible health check discovers host issues → fix one by one (write ops require human approval) → re-inspect → repeat until all healthy → generate HTML report
SSH into a server, restart Nginx, and verify it's back up
| name | fix-failing-tests |
| description | Iteratively fix all failing tests until the test suite is green |
| user-invocable | true |
Before starting execution, initialize task_context.json:
{
"task_id": "<task_id from input>",
"current_step": 0,
"current_step_id": null,
"status": "running",
"steps": {
"fix_loop": "pending",
"present": "pending"
},
"updated_at": "<ISO timestamp>"
}
Update this file after each step completes. On error, set step status to "failed" and overall status to "failed".
Type: loop Description: Run tests, analyze failures, fix source code, repeat until green
Goal: pytest exits with 0 failures (all tests pass) Max Iterations: 10
This step executes as a loop. The body steps repeat until the goal is met or max iterations reached.
Type: script
Execution: Execute the following command:
cd examples/fix-loop && python3 -m pytest tests/ --tb=short 2>&1 | tail -60
Type: agent
Execution: Launch an independent agent with the following prompt file:
Look at the pytest failures from run_tests. Pick ONE source file that has failing tests and fix the bugs in that file.
Rules:
After all body steps complete, evaluate:
Goal: pytest exits with 0 failures (all tests pass)
Append a summary to iteration_history after each iteration.
After completing this step, update task_context.json:
current_step_id to "fix_loop"steps.fix_loop to "completed"Type: inline
Follow these instructions:
Generate a markdown report summarizing the fix loop results. Include:
After completing this step, update task_context.json:
current_step_id to "present"steps.present to "completed"