·typescript-type-safety
</>

typescript-type-safety

pr-pm/prpm

Use when encountering TypeScript any types, type errors, or lax type checking - eliminates type holes and enforces strict type safety through proper interfaces, type guards, and module augmentation

4Installs·1Trend·@pr-pm

Installation

$npx skills add https://github.com/pr-pm/prpm --skill typescript-type-safety

SKILL.md

Zero tolerance for any types. Every any is a runtime bug waiting to happen.

Replace any with proper types using interfaces, unknown with type guards, or generic constraints. Use @ts-expect-error with explanation only when absolutely necessary.

| Error handling | catch (error: any) | catch (error) { if (error instanceof Error) ... } | | Unknown data | JSON.parse(str) as any | const data = JSON.parse(str); if (isValid(data)) ... | | Type assertions | (request as any).user | (request as AuthRequest).user |

Use when encountering TypeScript any types, type errors, or lax type checking - eliminates type holes and enforces strict type safety through proper interfaces, type guards, and module augmentation Source: pr-pm/prpm.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/pr-pm/prpm --skill typescript-type-safety
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is typescript-type-safety?

Use when encountering TypeScript any types, type errors, or lax type checking - eliminates type holes and enforces strict type safety through proper interfaces, type guards, and module augmentation Source: pr-pm/prpm.

How do I install typescript-type-safety?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/pr-pm/prpm --skill typescript-type-safety Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/pr-pm/prpm