consistent-aliases
CommunityKeep aliases consistent to preserve narrowing.
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Narrowing rules in TypeScript can break when developers create local aliases from object properties or switch between alias and original names. This Skill provides guidance to maintain consistent aliasing so refinements remain reliable across a code path.
Core Features & Use Cases
- Enforces a single aliasing approach per scope to prevent misleading type refinements.
- Recommends destructuring and local variables to stabilize narrowing across function calls.
- Includes practical patterns for safe readonly usage to protect existing refinements.
Quick Start
Destructure from objects and prefer a single, consistently named alias within each scope to keep type refinements stable.
Dependency Matrix
Required Modules
None requiredComponents
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: consistent-aliases Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#consistent-aliases Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.