# 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"

- Skill: `jh941213/build-fix-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jh941213/build-fix-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jh941213/build-fix-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: jh941213 (https://skillmd.com/u/jh941213)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jh941213/build-fix-2

---


# 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

