expert-code-refactoring
CommunityTransform code into SOLID, testable designs
AuthorGrishaAngelovGH
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill reduces technical debt and fragile implementations by guiding safe, incremental refactors that preserve behavior and test coverage across Java, JavaScript/TypeScript, and React codebases.
Core Features & Use Cases
- Behavior-preserving refactors: Use characterization tests, sprout/wrap methods, and small-step changes to modernize legacy code without breaking existing behavior.
- Testability & design improvements: Introduce dependency injection, extract pure functions, and apply SOLID patterns to make code easier to test and maintain.
- Language-targeted guidance: Concrete recommendations for Java (records, streams, immutability), JavaScript/TypeScript (modern syntax, discriminated unions), and React (hooks, state locality).
- Use Case: Modernize a legacy service by extracting business logic into testable units, adding characterization tests, and incrementally replacing static dependencies with injected interfaces.
Quick Start
Refactor the repository to apply SOLID principles and extract testable units while running and preserving all existing tests after each incremental change.
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: expert-code-refactoring Download link: https://github.com/GrishaAngelovGH/gemini-cli-agent-skills/archive/main.zip#expert-code-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 471,000+ vetted skills library on demand.