Skills DirectorySearch all skills ↗

AI agent skill · by @jh941213

Build Fix

Workflow for incrementally fixing TypeScript and build errors. Triggers: "build error", "build error", "compile error", "tsc error", "type error", "build failure", "build fix" Anti-triggers: "runtime error", "test failure", "lint errors only", "deployment error"

Archived 2026-10-23 · Source updated 2026-08-03. Check the original repository for the latest version.

SKILL.md instructions

# Build Error Fix

Incrementally fixes TypeScript and build errors.

## Procedure

1. **Run Build**
   ```bash
   npm run build
   # or
   pnpm build
   ```

2. **Analyze Errors**
   - Group by file
   - Sort by severity

3. **Fix Each Error**
   - Check error context (5 lines before and after)
   - Describe the problem
   - Suggest and apply fix
   - Re-run build
   - Confirm error is resolved
   - If one attempt does not resolve it, switch to the systematic-debugging skill's 4 phases (no repeated guess-based fixes)

4. **Stop Conditions**
   - When a fix causes new errors
   - When the same error persists after 3 attempts
   - On user request

5. **Summary Output**
   - Number of errors fixed
   - Number of remaining errors
   - Newly introduced errors

## Principles

- Fix only one error at a time
- Always re-verify build after each fix
- Consider rollback if new errors are introduced

Related skills