Skip to main content
command CX Codex

build-fix · worldflowai — Claude Code command: what it does, how to install

build-fix fixes TypeScript and build failures one at a time, rerunning the build after each change. Useful when the error list needs a controlled pass.

MIT ★ 6,739 updated 2026-01-23

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add WorldFlowAI/everything-claude-code
/plugin install everything-claude-code@everything-claude-code
Open on GitHub

What build-fix does

The command starts the project build with npm run build or pnpm build, then groups the output by file and orders issues by severity. For each item, it displays five surrounding lines, explains the cause, suggests a change, and applies the fix.

It runs the build again after every change and checks whether the issue is gone. The process stops when a fix creates new errors, the same error remains after three attempts, or the user asks to pause.

A final report separates fixed errors, remaining errors, and newly introduced ones. Since it handles one error at a time, each code change can be checked before the next one.

What it helps with

  • fix TypeScript errors one by one
  • sort build output by file and severity
  • verify each change with another build
  • report remaining and newly introduced errors

Example prompts for the agent

  • Run /build-fix and work through the build errors one at a time.
  • Use pnpm build, explain each failure, apply a fix, and run the build again.
  • Pause after three failed attempts on the same error and show the final summary.

How to install build-fix

1Plugin marketplace

/plugin marketplace add WorldFlowAI/everything-claude-code
/plugin install everything-claude-code@everything-claude-code

2Manually: put the files in place

.claude/commands/build-fix.md

Call it with /build-fix. For all projects use ~/.claude/commands/

Questions about build-fix

How do I install build-fix in Claude Code?

Add the marketplace with /plugin marketplace add WorldFlowAI/everything-claude-code, install it using /plugin install everything-claude-code@everything-claude-code, then use .claude/commands/build-fix.md.

What does build-fix do?

It runs the build, organizes and prioritizes errors, shows nearby code, applies fixes, and checks each result with another build.

When does build-fix stop?

It stops when a change introduces errors, the same issue survives three attempts, or the user requests a pause.

Source text

build-fix.md · MIT
# Build and Fix

Incrementally fix TypeScript and build errors:

1. Run build: npm run build or pnpm build

2. Parse error output:
   - Group by file
   - Sort by severity

3. For each error:
   - Show error context (5 lines before/after)
   - Explain the issue
   - Propose fix
   - Apply fix
   - Re-run build
   - Verify error resolved

4. Stop if:
   - Fix introduces new errors
   - Same error persists after 3 attempts
   - User requests pause

5. Show summary:
   - Errors fixed
   - Errors remaining
   - New errors introduced

Fix one error at a time for safety!

© Affaan Mustafa · MIT · WorldFlowAI/everything-claude-code

Similar slash commands

All slash commands for Programming languages →

build-fix by other authors comes first.

build-fix sangrokjung build-fix runs npm or pnpm builds, parses compiler errors, and fixes them incrementally. It verifies every edit with a fresh build run. CX Codex +1 ★ 880repo stars tailing-build-output spencerpauly tailing-build-output monitors build output in real time, catches errors as they stream, and patches source files before Webpack, Turbo, or Docker finishes. CX Codex +1 424installs validate-build CloudAI-X The validate-build command detects a project’s build system and runs checks for Node.js, Python, Go, or Rust. Use it after changes and before committing. CX Codex +1 ★ 1,424repo stars build-error-resolver sangrokjung build-error-resolver turns a failing build green with the smallest possible diff: type errors, compile failures, imports, dependencies. Refactoring and architecture work are ruled out. CX Codex ★ 880repo stars bazel-build-optimization Seth Hobson The bazel-build-optimization skill helps configure Bazel for monorepos, remote execution, and build caching. Use it when build setup or debugging needs a clear Bazel workflow. CX Codex +1 10,300installs build-parallelism dotnet build-parallelism — a skill for Claude Code and Codex examines why an MSBuild build stays slow across multiple nodes. It traces ProjectReference chains and timing bottlenecks from a binlog. CX Codex +1 4,500installs build-acceleration mohitmishra786 build-acceleration — a Claude Code skill that teaches the agent how to cut C/C++ compile times. Kicks in on slow builds and walks through caching, distributed compilation, and link time fixes. CX Codex +1 597installs

From the same set29

The whole set →
refactor-clean refactor-clean identifies unused code across your codebase, categorizes findings by risk level, and removes them with test verification. Runs the full test suite before and after each deletion to catch regressions. CX Codex +1 ★ 6,739repo stars security security is a Claude Code rule that checks changes for exposed secrets, input validation, and protection against web attacks before commit. CX Codex +1 ★ 6,739repo stars code-review code-review is a Claude Code command that checks uncommitted changes for security flaws and code-quality issues. It reports findings and blocks commits when it detects CRITICAL or HIGH severity problems. CX Codex +1 ★ 6,739repo stars git-workflow The git-workflow rule defines commit formats (feat, fix, docs and five other types), PR steps, and a three-stage flow with planner, TDD-guide and code-reviewer agents. CX Codex +1 ★ 6,739repo stars patterns patterns sets standard TypeScript interfaces for APIs and repositories, provides a useDebounce hook, and defines a workflow for evaluating skeleton repos. CX Codex +1 ★ 6,739repo stars verify The verify command checks the build, types, lint, tests, logs, and Git state. Use it before a commit or pull request. CX Codex +1 ★ 6,739repo stars performance performance — a Claude Code rule that matches model to task and keeps heavy refactors away from the tail of the context window. CX Codex +1 ★ 6,739repo stars coding-style coding-style is a Claude Code rule for code structure and quality checks. It applies while an agent writes or changes code. CX Codex +1 ★ 6,739repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open