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"

jh941213 0878e93 1.2 KB Updated

File contents

Build Error Fix

Incrementally fixes TypeScript and build errors.

Procedure

  1. Run Build

    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

jh941213/my-cc-harness/tree/main/skills_en/build-fix commit 0878e93cb9

Frequently asked questions

npx skillmds@latest add jh941213/build-fix-2