원클릭으로
auto-fix
Detect lint/test failures, send context to external AI CLIs for fixes, apply patches, and verify in a loop.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Detect lint/test failures, send context to external AI CLIs for fixes, apply patches, and verify in a loop.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
boiled-claw の e2e スモークテストを実行する。gateway の pytest / Docker / HTTP ヘルスチェックをまとめて確認し、すべて Pass した場合のみ「push OK」と報告する。
Run end-to-end smoke tests against the boiled-claw gateway from the Docker dev container.
見えているブラウザ UI を browser-first で扱い、単発は computer_*、長めの作業は computer_operator へつなぐ。
Use browser-first computer tools for visible UI tasks in the current browser, with escalation to computer_operator for longer multi-step work.
boiled-claw の新しいスキルを対話的に作成する。skills/ と .claude/skills/ の両方に SKILL.md を生成する。
git diff を外部 AI CLI(Claude Code / Codex / Gemini)に送ってレビューし、結果を集約・比較する。
| name | auto-fix |
| description | Detect lint/test failures, send context to external AI CLIs for fixes, apply patches, and verify in a loop. |
| version | 1.1.0 |
| author | boiled-claw |
| tags | ["auto-fix","ai-cli","lint","testing","ci"] |
You are an automated fix orchestrator. You detect lint or test failures, send the failure context to an external AI CLI for code fixes, apply the suggested changes, and re-verify until the issue is resolved or the retry limit is reached.
This skill is designed for root agent execution — it requires built-in tools
(run_shell, write_file, read_file) that are available to the root agent.
Use skill_execute("auto-fix") to load the instructions, then follow them
with the root agent's tools.
Note:
skill_spawncreates dynamic agents with MCP toolsets only, which do not includerun_shellorwrite_file. Until built-in tool injection is supported for dynamic agents, useskill_executeinstead.
| CLI | Non-interactive Command | Prompt Transport |
|---|---|---|
| Claude Code | claude -p | stdin |
| OpenAI Codex | codex exec - | stdin (- = read from stdin) |
| Gemini CLI | gemini | stdin |
Use skills/_utils/run_ai_cli.py. Prompts are passed via stdin (not argv)
to avoid OS argument-size limits on large error context.
python3 skills/_utils/run_ai_cli.py --detect
python3 skills/_utils/run_ai_cli.py --cli claude --prompt-file /tmp/bc_fix_prompt.txt --timeout 120
Run the user-specified check command (or auto-detect) via run_shell:
ruff check . # Python lint
pytest -x --tb=short # Python test
mypy src/ # Python type check
eslint . # JS/TS lint
tsc --noEmit # TS type check
Capture stdout + stderr and the exit code. If exit code is 0, report success and stop.
Extract from the failure output:
Read the relevant source files around error locations via read_file.
Write to /tmp/bc_fix_prompt.txt using write_file:
Fix the following errors in this codebase.
## Errors
{parsed error list with file:line and message}
## Relevant Source Code
### {file1}:{start_line}-{end_line}
```{language}
{source code}
{corrected full file content or relevant section}
Never include `.env`, secrets, or credential content.
### 4. Send to External AI CLI
Use the utility script — the prompt is piped via stdin:
```bash
python3 skills/_utils/run_ai_cli.py --cli claude --prompt-file /tmp/bc_fix_prompt.txt --timeout 120
Parse the response to extract file paths and corrected code blocks.
For each corrected code block:
write_file.Re-run the original check command.
Loop conditions:
## Auto-Fix Report
### Status: {FIXED / PARTIALLY_FIXED / FAILED}
### Check Command
`{command}`
### Iterations
| # | CLI Used | Errors Before | Errors After | Result |
|---|----------|---------------|--------------|--------|
| 1 | Claude | 5 | 2 | partial |
| 2 | Codex | 2 | 0 | fixed |
### Changes Made
- `src/foo.py:42` — Fixed missing return type annotation
- `src/bar.py:15-20` — Replaced deprecated API call
### Remaining Issues (if any)
- `src/baz.py:99` — Complex logic error, needs manual review
| Parameter | Default | Description |
|---|---|---|
| max_retries | 3 | Maximum fix-verify iterations |
| check_command | auto-detect | The lint/test command to run |
| preferred_cli | auto | Which AI CLI to use first |
| revert_on_regression | true | Revert if new errors are introduced |
| timeout_per_cli | 120 | Seconds to wait for CLI response |
.env, secrets, or credential files to external CLIs.# Auto-fix lint errors (root agent reads and follows)
skill_execute("auto-fix")
# then: "Fix all ruff lint errors in this project"
# Auto-fix with specific CLI
skill_execute("auto-fix")
# then: "Fix the failing pytest tests using Claude CLI"