·avoid-wrapper-types
</>

avoid-wrapper-types

Use when typing primitives. Use when tempted to use String, Number, Boolean. Use when wrapper types appear in errors.

0Installs·0Trend·@marius-townhouse

Installation

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-wrapper-types

How to Install avoid-wrapper-types

Quickly install avoid-wrapper-types 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 avoid-wrapper-types
  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

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.

| string | String | | number | Number | | boolean | Boolean | | symbol | Symbol | | bigint | BigInt |

Pressure: "I want to use String methods, so I'll type it as String"

Use when typing primitives. Use when tempted to use String, Number, Boolean. Use when wrapper types appear in errors. 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 avoid-wrapper-types
Category
</>Dev Tools
Verified
First Seen
2026-02-26
Updated
2026-03-10

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

Quick answers

What is avoid-wrapper-types?

Use when typing primitives. Use when tempted to use String, Number, Boolean. Use when wrapper types appear in errors. Source: marius-townhouse/effective-typescript-skills.

How do I install avoid-wrapper-types?

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 avoid-wrapper-types 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