ban-type-assertions
Installation
SKILL.md
Ban Type Assertions
Enable typescript/consistent-type-assertions with assertionStyle: 'never'
(native oxlint, v1.44.0+) and replace all as X / <T>x casts with patterns
the compiler can verify. as const is preserved — the ban is surgical: it
targets real casts, not literal narrowing.
Core Philosophy
Pick the strictly correct path, not the simpler one.
Every as assertion is a spot where the developer told the compiler "trust me."
The goal is to make the compiler verify instead. If you replace as Foo with a
type guard that is equally unverified, you have not improved anything — you have
just moved the assertion.