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
/plugin marketplace add WorldFlowAI/everything-claude-code
/plugin install everything-claude-code@everything-claude-codeWhat 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-fixand 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-code2Manually: put the files in place
.claude/commands/build-fix.mdCall it with /build-fix. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/build-fix.mdCall it with /prompts:build-fix. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/build-fix.prompt.mdManually: put the files in place
.gemini/commands/build-fix.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
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.