remove-ts-nocheck-from-legacy

Remove @ts-nocheck and add type annotations to legacy TypeScript files.

Updated May 15, 2026
One-click install
npx skills add https://github.com/ruskibeats/t1d --skill remove-ts-nocheck-from-legacy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-ts-nocheck-from-legacy
Source: https://github.com/ruskibeats/t1d/tree/main/.pi/skills-archive/remove-ts-nocheck-from-legacy
Command: npx skills add https://github.com/ruskibeats/t1d --skill remove-ts-nocheck-from-legacy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the complexity of refactoring legacy TypeScript files by removing @ts-nocheck and introducing proper type annotations, improving code maintainability and robustness.

Core Features & Use Cases

  • Remove @ts-nocheck: Safely removes type suppression from TypeScript files.
  • Type Extraction: Identifies concerns and extracts type definitions into separate modules.
  • Refactoring: Transforms the file with type annotations, imports, and minimal file I/O changes.
  • Use Case: Ideal for large TypeScript files where @ts-nocheck has been used to suppress errors, but proper types are needed for future development.

Quick Start

Run the script to remove @ts-nocheck and add type annotations to your legacy TypeScript file.

Frequently Asked Questions about remove-ts-nocheck-from-legacy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove @ts-nocheck from legacy TypeScript files?

To remove @ts-nocheck from legacy TypeScript files, this Skill refactors the code by deleting the suppression directive and adding proper type annotations. It extracts type definitions into separate modules to improve code maintainability.

What is the best way to add type annotations to legacy TypeScript code?

Adding type annotations to legacy TypeScript code is best handled by extracting type definitions into separate modules and importing them. This Skill transforms files by identifying concerns and applying proper types with minimal file I/O changes.

Can I refactor large TypeScript files that use @ts-nocheck for future development?

Yes, you can refactor large TypeScript files where @ts-nocheck has been used to suppress errors. This process safely removes the directive and introduces proper type annotations needed for robust future development.

Do I need prior TypeScript knowledge to automate removing @ts-nocheck and extracting types?

Yes, automating the removal of @ts-nocheck and extraction of types assumes a basic understanding of TypeScript and refactoring techniques. This prerequisite knowledge helps you manage the newly introduced type annotations effectively.

Why does removing @ts-nocheck require extracting helper functions?

Removing @ts-nocheck requires extracting helper functions to properly isolate concerns and define types without breaking existing logic. This refactoring approach ensures the newly added type annotations integrate cleanly into separate modules.