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-qualityAnalyzes 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.
Enforces dependency inversion and testable design via checkpoint questions before writing function signatures and constructors. Supports strict, recommended, and off modes via stack.md.