magento2-create-module

Generate Magento 2 custom modules with standard directory structure and files.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/shubham-evrig/magento2-claude-skill --skill magento2-create-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento2-create-module
Source: https://github.com/shubham-evrig/magento2-claude-skill/tree/main/skills/magento2-module-dev
Command: npx skills add https://github.com/shubham-evrig/magento2-claude-skill --skill magento2-create-module

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

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.

Frequently Asked Questions about magento2-create-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a production-ready Magento 2 custom module?

To scaffold a production-ready Magento 2 custom module, use an automated generator to build the directory structure, registration.php, module.xml, and composer.json while enforcing coding standards and best practices.

Can I generate Magento 2 modules with database tables, APIs, and CLI commands?

Yes, you can generate Magento 2 modules with database tables, APIs, and CLI commands. The scaffolding process supports adding features like admin configurations, frontend pages, observers, and cron jobs.

Does this Magento 2 module generator support PHP 8.2 and Hyvä themes?

Yes, this Magento 2 module generator supports PHP 7.4, 8.1, 8.2, and 8.3. It also includes specific options to generate Hyvä-compatible frontend layouts and templates for your custom extensions.

What is the best way to ensure Magento 2 coding standards in extension development?

The best way to ensure Magento 2 coding standards in extension development is to automate module creation. This enforces strict adherence to conventions, including type safety, ::class usage, and proper documentation.

How do I add an admin configuration and frontend page to a Magento 2 module?

To add an admin configuration and frontend page to a Magento 2 module, use feature integration options during scaffolding. This automatically generates the required files following official Magento conventions.