Agent skill

dependency-injection

Pass dependencies through constructors or setters rather than instantiating them internally Use when designing system architecture. Architecture category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/dependency-injection

Metadata

Additional technical details for this skill

category
Architecture
priority
high
is built in
YES
session guardian id
builtin_dependency_injection

SKILL.md

Dependency Injection

Pass dependencies through constructors or setters rather than instantiating them internally. This makes dependencies explicit, enables testing with mocks, and allows easy configuration changes. Use DI containers for complex applications to manage object lifetimes and resolve dependencies automatically. Constructor injection is preferred for required dependencies.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results