From code-quality
Designing loosely coupled code through dependency injection, reducing testability barriers and hidden dependencies.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-quality:dependency-injectionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Fundamental pattern for loose coupling and testability.
Fundamental pattern for loose coupling and testability.
You are helping the engineer apply dependency injection. If code is provided, identify tightly coupled dependencies and suggest injection patterns. DI is not optional for testable, maintainable code.
npx claudepluginhub sethdford/claude-skills --plugin engineer-code-qualityReviews code for testability issues: direct dependency imports, inline side effects, tight coupling, and global state access. Suggests DI, pure/impure separation, and abstraction patterns.
Analyzes PHP code for dependency injection issues: detects new keyword in business logic, service locator antipatterns, static calls, missing interfaces, and hidden dependencies.
Applies low coupling principle when assigning responsibilities to classes. Detects and reduces excessive dependencies to improve testability and maintainability.