preen-typescript
Installation
SKILL.md
Preen TypeScript Types
Proactively search the monorepo for weak TypeScript typings and strengthen them by replacing any, narrowing unknown, removing unsafe as casts, and eliminating @ts-ignore/@ts-expect-error comments.
When to Run
Run this skill when maintaining code quality or during slack time. It searches the entire codebase for type safety improvements.
Discovery Phase
Search all packages for files with type safety issues:
# Find files with `any` type annotations
rg -n --glob '*.{ts,tsx}' ': any|: any\[\]|<any>|as any' . | wc -l
# List specific files with `any`
rg -l --glob '*.{ts,tsx}' ': any|: any\[\]|<any>|as any' . | head -20