reviewing-type-safety

Detect TypeScript type-safety violations across a codebase during code reviews.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/djankies/claude-configs --skill reviewing-type-safety-djankies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reviewing-type-safety
Source: https://github.com/djankies/claude-configs/tree/main/typescript/skills/reviewing-type-safety
Command: npx skills add https://github.com/djankies/claude-configs --skill reviewing-type-safety-djankies

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill performs a comprehensive TypeScript type-safety review to detect unsafe any usage, missing guards, and weak type guarantees during code reviews.

Core Features & Use Cases

  • Static Analysis Guidance: Identify risky patterns like unguarded any, unsafe assertions, or missing type guards.
  • Type-Safe Recommendations: Propose concrete type refinements and guards.
  • Cross-Project Consistency: Ensure type policies align across modules.

Quick Start

Run a TypeScript review pass, focusing on type safety boundaries and common violation patterns.

Frequently Asked Questions about reviewing-type-safety

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

FAQPage Schema
How do I detect unsafe TypeScript type violations in my codebase?

Type-safety detection identifies unsafe patterns like unguarded any usage, unsafe assertions, and missing type guards across your codebase. The Skill scans API handlers, parsers, and data models during code reviews, flagging violations with file paths and line numbers to guide fixes.

What TypeScript type-safety issues does a code review check catch?

A comprehensive review detects no-any violations, missing runtime validation at boundaries, weak type guards, missing generic constraints, and unsafe type assertions. It ensures type policies remain consistent across modules and API surfaces.

Can I use type-safety linting across different parts of my TypeScript project?

Yes. The Skill applies cross-project consistency checks as a cross-cutting review plugin, validating type safety uniformly across all API handlers, parsers, and data models in your codebase to enforce aligned type policies.

How do I validate runtime safety at TypeScript type boundaries?

Runtime validation is enforced at data entry points using schemas and type guards. The Skill identifies missing runtime checks at boundaries and recommends concrete type refinements and discriminated unions to strengthen guarantees.

What's the difference between static type checking and type-safety code review?

Static type checking catches compile-time errors. Type-safety code review goes further, detecting unsafe patterns the compiler allows—unguarded any, missing guards, and weak assertions—that pose runtime risks during actual data flow.

When should I run a TypeScript type-safety audit?

Run audits during code reviews, especially when changes touch API handlers, data parsers, or domain models. Use it to enforce no-any policies, validate schema-backed boundaries, and prevent type safety regressions across your project.