magento

Guide Magento 2 module development with correct extension mechanisms and configuration.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/biggora/e-commerce-plugin-skills --skill magento
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento
Source: https://github.com/biggora/e-commerce-plugin-skills/tree/main/skills/magento
Command: npx skills add https://github.com/biggora/e-commerce-plugin-skills --skill magento

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Magento 2 module development can quickly become error-prone when developers misunderstand DI scoping, extension mechanisms, and the correct way to structure registration, configuration, and APIs.

Core Features & Use Cases

  • Magento 2 / Adobe Commerce architecture guidance: explains how modules are layered and how to avoid anti-patterns like direct ObjectManager usage.
  • Extension mechanism decision support: covers when to use plugins (interceptors), observers, and preferences, including sortOrder behavior and limitations.
  • Practical development workflows: provides setup commands and integration patterns for REST/GraphQL, admin UI, layout XML, checkout customization, and marketplace publishing.

What problem does it solve?

This skill helps you design and implement Magento 2 (Adobe Commerce) modules correctly by mapping your goals to the right framework mechanisms and configuration points.

Quick Start

Ask for a Magento 2 module plan to add an admin page plus a REST endpoint, including the required module files, DI configuration, and the plugin/observer strategy to implement the behavior safely.

Frequently Asked Questions about magento

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

FAQPage Schema
How do I add a REST API endpoint and admin page to a Magento 2 module?

Creating a Magento 2 module with a REST API and admin page requires configuring module.xml sequencing, defining UI components and controllers, and establishing API interfaces and ACL rules following Adobe Commerce conventions.

When should I use plugins versus observers in Magento 2 development?

Use Magento 2 plugins (interceptors) to modify core class behavior without changing the original class, and use observers to react to specific events, ensuring you respect sortOrder limitations and avoid direct core edits.

Why does Magento 2 discourage direct use of the ObjectManager?

Magento 2 discourages ObjectManager misuse because it bypasses dependency injection scoping, making code harder to test and maintain; instead, developers must use constructor DI to properly inject dependencies.

What is the best way to expose custom functionality via GraphQL in Adobe Commerce?

The best way to expose custom functionality via GraphQL in Adobe Commerce is by creating a module that defines schema and resolver classes, configured correctly through dependency injection to ensure reliable integration without modifying core files.

How do I structure module.xml sequencing for a reliable Adobe Commerce extension?

Structure module.xml sequencing in Adobe Commerce by defining the correct load order and dependencies in your module declaration, ensuring your extension aligns with core framework expectations and avoids integration conflicts.

Does this Magento 2 module development approach support marketplace publishing requirements?

Yes, this Magento 2 module development approach supports marketplace publishing by enforcing correct setup requirements, avoiding core edits, and aligning module registration and API expectations with Magento conventions.