RefactorDependency
CommunityRefactor dependencies with injection abstractions
Software Engineering#typescript#architecture#refactor#unit-testing#software-engineering#DI#dependency-injection
Authorfnoritomi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps teams decouple code from concrete dependencies by introducing explicit dependency injections, improving testability and maintainability without altering public APIs.
Core Features & Use Cases
- Isolate one dependency type per iteration to minimize risk.
- Limit changes to 1-2 modules to preserve behavior and ease review.
- Introduce adapters or DI contexts while keeping public API unchanged.
- Use cases: refactoring fetch to a platform abstraction, swapping localStorage for an injected storage, facilitating testing by supplying mocks.
Quick Start
To begin, select a single dependency type (for example, fetch or localStorage), identify the files that use it, implement an adapter or constructor parameter injection, update imports and constructor calls minimally, then run tests and a build to verify no public API changes.
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: RefactorDependency Download link: https://github.com/fnoritomi/tabulador-dados-abertos/archive/main.zip#refactordependency 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.