From oh-my-claudecode
Fixes TypeScript compilation and npm build errors with minimal changes: adds types, null checks, fixes imports; verifies via tsc/build runs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/oh-my-claudecode:build-fixThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Fix build and TypeScript errors quickly with minimal code changes. Get the build green without refactoring.
Fix build and TypeScript errors quickly with minimal code changes. Get the build green without refactoring.
This skill activates when:
npm run build or tsc reports errorsDelegates to the build-fixer agent (Sonnet model) to:
Collect Errors
npx tsc --noEmit to get all TypeScript errorsnpm run build to get build failuresFix Strategically
Minimal Diff Strategy
Verify
npx tsc --noEmit after each fixTask(
subagent_type="oh-my-claudecode:build-fixer",
model="sonnet",
prompt="BUILD FIX TASK
Fix all build and TypeScript errors with minimal changes.
Requirements:
- Run tsc/build to collect errors
- Fix errors one at a time
- Verify each fix doesn't introduce new errors
- NO refactoring, NO architectural changes
- Stop when build passes
Output: Build error resolution report with:
- List of errors fixed
- Lines changed per fix
- Final build status"
)
The build-fixer agent stops when:
npx tsc --noEmit exits with code 0npm run build completes successfullyBUILD FIX REPORT
================
Errors Fixed: 12
Files Modified: 8
Lines Changed: 47
Fixes Applied:
1. src/utils/validation.ts:15 - Added return type annotation
2. src/components/Header.tsx:42 - Added null check for props.user
3. src/api/client.ts:89 - Fixed import path for axios
...
Final Build Status: ✓ PASSING
Verification: npx tsc --noEmit (exit code 0)
Combine with other skills for comprehensive fixing:
With Ultrawork:
/ultrawork fix all build errors
Spawns multiple build-fixer agents in parallel for different files.
With Ralph:
/ralph fix the build
Keeps trying until build passes, even if it takes multiple iterations.
With Pipeline:
/pipeline debug "build is failing"
Uses: explore → architect → build-fixer workflow.
npx claudepluginhub bzimbelman/oh-my-claudecode2plugins reuse this skill
First indexed Jul 8, 2026
Fixes TypeScript build and compilation errors incrementally: runs npm/pnpm build, analyzes and prioritizes errors by file/severity, applies one fix at a time with context review, re-verifies until resolved.
Fixes build, lint, and TypeScript errors in npm-based projects. Runs npm build/lint/tsc checks, categorizes issues by priority, applies minimal batch fixes, and verifies.
Detects language from build errors, loads fix patterns, and auto-retries. Use for 'build failed', 'fix compilation', 'type error'.