From magento2-commerce
Builds Magento 2 REST and GraphQL APIs with webapi.xml, schema.graphqls, resolvers, authentication, and ACL for custom endpoints, schema extensions, and integrations.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin magento2-commerceThis skill is limited to using the following tools:
**Fetch live docs**:
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
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/authentication/gs-authentication-token/ 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.