build-fix

Fix TypeScript and build errors with minimal code changes.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/suhwan/claude-registry --skill build-fix-suhwan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-fix
Source: https://github.com/suhwan/claude-registry/tree/main/skills/quality/build-fix
Command: npx skills add https://github.com/suhwan/claude-registry --skill build-fix-suhwan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fix TypeScript and build errors quickly with minimal code changes to get a green build without large refactors.

Core Features & Use Cases

  • Collect errors via tsc --noEmit or npm run build to surface all failures.
  • Apply minimal, targeted fixes (type annotations, null checks, import resolutions) and verify by re-running the build.
  • Use case: when a project experiences frequent compile errors after small edits, this skill guides a safe, small-diff workflow.

Quick Start

Run the build-fix workflow to automatically detect and repair TypeScript and build errors with minimal changes.

Frequently Asked Questions about build-fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix TypeScript build errors without large refactors?

To fix TypeScript build errors with minimal changes, run tsc --noEmit or npm run build to collect failures, then apply targeted fixes like type annotations, null checks, and import resolutions to preserve your architecture.

What's the best way to resolve npm run build errors in a Node project?

The best way to resolve npm run build errors is to execute the build command to surface all failures, then apply a minimal-diff strategy that repairs type errors and import issues without unnecessary refactoring.

Can I use a minimal-diff workflow to fix frequent compile errors after small edits?

Yes, you can use a minimal-diff workflow to fix frequent compile errors by collecting reported errors from tsc --noEmit and applying targeted code corrections like null checks and import resolutions to ensure a safe, small-diff fix.

Does this approach work with both frontend and Node projects during development?

Yes, this approach works with typical frontend or Node projects during development by guiding fixes for TypeScript and build errors reported by tsconfig or npm run build while preserving your existing architecture.

Why does tsc --noEmit report errors and how do I collect them all?

tsc --noEmit reports errors because of type mismatches, missing imports, or invalid configurations, and you can collect all of these failures by running the command to surface every issue before applying targeted fixes.

What are the limitations of using a minimal-diff strategy for TypeScript errors?

The limitation of a minimal-diff strategy for TypeScript errors is that it focuses on targeted fixes like type annotations and null checks, meaning it will not address deeper architectural issues or perform large refactors beyond what is necessary.