·hide-unsafe-assertions
</>

hide-unsafe-assertions

Use when type assertions are necessary. Use when function implementations need any. Use when hiding unsafe code.

4Installs·0Trend·@marius-townhouse

Installation

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill hide-unsafe-assertions

How to Install hide-unsafe-assertions

Quickly install hide-unsafe-assertions AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill hide-unsafe-assertions
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: marius-townhouse/effective-typescript-skills.

SKILL.md

View raw

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.

The assertion is hidden inside; callers get a clean API.

We know k in b is true, but TypeScript doesn't connect this to b[k].

Use when type assertions are necessary. Use when function implementations need any. Use when hiding unsafe code. Source: marius-townhouse/effective-typescript-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill hide-unsafe-assertions
Category
</>Dev Tools
Verified
First Seen
2026-02-26
Updated
2026-03-11

Browse more skills from marius-townhouse/effective-typescript-skills

Quick answers

What is hide-unsafe-assertions?

Use when type assertions are necessary. Use when function implementations need any. Use when hiding unsafe code. Source: marius-townhouse/effective-typescript-skills.

How do I install hide-unsafe-assertions?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill hide-unsafe-assertions Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/marius-townhouse/effective-typescript-skills