predictability
CommunityMake function behavior transparent and reliable.
Software Engineering#typescript#refactoring#code-quality#side-effects#api-design#return-type#predictability
AuthorByeongminLee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers ensure code behavior is predictable by eliminating hidden side effects in data-fetching functions, standardizing return types across similar functions, and aligning function names with their actual behavior.
Core Features & Use Cases
- Identify hidden side effects in getX()/fetchX() functions and promote explicitness.
- Unify return types across related functions using discriminated unions or structured types.
- Improve API readability by ensuring function names reflect behavior and return shape.
Quick Start
Refactor a sample fetchBalance function to remove side effects and standardize its return type.
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: predictability Download link: https://github.com/ByeongminLee/nextjs-claude-code/archive/main.zip#predictability 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.