imprecise-over-inaccurate
CommunityPrefer imprecision to avoid false positives.
Software Engineering#typescript#robustness#runtime-validation#false-positives#type-design#domain-agnostic#imprecise-types
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Overly precise types can reject valid code, creating false positives and eroding developer trust. This skill promotes using imprecise yet accurate types when precision would cause false negatives or block legitimate use cases.
Core Features & Use Cases
- Advocates for partial precision with safe escape hatches to balance correctness and practicality.
- Shows concrete examples like CSS color typing and JSON Schema to illustrate when to back off.
- Provides decision guidelines for when to revert to coarser typing and when to validate at runtime.
Quick Start
Start by replacing overly precise type unions with broader types and add an escape hatch for unknown inputs.
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: imprecise-over-inaccurate Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#imprecise-over-inaccurate 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.