typescript-any-eliminator
Installation
SKILL.md
TypeScript any eliminator
Use this skill when
- The user asks to remove, reduce, or replace
anytypes in TypeScript code. - You find explicit
anyin application code, shared helpers, DTOs, or API layers that should be narrowed safely. - The task is to improve type safety without changing runtime behavior.
Do not use this skill when
- The task is broad TypeScript type-system work that is not mainly about eliminating
any. - The
anyappears in generated code or third-party declarations that should not be hand-edited. - The repository intentionally documents a permissive boundary and the task is not to tighten it.
- The work primarily requires behavior-changing refactors rather than truthful type replacement.
- The task is enabling or hardening compiler strictness flags (such as
noUncheckedIndexedAccess,exactOptionalPropertyTypes,strictNullChecks) and fixing the resulting fallout — this produces index-access, optional-property, and null-narrowing errors unrelated toanyand belongs to compiler-flag triage, notanyreplacement.
Inputs to gather
Required before editing