magento-agent-module-generator

Generate a Magento 2 module skeleton with db_schema.xml and API interfaces.

32|3|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-agent-module-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-agent-module-generator
Source: https://github.com/furan917/magento-ai-toolkit/tree/main/agent-skills/magento-agent-module-generator
Command: npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-agent-module-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a complete, production-ready Magento 2 module skeleton from a plain-language spec, including all required files, directory structure, service contracts, database schema, and optional extras (CLI, observers, plugins, tests).

Core Features & Use Cases

  • Scaffold a full Magento 2 module with registration.php, composer.json, module.xml, Api/Data interfaces, Repository interfaces, and a declarative db_schema.xml.
  • Produce end-to-end module skeletons that are install-ready via bin/magento setup:upgrade, with optional REST API, CLI commands, and unit tests.
  • Enable rapid prototyping of Magento 2 modules from high-level descriptions while enforcing Magento 2 best practices (declare(strict_types=1), constructor injection, DataPatch usage, no InstallData/UpgradeData).

Quick Start

Describe your module spec (Vendor_Module) in plain language and the agent will generate a production-ready Magento 2 module skeleton you can install.

Frequently Asked Questions about magento-agent-module-generator

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

FAQPage Schema
How do I generate a Magento 2 module from a plain-language spec?

You generate a Magento 2 module by providing a plain-language spec, which the tool uses to auto-generate a complete skeleton including registration.php, composer.json, module.xml, API interfaces, repositories, and db_schema.xml.

What is the best way to create a Magento 2 db_schema.xml and DataPatch without using InstallData?

The best way to create a Magento 2 db_schema.xml and DataPatch is by auto-generating a module skeleton that enforces modern best practices, ensuring declarative schema usage and completely avoiding deprecated InstallData or UpgradeData scripts.

Can I include REST API and CLI commands when scaffolding a Magento 2 module?

Yes, you can include optional REST API and CLI components when scaffolding a Magento 2 module. The generator adds these extras alongside the core service contracts and admin UI scaffold based on your plain-language spec.

Does the generated Magento 2 module skeleton follow strict type and dependency injection standards?

Yes, the generated Magento 2 module skeleton follows strict standards by enforcing declare(strict_types=1) and utilizing constructor injection across all API interfaces, repositories, and DataPatch implementations.

How do I make a Magento 2 module install-ready via setup:upgrade automatically?

You make a Magento 2 module install-ready by generating the full directory structure and required files with a declarative db_schema.xml, allowing immediate installation and database table creation via bin/magento setup:upgrade.