Typescript Type Auditor

    1

    Deep audit of TypeScript codebases for type safety violations, unsafe casts, and runtime-risk anti-patterns.

    Free

    2 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    See it in action

    You say

    Audit the ./src directory for type safety. Focus on unsafe 'as' assertions, missing null checks on optional properties, and any suppressed errors.

    Your agent does

    ### TypeScript Audit Results: 12 Issues Found [Critical] src/api.ts:22 - Unsafe cast: 'as UserData' * Risk: Bypasses runtime validation. * Fix: Use a Zod schema to parse the response. [High] src/state.ts:45 - Missing null check on 'user.profile.zip' * Risk: Potential TypeError if profile is undefined.

    About this skill

    Deep Type Safety Auditing for TypeScript

    The TypeScript Type Auditor is a specialized developer tool designed to bridge the gap between basic compiler checks and production-ready type safety. While `tsc` catches syntax errors, it often misses semantic risks like unsafe type assertions, hidden null pointers, and incomplete type narrowing that lead to runtime crashes.

    What it does

    This skill systematically scans your TypeScript codebase to identify high-risk anti-patterns. It goes beyond simple linting by analyzing the impact of code patterns on runtime stability. Key features include:

    • Unsafe Pattern Detection: Identifies `as` assertions that bypass safety and `@ts-ignore` flags that hide bugs.
    • Null & Exhaustiveness Checks: Flags missing null guards on optional properties and incomplete switch/if logic in discriminated unions.
    • Severity Classification: Categorizes findings into Critical, High, Medium, and Low risks with prioritized remediation steps.
    • Migration Support: Perfect for upgrading legacy projects or progressively tightening strict mode.

    Why use this skill?

    Manual type auditing is tedious and error-prone. This skill automates the discovery of "silent killers"—code that compiles perfectly but fails in production. It provides clear, actionable fix suggestions (like Zod schema validation for API calls) rather than just flagging errors. The output is a structured report that quantifies your type safety debt, making it an essential tool for PR reviews and sprint planning.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    2 installs

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    • Free to download with an account

    Installs2
    Listed1 month ago

    Frequently Asked Questions

    Free