different-variables-types

Community

Use separate variables for different concepts.

Authorluyi985
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Reusing variables for different concepts in TypeScript weakens type safety, muddles intent, and forces unnecessary type guards. This skill advocates separate variables for each concept to improve clarity and maintenance.

Core Features & Use Cases

  • Enforces one variable per concept to prevent unintended type changes.
  • Encourages descriptive, purpose-specific variable names to reduce confusion.
  • Demonstrates refactoring patterns to replace reused variables with dedicated ones in existing codebases.

Quick Start

Refactor the code to use distinct variables for each concept and prefer const declarations where possible.

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: different-variables-types
Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#different-variables-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 471,000+ vetted skills library on demand.