askill
type-safety-audit

type-safety-auditSafety 90Repository

Audits TypeScript code for type safety best practices - no any usage, branded types for IDs, runtime validation, proper type narrowing. Use before committing TypeScript code or during type system reviews.

1 stars
1.2k downloads
Updated 1/24/2026

Package Files

Loading files...
SKILL.md

TypeScript Type Safety Audit Skill

Purpose

Audit TypeScript code for type safety best practices. This skill ensures the type system is leveraged correctly to catch bugs at compile-time, prevent runtime type errors, and maintain type safety across API boundaries.

What This Skill Checks

Critical Violations (Block Commit)

  1. Any Type Usage - Zero tolerance policy
  2. Missing Branded Types - IDs must be branded
  3. Missing Runtime Validation - API boundaries need validation
  4. Type Assertions - Prefer type guards
  5. Unsafe Null Handling - Check for null/undefined
  6. Weak Generic Constraints - Generics need constraints
  7. Non-Strict tsconfig - Must have strict mode

For detailed checks with code examples and rationale, see references/CHECKS-REFERENCE.md.

  • Hermes Code Reviewer: Type Safety Patterns

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

28/100Analyzed 2/18/2026

This skill has a clear purpose (TypeScript type safety auditing) but is severely lacking in implementation. It provides only a list of 7 check categories without any actual audit commands, scripts, or step-by-step procedures. References an external reference file that isn't included in the content. While the concept is valuable and reusable, without actionable steps the skill cannot be used. The skill appears to expect an AI agent to 'know' how to perform these audits rather than providing explicit instructions.

90
55
45
20
15

Metadata

Licenseunknown
Version1.0.0
Updated1/24/2026
Publishermeriley

Tags

api