Automated TypeScript error resolution tool enforcing strict typing without 'any'.
Install
mkdir -p .claude/skills/fix-ts && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12331" && unzip -o skill.zip -d .claude/skills/fix-ts && rm skill.zipInstalls to .claude/skills/fix-ts
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
1. Run `npx tsc --noEmit` to get all errors 2. Fix each error across all affected files — NEVER use `any`. Use proper types, generics, or `unknown` with type guards. 3. After all fixes, re-run `npx tsc --noEmit` and confirm zero errors 4. Run `npx vitest run` to confirm no test rKey capabilities
- →Run TypeScript compiler to get all errors
- →Fix TypeScript errors across affected files
- →Use proper types, generics, or unknown with type guards
- →Re-run TypeScript compiler to confirm zero errors
- →Run Vitest to confirm no test regressions
- →Report a summary of changes made
How it works
The skill identifies TypeScript errors using the compiler, applies fixes using proper typing, and then re-validates the codebase by re-running the compiler and unit tests.
Inputs & outputs
When to use fix-ts
- →Resolve TS compilation errors
- →Remove 'any' types from codebase
- →Validate type safety after refactoring
About this skill
Fix TypeScript Errors
- Run
npx tsc --noEmitto get all errors - Fix each error across all affected files — NEVER use
any. Use proper types, generics, orunknownwith type guards. - After all fixes, re-run
npx tsc --noEmitand confirm zero errors - Run
npx vitest runto confirm no test regressions - Report summary of changes made
When not to use it
- →When the user wants to use 'any' type to fix errors
- →When the project is not a TypeScript project
- →When the user does not want to run Vitest tests
Limitations
- →NEVER uses 'any' type for fixes
- →Requires `npx tsc` and `npx vitest` to be available
- →Focuses on fixing TypeScript compilation errors
How it compares
This skill provides a systematic and validated approach to fixing TypeScript errors, ensuring type safety and preventing regressions, unlike ad-hoc error resolution.
Compared to similar skills
fix-ts side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| fix-ts (this skill) | 0 | 4mo | No flags | Intermediate |
| effect-patterns-error-handling-resilience | 1 | 7mo | No flags | Intermediate |
| types | 0 | 5mo | Review | Advanced |
| run | 0 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
effect-patterns-error-handling-resilience
PaulJPhilp
Effect-TS patterns for Error Handling Resilience. Use when working with error handling resilience in Effect-TS applications.
types
sidorares
Comprehensive reference for fixing TypeScript types in mysql2 `.mts` test files and guiding the `/lib` → TypeScript conversion. Trained on all `.d.ts` files in `/typings`.
run
diana-uk
Run TypeScript solution against test cases. Use when user wants to test their code.
drizzle
lobehub
Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.
zustand
lobehub
Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.
motion-canvas
davila7
Complete production-ready guide for Motion Canvas with ESM/CommonJS workarounds, full setup templates, and troubleshooting for programmatic video creation using TypeScript