complexity-refactoring
CommunityRefactor complex code into pure testable helpers
Authorlibertininick
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps developers reduce cognitive load and improve maintainability by steering refactoring toward pure, return-valuing helpers instead of mutating state or writing long, complex functions.
Core Features & Use Cases
- Enforces extraction of pure helpers that return values.
- Guides patterns for breaking down complex logic, building collections, and isolating conditional branches.
- Use Case: When a function grows beyond a manageable size, refactor by extracting focused helpers and composing them to form the final solution.
Quick Start
Identify a function with high McCabe complexity, extract a pure helper that computes a value, and refactor the caller to use the new helper. Then repeat for additional concerns until the codebase shows improved readability and testability.
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: complexity-refactoring Download link: https://github.com/libertininick/chain-reaction/archive/main.zip#complexity-refactoring 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 223,000+ vetted skills library on demand.