hide-unsafe-assertions

Installation
SKILL.md

Hide Unsafe Type Assertions in Well-Typed Functions

Overview

Keep type signatures clean; hide assertions in implementations.

If a function needs a type assertion or any internally, that's OK - as long as the public signature is correct. Users see a well-typed API; the unsafe code is contained.

When to Use This Skill

  • Function implementations need type assertions
  • TypeScript can't follow your logic
  • Wrapping libraries with poor types
  • Internal complexity, clean external API

The Iron Rule

Installs
15
GitHub Stars
2
First Seen
Feb 3, 2026
hide-unsafe-assertions — marius-townhouse/effective-typescript-skills