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.zip

Installs 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 r
280 chars · catalog descriptionno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key 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

You give it
TypeScript codebase with compilation errors
You get back
Codebase with TypeScript errors fixed, confirmed by zero compilation errors and no test regressions

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

  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 regressions
  5. 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.

SkillInstallsUpdatedSafetyDifficulty
fix-ts (this skill)04moNo flagsIntermediate
effect-patterns-error-handling-resilience17moNo flagsIntermediate
types05moReviewAdvanced
run06moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry