magento-graphql

magento-graphql is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 33 tokens per session (3,362 once invoked), scanned A, original, MIT.

A guide to Magento's GraphQL API, a way for applications to request store data and actions, such as products, carts, checkout, and customer accounts.

In plain words
What is it for?
It is for creating React, Vue, Next.js, or mobile commerce interfaces, querying catalog data, managing carts and checkout, and adding custom GraphQL resolvers.
Why use it?
It helps developers connect custom storefronts and mobile apps to Magento without building every store operation from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit It is for creating React, Vue, Next.js, or mobile commerce interfaces, querying catalog data, managing carts and checkout, and adding custom GraphQL resolvers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/magento-graphql
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill magento-graphql
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for magento-graphql

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/magento-graphql/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/magento-graphql)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/magento-graphql"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/magento-graphql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for magento-graphql

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/magento-graphql"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/magento-graphql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,362 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.03362
Opus 5 $0.00016 $0.01681
Sonnet 5 $0.00007 $0.00672
Haiku 4.5 $0.00003 $0.00336

Measured 8d ago against content hash 6506cad0f02f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

magento-graphql scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/platform-magento/magento-graphql/SKILL.md · 441 lines

How it starts

The opening of the file, as written. The whole thing — 441 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Magento GraphQL API

Overview

Magento 2 (and Adobe Commerce) ships a comprehensive GraphQL API for storefront operations — product catalog, search, cart, checkout, customer authentication, and order history. The endpoint is /graphql and does not require an admin token for public catalog data. Cart and customer operations require a guest cart ID (UUID) or a Bearer token from customer login. PWA Studio (Venia) is built entirely on this API, making it the reference implementation for headless Magento.

When to Use This Skill

  • When building a React, Vue, or Next.js headless storefront on Magento 2
  • When creating a native mobile app that needs Magento product and checkout data
  • When implementing PWA Studio extensions that fetch custom data via GraphQL resolvers
  • When replacing REST API calls with more efficient GraphQL queries in existing headless projects
  • When building a custom GraphQL resolver to expose third-party or custom module data
  • When integrating a headless CMS with Magento's product catalog

Core Instructions

  1. Set up the GraphQL client

    Magento GraphQL uses standard HTTP POST to /graphql. Use Apollo Client or a lightweight fetch wrapper:

    // lib/magento.ts
    const MAGENTO_URL = process.env.NEXT_PUBLIC_MAGENTO_URL; // e.g. https://magento.example.com
    
    export async function magentoQuery<T>(
      query: string,
      variables: Record<string, unknown> = {},
      token?: string
    ): Promise<T> {
      const headers: Record<string, string> = {
        "Content-Type": "application/json",
        Store: process.env.NEXT_PUBLIC_MAGENTO_STORE_CODE ?? "default",
      };
    
      if (token) {
        headers["Authorization"] = `Bearer ${token}`;
      }
    
      const response = await fetch(`${MAGENTO_URL}/graphql`, {
        method: "POST",
        headers,
        body: JSON.stringify({ query, variables }),
        next: { revalidate: 300 }, // Next.js ISR caching
      });
    
      if (!response.ok) {
        throw new Error(`Magento GraphQL HTTP error: ${response.status}`);
      }
    
      const { data, errors } = await response.json();
      if (errors?.length) {
        throw new Error(errors[0].message);
      }
      return data as T;
    }
    

Read the full file on GitHub · 441 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 441 lines · 33 tokens per session scan A 6506cad0f02f

Subscribe to this mod's changes

magento-graphql is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 3,362 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

vendure-cli

Use the Vendure CLI (vendure) to scaffold, run, build, migrate and maintain a Vendure ecommerce project. Use whenever working inside a Vendure project that needs a dev server, a production build, database migrations, plugin/entity/service scaffolding, GraphQL schema generation, diagnostic checks, or codemods.

vendurehq/vendure · 69 tokens

radix-to-base-ui-migration

Migrates Vendure Dashboard extensions from Radix UI patterns to Base UI patterns (@vendure-io/ui).

vendurehq/vendure · 30 tokens

vendure-dashboard-migration

Migrates Vendure Admin UI extensions (legacy Angular-based) to the new React Dashboard.

vendurehq/vendure · 24 tokens

shopline-oauth

SHOPLINE app authorization and request signing. Use when implementing OAuth 2.0 authorization (public/custom apps), exchanging codes for access tokens, refreshing tokens, signing GET/POST requests with HMAC-SHA256, or verifying SHOPLINE webhook/callback signatures.

lunw/shopline-ai-toolkit-dsh · 57 tokens

shopline-graphql

SHOPLINE Admin GraphQL and Storefront GraphQL APIs. Use when designing or generating GraphQL queries/mutations for SHOPLINE (Admin or Storefront), working with global IDs (gid://shopline/...), or validating GraphQL code against the SHOPLINE schema.

lunw/shopline-ai-toolkit-dsh · 58 tokens

shopline-webhook

SHOPLINE webhooks. Use when building webhook subscriptions, webhook endpoints (ack, retry, idempotency), verifying webhook signatures (X-Shopline-Hmac-Sha256), or debugging missed/duplicated events.

lunw/shopline-ai-toolkit-dsh · 48 tokens