Skip to content
hyva-themes avatar

Hyva Create Module

Scaffold a Magento 2 module in app/code/ with registration, composer.json, and module.xml generated from templates.

CCM score
67 of 100
skills.sh installs
1.4K
GitHub stars
86
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the four-step flow: validate PascalCase names, create the directory tree, generate three files, and optionally run setup upgrade
  • Generates registration.php, composer.json, and etc/module.xml, with optional sequence dependencies and extra composer requirements
  • Aborts with specific errors for invalid names or an existing module directory, and skips setup upgrade when hyva-exec-shell-cmd is missing
  • Designed for calling skills and developers who need module boilerplate for Magento 2 without manual file creation

Install

$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-create-module -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Create Magento 2 Module

This utility skill creates new Magento 2 modules in app/code/. It is designed to be called by other skills that need module scaffolding.

Command execution: For commands that need to run inside the development environment (e.g., bin/magento), use the hyva-exec-shell-cmd skill to detect the environment and determine the appropriate command wrapper.

Skill deps (read via <skill_path>/../{name}/SKILL.md, where <skill_path> is the directory containing this SKILL.md file): hyva-exec-shell-cmd

Parameters

When invoking this skill, the calling skill should provide:

ParameterRequiredDescription
vendorYesVendor name in PascalCase (e.g., Acme)
moduleYesModule name in PascalCase (e.g., CustomFeature)
descriptionNoModule description for composer.json (default: "[Vendor] [Module] module")
dependenciesNoArray of module dependencies for <sequence> in module.xml
composer_requireNoObject of composer requirements (package: version)

Workflow

Step 1: Validate Input

Details

Repository
github.com/hyva-themes/hyva-ai-tools
Category
PHP & Laravel
First seen
Jun 3, 2026

More from hyva-themes/hyva-ai-tools

All 12

Similar to Hyva Create Module

More PHP & Laravel