avoid-wrapper-types

Installation
SKILL.md

Avoid Object Wrapper Types (String, Number, Boolean, Symbol, BigInt)

Overview

Use lowercase primitive types, never uppercase wrapper types.

JavaScript has primitive types (string, number, boolean) and object wrapper types (String, Number, Boolean). TypeScript has types for both, but you should almost never use the wrapper types.

When to Use This Skill

  • Typing any primitive value
  • Seeing errors about wrapper type mismatches
  • Understanding why String !== string
  • Working with methods on primitives

The Iron Rule

ALWAYS use lowercase: string, number, boolean, symbol, bigint
Related skills
Installs
10
GitHub Stars
2
First Seen
Feb 3, 2026