Skip to content
Agentmart
Submit a tool

build-fix

Diagnose and fix build errors automatically.

Skill by eroslifestyle

IndexedMIT★ 1
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

npx agentmarket install skill/eroslifestyle-build-fix-fa2921

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

Diagnose and fix build errors automatically. Use /build-fix when compilation or build fails.

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/build-fix

Tools it pre-approves 7

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Write,
  • Edit,
  • Glob,
  • Grep,
  • Bash,
  • Task

What's inside

Skill name
build-fix
Description
Diagnose and fix build errors automatically. Use /build-fix when compilation or build fails.
License
MIT
Allowed tools
Read,, Write,, Edit,, Glob,, Grep,, Bash,, Task
Instructions
147 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Build Fix Skill - Automated Build Error Resolution

## Purpose

Detect the project's build system, run the build, parse errors,
and automatically fix them in an iterative loop until the build succeeds.

## Trigger

User invokes `/build-fix [command]` or orchestrator delegates build-fix tasks.
- `[command]`: optional override for build command (e.g., `npm run build`)
- If omitted, auto-detects build system

## Algorithm

### Step 1: DETECT Build System

Detect in priority order via Glob/Read:

| File | Build Command |
|------|---------------|
| `package.json` (scripts.build) | `npm run build` or `yarn build` |
| `Makefile` | `make` |
| `pyproject.toml` (build-system) | `python -m build` or `pip install -e .` |
| `Cargo.toml` | `cargo build` |
| `go.mod` | `go build ./...` |
| `CMakeLists.txt` | `cmake --build build/` |
| `build.gradle` | `./gradlew build` |
| `pom.xml` | `mvn compile` |

If none found, ask user for build command.

### Step 2: RUN Build (Iteration Loop)

```
iteration = 0
MAX_ITERATIONS = 3

while iteration < MAX_ITERATIONS:
    iteration += 1

    1. RUN build command via Bash (capture stdout + stderr)
    2. IF build succeeds -> REPORT SUCCESS, exit loop
    3. PARSE errors from output (see Error Parsing below)
    4. For each error (all independent fixes in parallel):
       a. READ the file at error location
       b. DETERMINE fix type
       c. APPLY fix via Edit
    5. Continue loop (re-run build)

IF iteration == MAX_ITERATIONS and still failing:
    REPORT remaining errors to user
```

### Step 3: REPORT Results

## Error Parsing Patterns

### TypeScript/JavaScript
```
Pattern: ^(.+)\((\d+),(\d+)\): error (TS\d+): (.+)$
         ^(.+):(\d+):(\d+): error: (.+)$
Extract: file, line, column, error_code, message
```

### Python
```
Pattern: ^  File "(.+)", line (\d+)
         ^(\w+Error): (.+)$
         ^SyntaxError: (.+) \((.+), line (\d+)\)
Extract: file, line, error_type, message
```

### Rust
```
Pattern: ^error\[E(\d+)\]: (.+)
         ^\s+--> (.+):(\d+):(\d+)
Extract: error_code, message, file, line, column
```

### Go
```
Pattern: ^(.+):(\d+):(\d+): (.+)$
Extract: file, line, column, message
```

### Generic (fallback)
```
Pattern: ^(.+):(\d+).*(?:error|Error|ERROR).*: (.+)$
Extract: file, line, message
```

## Common Fix Strategies

| Error Type | Fix Strategy |
|------------|-------------|
| Missing import | Add the import statement |
| Type mismatch | Adjust type annotation or cast |
| Undefined variable | Check for typo, add declaration |
| Missing module | Check package.json/requirements.txt, suggest install |
| Syntax error | Read context, fix syntax |
| Missing return | Add return statement |
| Unused variable | Remove or prefix with underscore |
| Missing dependency | Run install command |
| Missing file | Check if renamed/moved, update import path |

## Output Format

```markdown
# Build Fix Report

## Build System
- Detected: <system name>
- Command: `<build command>`

## Iterations

### Iteration 1
- Errors found: <N>

From eroslifestyle/Claude-Orchestrator-Plugin, MIT.

More from eroslifestyle/Claude-Orchestrator-Plugin

Signals

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

From GitHub (fetched Oct 24, 2026).

Details

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

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from eroslifestyle

Cite this page

build-fix skill. Agent Mart. https://agentmart.dev/skills/eroslifestyle-build-fix-fa2921 (last updated 2026-10-24)