avoid-inferable-annotations

Community

Let TypeScript infer types to reduce clutter.

Authorluyi985
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TypeScript often requires explicit type annotations that could be inferred, leading to noisy code and maintenance burden. This skill teaches when to rely on inference to keep code concise without sacrificing safety.

Core Features & Use Cases

  • Detect redundant type annotations in variables, function parameters, return types, destructuring, and object literals.
  • Provide guidance on when to annotate (public APIs, explicit contracts) versus rely on inference.
  • Real-world scenario: refactor a codebase to reduce boilerplate while preserving or improving type safety in frontend and backend projects.

Quick Start

Use this skill to rewrite TypeScript annotations so variables, parameters, and returns rely on inference where appropriate, keeping code concise and safe.

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

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.