Agent skill
fix-build-whatifwedigdeeper-application-tracker
Diagnose and fix build or type errors
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/fix-build-whatifwedigdeeper-application-tracker
SKILL.md
Fix Build Errors
Systematically diagnose and fix build, TypeScript, or compilation errors.
Process
1. Identify the Problem
If no specific error provided, run:
npm run build 2>&1
Capture and parse error output.
2. Categorize Errors
| Type | Pattern | Common Fix |
|---|---|---|
| Type error | Type 'X' is not assignable |
Fix type mismatch |
| Missing module | Cannot find module |
Install dep or fix import path |
| Missing export | has no exported member |
Check export statement |
| Syntax error | Unexpected token |
Fix syntax |
| JSX error | Cannot use JSX |
Check tsconfig jsx setting |
3. Analyze Each Error
For each error:
- Read the file at the specified line
- Understand the context (what the code is trying to do)
- Identify root cause (not just symptom)
4. Apply Fixes
Fix errors in dependency order:
- Import/module errors first (they cause cascading errors)
- Type definition errors
- Implementation errors
5. Verify
npm run build
If new errors appear, repeat. Continue until build passes.
6. Run Full Validation
npm run lint
npm test
Ensure fixes didn't break anything else.
Common Fixes
Missing types:
npm install -D @types/[package]
Path alias issues:
Check tsconfig.json paths configuration.
React component type errors:
// Add proper typing
const Component: React.FC<Props> = ({ prop }) => { ... }
Async/await issues:
Ensure function is marked async and return type includes Promise.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?