From aide
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aide:build-fixThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Recommended model tier:** balanced (sonnet) - this skill performs straightforward operations
Recommended model tier: balanced (sonnet) - this skill performs straightforward operations
Rapidly fix all build, type, and lint errors with minimal changes.
Before starting, ensure you have:
Run all checks and capture output:
# Run in sequence, capture all output
npm run build 2>&1 | head -100
npm run lint 2>&1 | head -100
npx tsc --noEmit 2>&1 | head -100
If commands fail to run:
npm install if dependencies are missingnpm ci for clean install if lock file existsProcess errors in this order:
Group similar errors:
Use MCP tools to find definitions and patterns:
# Find type definitions
mcp__plugin_aide_aide__code_search query="InterfaceName" kind="interface"
# Find function signatures
mcp__plugin_aide_aide__code_search query="functionName" kind="function"
# Get symbols in a file
mcp__plugin_aide_aide__code_symbols file="path/to/file.ts"
# Check project conventions
mcp__plugin_aide_aide__decision_get topic="coding-style"
Fix in batches by category:
_# Run full verification
npm run build && npm run lint && npx tsc --noEmit
Verification criteria:
# Run tests to ensure fixes didn't break functionality
npm test
| Failure | Action |
|---|---|
npm run build fails to start | Run npm install first |
| Circular dependency error | Check import structure, may need refactoring |
| Type error in third-party lib | Check @types package version, update if needed |
| Cannot resolve module | Check tsconfig.json paths, baseUrl settings |
| ESLint config error | Check .eslintrc, ensure plugins installed |
| Fix introduces new errors | Revert and try alternative approach |
| Error | Fix |
|---|---|
| Cannot find module | Add import statement |
| Type 'X' not assignable | Add type annotation or use type assertion |
| 'X' is declared but never used | Remove or prefix with _ |
| Missing return type | Add explicit return type |
| Unexpected any | Add proper type annotation |
| Property does not exist | Check interface, add property or fix typo |
| Argument of type X not assignable | Check function signature, cast if needed |
mcp__plugin_aide_aide__code_search - Find type definitions, function signaturesmcp__plugin_aide_aide__code_symbols - List all symbols in a filemcp__plugin_aide_aide__decision_get - Check project coding decisionsReport all fixes made:
## Build Fix Report
### Errors Fixed
- `src/foo.ts:10` - Added missing import for `Bar`
- `src/foo.ts:25` - Fixed type: `string` -> `string | null`
- `src/bar.ts:5` - Removed unused variable `temp`
### Verification
- Build: PASS
- Lint: PASS
- Types: PASS
- Tests: PASS
### Notes
[Any observations or remaining warnings]
npx claudepluginhub jmylchreest/aide --plugin aideFixes 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.
Runs existing project validation (lint, type-check, test, build) and fixes failures after code changes, following a structured triage and repair process.
Diagnoses and fixes TypeScript compile errors, runtime exceptions, build failures, and test issues in JavaScript/Node.js projects via linting, dependency reinstalls, and code patterns. Use for task failures.