build-fix

build-fix is a command for Claude Code from rosudrag/ai-praxis. It costs 0 tokens per session (681 once invoked), scanned A, original, MIT.

A command workflow that runs a project's build, reads its errors, and fixes them one at a time with the smallest possible changes. A build turns source code into a form the project can run or release.

In plain words
What is it for?
Use it to diagnose missing dependencies, configuration and syntax problems, type errors, missing imports, incompatible function signatures, and build-blocking warnings.
Why use it?
It helps turn a failing build into a passing one without mixing in refactoring or unrelated improvements.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to diagnose missing dependencies, configuration and syntax problems, type errors, missing imports, incompatible function signatures, and build-blocking warnings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rosudrag/ai-praxis/build-fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rosudrag/ai-praxis

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/rosudrag/ai-praxis/build-fix.svg)](https://agentmods.dev/commands/rosudrag/ai-praxis/build-fix)
Your own site
<a href="https://agentmods.dev/commands/rosudrag/ai-praxis/build-fix"><img src="https://agentmods.dev/badge/commands/rosudrag/ai-praxis/build-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00681
Opus 5 $0.00000 $0.00341
Sonnet 5 $0.00000 $0.00136
Haiku 4.5 $0.00000 $0.00068

Measured 7d ago against content hash c178b4ca7677, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

build-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bootstrap/templates/commands/build-fix.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/build-fix - Fix Build Errors

Run the build, parse errors, and fix them one at a time with minimal changes.

Instructions

You are a build error fixer. Your job is purely mechanical: make the build pass with the smallest possible changes. No refactoring, no improvements, no opinions.

Step 1: Run the Build

Run the project build command:

{{build_command}}

If the build succeeds, report success and stop.

Step 2: Parse Errors

Collect all errors and warnings. Categorize by priority:

CRITICAL  — Build cannot start (missing deps, config errors, syntax)
HIGH      — Type errors, missing imports, incompatible signatures
MEDIUM    — Warnings treated as errors (-Werror, strict mode)

List them:

## Build Errors

### CRITICAL
1. [file:line] — [error message]

### HIGH
1. [file:line] — [error message]

### MEDIUM
1. [file:line] — [warning message]

Step 3: Fix One Error

Pick the highest-priority error. Apply the smallest fix possible:

  1. Read the file and surrounding context
  2. Identify the minimal change
  3. Apply the fix
  4. Re-run {{build_command}}
  5. Check if the error is resolved

Step 4: Repeat

Continue fixing one error at a time, re-running the build after each fix.

Track your progress:

[FIX 1] src/auth.ts:42 — Added missing import for UserService
[BUILD] 5 errors → 3 errors
[FIX 2] src/auth.ts:58 — Fixed type: string → number
[BUILD] 3 errors → 2 errors
...

Step 5: Bail Out

Stop fixing and report if:

  • The same error persists after 3 fix attempts
  • The fix requires architectural changes or new features
  • The error is in generated code that shouldn't be hand-edited
  • You are unsure what the correct fix is
## Handoff Required

**Error**: [the error you can't fix]
**Reason**: [why it's beyond build-fix scope]
**Suggestion**: [what the developer should investigate]

Allowed Fixes

DO:

  • Add missing imports
  • Fix type errors and type mismatches
  • Add required null/undefined checks
  • Fix syntax errors
  • Update function signatures to match callers
  • Add missing required properties to objects
  • Fix incorrect string/number/boolean literals

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 110 lines · 0 tokens per session scan A c178b4ca7677

Subscribe to this mod's changes

build-fix is a command published in the GitHub repository rosudrag/ai-praxis (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 681 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories

qa-changes

This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…

OpenHands/extensions · 63 tokens

doctor

Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…

doncheli/don-cheli-sdd · 76 tokens

fix

Universal debugging and fix application with semantic code analysis.

stefan-jansen/claude-code-toolkit · 9 tokens

gh-issue-use-cypress

Like /gh-issue-use-browser, but pinned to the Cypress MCP — use when your project runs the Cypress MCP for browser automation. Example — /gh-issue-use-cypress "Composer > Save" saving toasts failure but the record persists.

skyfox675/agents-skills · 49 tokens

http-service

Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.

MadAppGang/magus · 27 tokens

auditar-cascading

Invoca cascading-failures-auditor — audita serviço para 5 triggers de cascade (sem timeout, retry sem jitter, sem circuit breaker, sem deadline, queue unbounded) e gera CASCADING-AUDIT.md.

luanpdd/kit-mcp · 54 tokens