
Hyva Create Module
Creates Magento 2 module scaffolding in app/code/ with all the boilerplate you need: registration.php, composer.json, and module.xml with proper dependencies. Handles PascalCase to kebab-case conversion automatically and validates naming conventions before generating files. You give it a vendor name, module name, and optional dependencies, and it structures everything correctly including the sequence block for module load order. Designed to be called by other skills that need module scaffolding, though you can invoke it directly when starting a new custom module. Requires the hyva-exec-shell-cmd skill if you want it to run setup:upgrade afterward, otherwise it skips that step and tells you to run it manually.
- skills.sh installs
- 1.3K
- GitHub stars
- 85
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-create-module --agent claude-codeInstalls into .claude/skills of the current project.
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.
Parameters
When invoking this skill, the calling skill should provide:
| Parameter | Required | Description |
|---|---|---|
vendor | Yes | Vendor name in PascalCase (e.g., Acme) |
module | Yes | Module name in PascalCase (e.g., CustomFeature) |
description | No | Module description for composer.json (default: "[Vendor] [Module] module") |
dependencies | No | Array of module dependencies for <sequence> in module.xml |
composer_require | No | Object of composer requirements (package: version) |
Workflow
Step 1: Validate Input
- Verify vendor name is PascalCase (starts with uppercase, alphanumeric only)
- Verify module name is PascalCase
- Check that
app/code/{Vendor}/{Module}does not already exist
Sponsors
Details
- Repository
- github.com/hyva-themes/hyva-ai-tools
- Categories
- AI & Agent Building, Automation & Workflows, PHP & Laravel
- First seen
- Jun 3, 2026