convention-zero-one-infinity
CommunityEnforce 0/1/∞ limits in code.
Design & Creative#coding-standards#software-design#parameterization#zero-one-infinity#magic-number#hard-coded-values
AuthorsunLeee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The Zero-One-Infinity rule restricts numeric choices to 0, 1, or infinity to avoid arbitrary hard-coding. This keeps designs simple, scalable, and less error-prone.
Core Features & Use Cases
- Detect hard-coded numeric limits and magic numbers in code and configurations.
- Provide refactoring patterns that replace arbitrary constants with parameterized values and clear semantics (0, 1, or ∞).
- Offer guidelines and examples for applying the rule across API design, configuration, and algorithm parameterization.
Quick Start
Ask the AI to apply the 0/1/∞ rule to your project and convert arbitrary constants to parameterized values.
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: convention-zero-one-infinity Download link: https://github.com/sunLeee/optimization/archive/main.zip#convention-zero-one-infinity 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.