/magento2-commerce:magento-plugins-interceptorsfrom magento2-commerce
Implements Magento 2 plugins (interceptors) for before, after, and around method hooks. Use when extending core or third-party module behavior without inheritance.
Ships in magento2-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs: Fetch https://developer.adobe.com/commerce/php/development/components/ for the official plugins guide with exact method signatures and limitations.
Plugins intercept public method calls on any non-final class, allowing you to modify arguments, return values, or wrap entire method execution — without modifying the original class or using inheritance.
| Type | Method Prefix | Purpose | Receives |
|---|---|---|---|
| Before | before<MethodName> | Modify input arguments | Subject + original args |
| After | after<MethodName> | Modify return value | Subject + result (+ original args) |
| Around | around<MethodName> | Wrap entire execution | Subject + $proceed callable + original args |
beforeOriginalMethod($subject, $arg1, $arg2, ...)null to keep originalsafterOriginalMethod($subject, $result, ...$args)$resultaroundOriginalMethod($subject, callable $proceed, $arg1, $arg2, ...)$proceed($arg1, $arg2) to invoke the original (or skip it)Plugins are declared as children of a <type> element:
name — unique plugin identifiertype — fully qualified plugin class namesortOrder — execution priority (lower runs first)disabled — true to disable$proceed code$proceed)$proceed codefinal classes or final methods__construct() (constructor)static methodsprotected, private)Place plugin classes in the Plugin/ directory of your module:
VendorName/ModuleName/Plugin/SomePlugin.php
$proceed in around plugins unless intentionally skippingFetch the plugins documentation for exact method signatures, the latest limitations list, and any changes in recent Magento versions before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin magento2-commerce19 skills in this plugin
/magento-admin-uiBuild Magento 2 admin interfaces — UI component grids, forms, system configuration, ACL, and admin controllers. Use when creating admin panels, data grids, edit forms, or system settings./magento-apiBuild Magento 2 REST and GraphQL APIs — webapi.xml, schema.graphqls, resolvers, authentication, and ACL. Use when creating custom API endpoints, extending the GraphQL schema, or integrating external systems./magento-catalogWork with Magento 2 catalog — product types, categories, attributes, indexing, and search integration. Use when building catalog features, customizing product types, or working with the catalog architecture./magento-checkoutCustomize Magento 2 checkout — payment methods, shipping carriers, totals collectors, and checkout UI. Use when building custom payment/shipping integrations or modifying the checkout flow./magento-deployDeploy Magento 2 — deployment modes, static content deployment, DI compilation, CLI commands, zero-downtime strategies, and CI/CD pipeline setup. Use when preparing for production deployment or building deployment automation./magento-diConfigure Magento 2 dependency injection — di.xml, types, virtual types, preferences, argument replacement, and Object Manager. Use when wiring dependencies, creating class variations, or configuring module integrations.Other plugins' skills for the same job