원클릭으로
fix-failing-tests
Iteratively fix all failing tests until the test suite is green
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Iteratively fix all failing tests until the test suite is green
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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"