| name | build-fix |
| description | Incrementally fix TypeScript and build errors one at a time. Use when user says "build fails", "fix build errors", "tsc errors", "type errors", or when build/compile commands fail. Stops if same error persists after 3 attempts. |
Build and Fix
Incrementally fix TypeScript and build errors:
-
Run build: npm run build or pnpm build
-
Parse error output:
- Group by file
- Sort by severity
-
For each error:
- Show error context (5 lines before/after)
- Explain the issue
- Propose fix
- Apply fix
- Re-run build
- Verify error resolved
-
Stop if:
- Fix introduces new errors
- Same error persists after 3 attempts
- User requests pause
-
Show summary:
- Errors fixed
- Errors remaining
- New errors introduced
Fix one error at a time for safety!