The Predictability skill implements core engineering principles from the Toss Frontend Fundamentals guide to ensure that code behaves exactly as its naming implies. It helps developers eliminate hidden logic in getter functions, unify inconsistent return types using Discriminated Unions, and clarify function names that misrepresent their actual behavior. By using this skill, Claude can assist in refactoring ambiguous logic into explicit, readable code that reduces developer cognitive load and prevents bugs caused by unexpected side effects.
主な機能
011,939 GitHub stars
02Standardizes function outputs using Discriminated Unions for consistent error handling
03Refactors implicit logic into explicit, call-site side effects
04Detects and resolves naming conflicts with global library namespaces
05Identifies and surfaces hidden side effects in data fetching and getter functions
06Analyzes function naming to ensure alignment between name and actual behavior
ユースケース
01Unifying diverse validation logic into a standardized success/failure object structure
02Renaming ambiguous utility functions to better reflect their operational scope
03Refactoring legacy API wrappers that contain hidden logging or state mutations