di

Community

Explicit dependencies for testable, modular code.

Authormgreenly
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Dependency Injection eliminates hidden dependencies by forcing modules to receive their collaborators (config, DB connections, services) from the outside, improving predictability and testability.

Core Features & Use Cases

  • Explicit constructor injection to wire components with their dependencies.
  • Supports composition and testing by swapping mock implementations.
  • Use case: initialize a REPL or service by passing cfg, db, and llm into the core modules rather than having them instantiate internally.

Quick Start

Initialize your modules by passing the necessary dependencies (cfg, db, llm) from the composition root.

Dependency Matrix

Required Modules

None required

Components

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: di
Download link: https://github.com/mgreenly/ikigai/archive/main.zip#di

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.