module-di
CommunityMaster Magento DI without ObjectManager.
Software Engineering#dependency injection#magento#di.xml#proxies#virtual types#constructor injection#objectmanager
Authorcaravanglory
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you configure and troubleshoot Magento 2 dependency injection so modules use the right implementations, constructor arguments, and scoped bindings without direct ObjectManager calls.
Core Features & Use Cases
- Interface Preferences: Bind service contracts to concrete implementations in global or area-scoped di.xml files.
- Virtual Types and Proxies: Adjust constructor arguments and defer expensive dependencies without creating unnecessary subclasses.
- DI Troubleshooting: Diagnose compile errors, circular dependencies, and incorrect wiring in Magento modules.
- Use Case: When a Magento module needs a different logger, data provider, or repository implementation in adminhtml versus frontend, this Skill guides the safest DI configuration.
Quick Start
Ask this Skill to review your Magento 2 dependency injection setup and tell you exactly what to change in di.xml and constructors.
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: module-di Download link: https://github.com/caravanglory/magehub/archive/main.zip#module-di 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 536,000+ vetted skills library on demand.