Refines code logic by enforcing pure function patterns, single-responsibility principles, and high-cohesion design.
This skill provides Claude with standards-grounded guidance for designing and refactoring functions based on Clean Code, SWEBOK, and functional programming patterns. It helps engineers minimize side effects, reduce parameter complexity, and ensure every function serves a singular, testable purpose. By applying these principles during the development process, the skill mitigates common architectural anti-patterns like hidden state dependencies and 'god functions,' resulting in a more maintainable, modular, and deterministic codebase.
Key Features
01Parameter complexity reduction and object extraction recommendations
02Function purity verification for deterministic logic
03Anti-pattern detection for hidden global state dependencies
04Side-effect identification and explicit documentation guidance
05Cohesion measurement to prevent multi-purpose function bloat
065 GitHub stars
Use Cases
01Refactoring legacy spaghetti code into modular, testable units
02Automated code review assistance to flag excessive parameters or side effects
03Designing new backend logic following functional programming best practices