magento-plugins-interceptors
OfficialExtend Magento 2 without inheritance.
AuthorOrcaQubits
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill allows developers to modify the behavior of Magento 2 classes without directly altering their code or using traditional inheritance, streamlining customizations and extensions.
Core Features & Use Cases
- Method Interception: Intercept public method calls on classes using
before,after, oraroundplugins. - Argument/Return Modification: Modify method arguments before execution or return values after execution.
- Execution Wrapping: Wrap entire method executions to add custom logic or control flow.
- Use Case: You need to add a custom validation rule to the
savemethod of a core Magento product model. Instead of rewriting the model, you can create abeforeSaveplugin to add your validation logic.
Quick Start
Use the magento-plugins-interceptors skill to create a 'before' plugin for the save method of the Magento\Catalog\Model\Product class.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: magento-plugins-interceptors Download link: https://github.com/OrcaQubits/agentic-commerce-claude-plugins/archive/main.zip#magento-plugins-interceptors Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.