command-boundary-clamping
CommunityPrevent crashes with smart input clamping.
Authormlinnen
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Pattern for safely clamping user-supplied numeric parameters to prevent extreme or invalid values that could affect rendering or behavior.
Core Features & Use Cases
- Inline clamp helper to constrain coordinates and angles within defined bounds
- Symmetric bounds documentation to ensure intuitive behavior for bidirectional parameters
- Consistent clamping on both absolute values and deltas to prevent state overflow
- Clear in-code docstrings to explain the intended bounds and constraints
Quick Start
Clamp input values to the defined bounds using the inline clamp helper before applying them.
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: command-boundary-clamping Download link: https://github.com/mlinnen/mr-pumpkin/archive/main.zip#command-boundary-clamping 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.