gt:typescript-error-fixer

Installation
SKILL.md

TypeScript Error Fixer

Fix all TypeScript compilation errors systematically using a 4-phase workflow. Zero tolerance for any types.

Phase 1: Discovery

  1. Detect the package manager (check for package-lock.json, yarn.lock, bun.lockb, pnpm-lock.yaml).
  2. Run the TypeScript compiler with a 1-2 minute timeout, redirecting output to a log file:
    tsgo --noEmit 2>&1 | tee tsc-<YYYY-MM-DD-HHmmss>.log
    
    Filter to specific directories: tsgo --noEmit | rg "src/"
  3. Parse the log: extract every error with its file path, line number, error code, and message.
  4. Group errors by file and produce a structured error report.

Phase 2: Planning

  1. Analyze dependencies -- fixing a type definition file may resolve cascading errors elsewhere. Identify these first.
  2. Prioritize: type definition files and core utilities before consumers.
Related skills
Installs
1
GitHub Stars
5
First Seen
Mar 25, 2026