1

    typescript-type-auditor

    by Timoranjes

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

    Updated Jun 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • Works with Claude Code, Cursor
    • 1 permission declared
    • Instant install

    Sample input

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

    Sample output

    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.

    Use Cases

    • Identify runtime-risk type assertions that bypass compiler checks.
    • Foundational audit during JavaScript to TypeScript migrations.
    • Prevent production crashes by finding missing null/undefined guards.
    • Enforce exhaustive type narrowing in complex switch statements.
    • Quantify technical debt with a categorized type-safety score.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Network Access

    Allowed Hosts

    agensi.io

    File Scopes

    typescript-type-auditor/**

    Claude Code, Cursor, Windsurf, Aider, and other SKILL.md-compatible agents.

    Creator

    Frequently Asked Questions

    More Premium Skills

    Free