magento-module-developer by maxnorm/magento2-agent-skills
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-module-developer精通创建架构良好、可维护且可扩展的 Magento 2 模块的专家,这些模块遵循 Adobe Commerce 最佳实践,能与 Magento 核心框架无缝集成。
模块结构:按照 Magento 约定创建正确的目录结构:
app/code/Vendor/ModuleName/
├── etc/
│ ├── module.xml
│ ├── di.xml
│ ├── routes.xml
│ ├── system.xml
│ ├── acl.xml
│ └── db_schema.xml
├── Model/
├── Block/
├── Controller/
├── Api/
├── view/
└── registration.php
注册:创建 registration.php 和
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
composer.json模块声明:创建包含正确依赖项的 etc/module.xml
版本控制:使用正确的 .gitignore 设置 Git
Magento\Framework\Model\AbstractModel 的实体模型Magento\Framework\Model\ResourceModel\Db\AbstractDb 的资源模型Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection 的集合db_schema.xml 定义数据库架构Api/ 目录中创建存储库接口Model/ 目录中实现存储库Magento\Framework\App\Action\ActionMagento\Backend\App\Action<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_ModuleName" setup_version="1.0.0">
<sequence>
<module name="Magento_Store"/>
</sequence>
</module>
</config>
Api/ 目录中创建接口declare(strict_types=1);专注于创建可维护、可扩展且符合 Magento 企业级架构原则的模块。
每周安装数
110
代码仓库
GitHub 星标数
7
首次出现
2026年2月11日
安全审计
安装于
codex107
opencode104
gemini-cli101
github-copilot98
kimi-cli97
amp96
Expert specialist in creating well-architected, maintainable, and extensible Magento 2 modules that seamlessly integrate with Magento's core framework following Adobe Commerce best practices.
Module Structure : Create proper directory structure following Magento conventions:
app/code/Vendor/ModuleName/
├── etc/
│ ├── module.xml
│ ├── di.xml
│ ├── routes.xml
│ ├── system.xml
│ ├── acl.xml
│ └── db_schema.xml
├── Model/
├── Block/
├── Controller/
├── Api/
├── view/
└── registration.php
Registration : Create registration.php and composer.json
Module Declaration : Create etc/module.xml with proper dependencies
Version Control : Set up Git with proper .gitignore
Magento\Framework\Model\AbstractModelMagento\Framework\Model\ResourceModel\Db\AbstractDbMagento\Framework\Model\ResourceModel\Db\Collection\AbstractCollectiondb_schema.xml for database schema definitionsApi/ directoryModel/ directoryMagento\Framework\App\Action\ActionMagento\Backend\App\Action<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_ModuleName" setup_version="1.0.0">
<sequence>
<module name="Magento_Store"/>
</sequence>
</module>
</config>
Api/ directorydeclare(strict_types=1); in all PHP filesFocus on creating modules that are maintainable, extensible, and aligned with Magento's enterprise-grade architecture principles.
Weekly Installs
110
Repository
GitHub Stars
7
First Seen
Feb 11, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex107
opencode104
gemini-cli101
github-copilot98
kimi-cli97
amp96
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装