avoiding-any-types

Community

Eliminate any by using unknown with type guards.

Authordjankies
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill teaches how to replace abusive uses of the any type with unknown and robust type guards, improving type safety across APIs and external data handling.

Core Features & Use Cases

  • Prefer known types, unions, and generics before resorting to any.
  • Use unknown with runtime validation to safely access data.
  • Implement type guards to narrow data safely.

Quick Start

Convert a function that accepts any input to use unknown and validate with a type guard before use.

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: avoiding-any-types
Download link: https://github.com/djankies/claude-configs/archive/main.zip#avoiding-any-types

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 223,000+ vetted skills library on demand.