hyva-create-module

Scaffold Magento 2 modules with directory structure and boilerplate files.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Happy-Horizon/cursor-marketplace --skill hyva-create-module-happy-horizon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hyva-create-module
Source: https://github.com/Happy-Horizon/cursor-marketplace/tree/main/plugins/hyva-ai-tools/skills/hyva-create-module
Command: npx skills add https://github.com/Happy-Horizon/cursor-marketplace --skill hyva-create-module-happy-horizon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of a new Magento 2 module in app/code/, handling registration.php, composer.json, and module.xml generation with configurable dependencies.

Core Features & Use Cases

  • Module Scaffolding: Creates the directory structure app/code/{Vendor}/{Module}/ and boilerplate files (registration.php, composer.json, etc/module.xml).
  • Input Validation: Verifies Vendor/Module names are PascalCase and ensures the target directory does not already exist.
  • Configurable Dependencies: Allows specifying module dependencies to be included in etc/module.xml.

Quick Start

Provide the vendor and module names to scaffold a new Magento 2 module in app/code/

Frequently Asked Questions about hyva-create-module

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

FAQPage Schema
How do I scaffold a new Magento 2 module with the correct directory structure?

To scaffold a Magento 2 module, provide the vendor and module names to automatically generate the app/code/{Vendor}/{Module}/ directory structure alongside essential boilerplate files like registration.php and module.xml.

What files are included when creating boilerplate for a Magento 2 extension?

Creating Magento 2 module boilerplate includes generating registration.php for activation, composer.json for packaging, and etc/module.xml for lifecycle management and dependency declarations.

Can I specify module dependencies in module.xml during scaffolding?

Yes, you can specify configurable dependencies during module scaffolding to automatically include them in the generated etc/module.xml file, ensuring correct module load sequencing.

Does Magento 2 module scaffolding validate vendor and module naming conventions?

Yes, the scaffolding process validates input to ensure vendor and module names use strict PascalCase formatting and verifies that the target directory does not already exist to prevent overwrites.

What is the best way to standardize Magento 2 module creation across a development team?

Standardizing Magento 2 module creation across teams requires automating the generation of directory structures and boilerplate files to ensure consistent registration.php and module.xml configuration.