Build and Fix Command
This command invokes the build-error-resolver agent to fix TypeScript, compilation, and build errors with minimal diffs.
What This Command Does
- Diagnose - Run tsc, eslint, npm run build
- Fix incrementally - One error at a time, minimal changes
- No architecture changes - Only fix errors, no refactoring
- Verify - Re-run build after each fix
When to Use
Use /build-fix when:
- Build fails (TypeScript, compilation, module resolution)
- Type errors occur
- Import/export or dependency issues
- Configuration errors (tsconfig, webpack, Next.js)
How It Works
The build-error-resolver agent uses tsc --noEmit, ESLint, and project build commands to diagnose and fix errors with the smallest possible changes. It does not refactor or redesign.
Related
- Agent:
agents/build-error-resolver.md - Use build-fix proactively when build is red