Claude-skill-registry build-error-resolver
Resolves build and compilation errors. Use when build fails or type errors occur.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/build-error-resolver-munlucky-claude-settings" ~/.claude/skills/majiayu000-claude-skill-registry-build-error-resolver && rm -rf "$T"
manifest:
skills/data/build-error-resolver-munlucky-claude-settings/SKILL.mdsource content
Build Error Resolver Skill
When to Use
/npm run build
failstsc- TypeScript compilation errors
- Lint errors blocking build
- Module resolution issues
Procedure
- Capture build error output
- Categorize error type
- Locate affected files and lines
- Apply appropriate fix
- Verify build passes
Error Categories
TypeScript Errors
| Error Code | Description | Common Fix |
|---|---|---|
| TS2304 | Cannot find name | Add import or declare type |
| TS2339 | Property does not exist | Add to interface or use optional chaining |
| TS2345 | Argument type mismatch | Cast or fix type definition |
| TS2322 | Type not assignable | Check type compatibility |
| TS7006 | Parameter implicit any | Add explicit type annotation |
Module Errors
| Error | Common Fix |
|---|---|
| Cannot find module | Install package or fix path |
| Module not found | Check tsconfig paths |
| Circular dependency | Restructure imports |
Lint Errors
| Category | Action |
|---|---|
| Formatting | Run |
| Unused vars | Remove or prefix with |
| Missing deps | Add to dependency array |
Output Format
## Build Error Resolution ### Error Summary - Total errors: N - Fixed: N - Remaining: N ### Fixed Issues 1. **TS2339**: Property 'foo' does not exist - File: src/utils.ts:42 - Fix: Added optional chaining `obj?.foo` 2. **TS2304**: Cannot find name 'UserType' - File: src/types.ts:15 - Fix: Added import from '@/types' ### Verification ✅ `npm run build` passed ✅ `tsc --noEmit` passed
Delegation Format (for Codex)
TASK: Resolve build errors in [project path]. EXPECTED OUTCOME: All build errors fixed, build passes. CONTEXT: - Error output: [paste error log] - Build command: [npm run build / tsc] - Files affected: [list] MUST DO: - Fix all TypeScript errors - Preserve existing functionality - Run verification after each fix MUST NOT DO: - Add @ts-ignore unless absolutely necessary - Change unrelated code - Skip verification step