module-plugin

Community

Intercept Magento 2 methods without core edits

Authorcaravanglory
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps Magento 2 developers change the behavior of existing public methods safely through plugins instead of preferences or direct core edits, reducing coupling and upgrade risk.

Core Features & Use Cases

  • Before plugins normalize arguments before a method runs.
  • After plugins adjust return values after execution.
  • Around plugins wrap execution when control flow changes or conditional skipping is required.
  • Use cases include targeting public Magento classes, choosing the narrowest di.xml scope, managing plugin sort order, and verifying chain behavior with compile and test runs.

Quick Start

Ask for a Magento 2 plugin plan that targets a specific public method, recommends the right interceptor type, and shows the di.xml registration and verification steps.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: module-plugin
Download link: https://github.com/caravanglory/magehub/archive/main.zip#module-plugin

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.