What problem does it solve?
This Skill automates the creation of production-ready Magento 2 custom modules, significantly reducing manual setup time and ensuring adherence to best practices.
Core Features & Use Cases
- Automated Module Scaffolding: Generates the complete directory structure,
registration.php, module.xml, composer.json, and other essential files.
- Feature Integration: Supports adding features like admin configurations, database tables, frontend pages, APIs, observers, plugins, cron jobs, and CLI commands.
- Coding Standards Enforcement: Ensures strict adherence to Magento 2 coding standards, including type safety,
::class usage, and proper documentation.
- Hyvä Compatibility: Option to generate Hyvä-compatible frontend layouts and templates.
- Use Case: A developer needs to create a new custom module for a Magento 2 store to add a new product type. They can use this Skill to quickly scaffold the module, define its basic structure, and then iteratively add specific features like a new database table and an admin form.
Quick Start
Use the magento2-create-module skill to generate a new Magento 2 module named 'MyCompany_CustomModule' for PHP 8.2, with Magento_Catalog as a dependency.