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
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, andetc/module.xml, with optionalsequencedependencies and extra composer requirements - Aborts with specific errors for invalid names or an existing module directory, and skips setup upgrade when
hyva-exec-shell-cmdis 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 -yInstalls 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:
| 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
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 12Similar to Hyva Create Module
More PHP & Laravelhyva-cms-componentSkillhyva-themes/hyva-ai-tools793 installsCreates custom Hyvä CMS components with components.json, PHTML templates, field presets, and setup:upgrade.
hyva-child-themeSkillhyva-themes/hyva-ai-tools1.4K installsScaffold a Hyvä child theme with registration, theme.xml, composer.json, and a copied Tailwind build setup.
magento-module-developerSkillmaxnorm/magento2-agent-skills465 installsExpert guide for building Magento 2 modules with service contracts, repositories, and dependency injection.
project-scaffoldPluginrohitg00/awesome-claude-code-toolkit2.9K starsScaffold new projects and add features with best-practice templates
makefile-generatorSkillakin-ozer/cc-devops-skills715 installsCreate, generate, or scaffold Makefiles with .PHONY targets and standard build automation.
plugin-creatorSkillopenai/skills2.9K installsScaffolds Codex plugin directories with a required manifest and optional companion folders, plus marketplace entries.