convention-zero-one-infinity

Community

Enforce 0/1/∞ limits in code.

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 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: 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.
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.