Skip to content
Agentmart
Submit a tool

auto-fix

lint/test の失敗を検出し、外部 AI CLI(Claude Code / Codex / Gemini)でコード修正 → 再検証をループする。

Skill by pome223

IndexedMIT★ 3
Write a review

Chalk Labs

Need help deploying auto-fix?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/pome223-auto-fix

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

lint/test の失敗を検出し、外部 AI CLI(Claude Code / Codex / Gemini)でコード修正 → 再検証をループする。

Use cases: testing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/auto-fix

What's inside

Skill name
auto-fix
Description
lint/test の失敗を検出し、外部 AI CLI(Claude Code / Codex / Gemini)でコード修正 → 再検証をループする。
License
MIT
Instructions
135 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# auto-fix

lint やテストの失敗を外部 AI CLI で自動修正し、再検証するスキル。

## 手順

### 1. 失敗を検出

ユーザー指定のコマンド、またはプロジェクトに応じて自動検出:

```bash
# Python (ruff)
ruff check . 2>&1

# Python (pytest)
pytest -x --tb=short 2>&1

# Python (mypy)
mypy src/ 2>&1

# JavaScript/TypeScript
eslint . 2>&1
tsc --noEmit 2>&1
```

- 出力(stdout + stderr)と終了コードをキャプチャする
- 終了コード 0 の場合は「問題なし」と報告して終了

### 2. エラーを解析

失敗出力から構造化情報を抽出する:
- **ファイルパス** と **行番号**
- **エラーメッセージ** / **テスト名**
- **エラーカテゴリ**(syntax, type, import, assertion 等)

エラー箇所周辺のソースコードを読んでコンテキストを把握する。

### 3. 修正プロンプトを作成

以下のテンプレートで `/tmp/bc_fix_prompt.txt` に書き出す:

```
以下のエラーを修正してください。

## エラー一覧
{ファイル名:行番号 エラーメッセージ のリスト}

## 関連ソースコード

### {file1}:{start_line}-{end_line}
```{language}
{ソースコード}
```

## 指示
- 修正後のコードブロックのみを出力すること
- 関係のないコードは変更しないこと
- 既存のスタイル・フォーマットを維持すること
- 以下の形式で出力:

### {filepath}
```{language}
{修正後のコード}
```
```

- `.env`、シークレット、クレデンシャルは絶対に含めない

### 4. 外部 AI CLI に送信

ユーザー指定の CLI(デフォルト: 最初に見つかったもの)に送信:

```bash
# Claude Code
cat /tmp/bc_fix_prompt.txt | claude -p 2>&1 | tee /tmp/bc_fix_result.txt

# Codex
cat /tmp/bc_fix_prompt.txt | codex exec - 2>&1 | tee /tmp/bc_fix_result.txt

# Gemini
cat /tmp/bc_fix_prompt.txt | gemini 2>&1 | tee /tmp/bc_fix_result.txt
```

- タイムアウト: 120 秒
- レスポンスからファイルパスと修正コードブロックを抽出する

### 5. 修正を適用

返された修正コードブロックごとに:
1. 元のファイルを読む(バックアップとして内容を記録)
2. 該当箇所を修正コードで置き換える
3. ファイルを書き出す

### 6. 再検証(ループ)

ステップ 1 と同じコマンドを再実行する。

**ループ条件:**
- **Pass(終了コード 0):** 成功を報告、変更サマリを表示。終了。
- **Fail(同じエラー):** 修正が効かなかった。別の CLI で再試行、または プロンプトを改善。最大 3 回。
- **Fail(新しいエラー):** 修正がリグレッションを起こした。直前の変更を revert して再試行。
- **最大リトライ到達:** 現在の状態を報告、残りのエラーを一覧し、手動修正を提案。

### 7. 結果を報告

```markdown
## Auto-Fix レポート

### ステータス: {FIXED / PARTIALLY_FIXED / FAILED}

### チェックコマンド
`{command}`

### イテレーション
| # | 使用 CLI | 修正前エラー数 | 修正後エラー数 | 結果 |
|---|---------|--------------|--------------|------|
| 1 | Claude  | 5            | 2            | 部分修正 |
| 2 | Codex   | 2            | 0            | 修正完了 |

From pome223/boiled-claw-public, MIT.

More from pome223/boiled-claw-public

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Mar 25, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from pome223

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get auto-fix running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying auto-fix?

CallGet help
Cite this page

auto-fix skill. Agent Mart. https://agentmart.dev/skills/pome223-auto-fix (last updated 2026-10-24)