avoid-anecdotal-types
CommunityDefine types from specs, not anecdotes.
Software Engineering#typescript#specifications#edge-cases#type-safety#types#api-design#runtime-validation
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Avoid inferring types from a single example; align type definitions with official specifications to catch edge cases and ensure long-term correctness.
Core Features & Use Cases
- Spec-based typing that relies on official docs, schemas, and specs rather than anecdotes.
- Handles optional fields, nullability, and variant shapes across APIs, databases, and services.
- Encourages runtime validation and defensive typing to prevent surprising runtime failures.
Quick Start
Provide a robust, spec-aligned type definition by combining official API specs with multiple examples to cover edge cases.
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: avoid-anecdotal-types Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#avoid-anecdotal-types 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.