/magento2-commerce:magento-apifrom magento2-commerce
Build 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.
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:
https://developer.adobe.com/commerce/webapi/ for Web API overviewhttps://developer.adobe.com/commerce/webapi/graphql/develop/ for GraphQL development guidehttps://developer.adobe.com/commerce/webapi/get-started/ for authenticationsite:developer.adobe.com commerce php development components web-api for webapi.xml referenceREST endpoints map HTTP methods + URL paths to service contract methods. Defined in etc/webapi.xml.
Each route defines:
url — endpoint path (e.g., /V1/custom/items/:id)method — HTTP method (GET, POST, PUT, DELETE)service — class + method implementing the endpointresource — ACL resource for authorizationPath parameters (:id) map to method parameters by name.
| Type | Header | Use Case |
|---|---|---|
| Admin Token | Authorization: Bearer <token> | Back-office integrations |
| Customer Token | Authorization: Bearer <token> | Customer-facing apps |
| OAuth 1.0a | OAuth headers | Third-party integrations |
| Session | PHP session cookie | Storefront JS widgets |
| Anonymous | resource="anonymous" | Public endpoints |
Available at /rest/<store>/schema — auto-generated from webapi.xml and service contracts.
GraphQL uses a single endpoint (/graphql) with schema files and resolver classes.
Define types, queries, and mutations in etc/schema.graphqls:
Implement Magento\Framework\GraphQl\Query\ResolverInterface:
resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)Implement Magento\Framework\GraphQl\Query\Resolver\IdentityInterface for full-page cache invalidation of GraphQL responses.
Authorization: Bearer <customer-token> header$context->getExtensionAttributes()->getIsCustomer() for auth checksDefines the resource tree for authorization:
<resource> elements form a hierarchywebapi.xml via <resource ref="Vendor_Module::resource_name"/>anonymous (no auth), self (customer's own data)Fetch the Web API and GraphQL development docs for exact XML schema, resolver signatures, and authentication patterns before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
19 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-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.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin magento2-commerceOther plugins' skills for the same job