non-null-assertion

Community

Avoid non-null assertions in TypeScript.

Authorncaq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TypeScript code often relies on the non-null assertion operator (!) which can mask undefined values and lead to runtime errors; this Skill promotes safer coding by eliminating the use of ! and guiding toward safer patterns such as optional chaining and explicit guards.

Core Features & Use Cases

  • Encourages optional chaining, type guards, and nullish checks to safely handle nullable values.
  • Provides guidelines for reviewing TypeScript code to avoid forced null assertions.
  • Helps teams enforce consistent null-safety practices across codebases.

Quick Start

Replace occurrences of the non-null assertion with safe alternatives and validate code paths.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: non-null-assertion
Download link: https://github.com/ncaq/konoka/archive/main.zip#non-null-assertion

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.