avoid-unnecessary-type-params

Community

Keep generics lean by removing unused type params

Authorluyi985
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Unnecessary type parameters clutter code and can degrade type inference, making maintenance harder and introducing confusion during reviews.

Core Features & Use Cases

  • Identify and remove type parameters that appear only once in functions, types, or classes.
  • Refactor generics to ensure parameters relate multiple types, improving readability and inference.
  • Review code for safer generics decisions during design and code reviews.

Quick Start

Review a TypeScript function that declares a generic parameter which only appears once and apply the rule to refactor it.

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: avoid-unnecessary-type-params
Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#avoid-unnecessary-type-params

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.