admin-graphql

admin-graphql is a skill for Claude Code from khadinakbarlabs/shopify-app-builder. It costs 46 tokens per session (4,120 once invoked), scanned A, original, MIT.

A guide to Shopify’s Admin GraphQL API, the interface used by apps to read and change store data through structured queries.

In plain words
What is it for?
It covers products, orders, customers, inventory, metafields, webhooks, refunds, and bulk operations.
Why use it?
It helps developers build API calls that handle Shopify’s limits, pagination, large jobs, and current API requirements correctly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shopify-app-builder plugin — 32 skills, 9 commands, 5 agents shipped together

Good fit It covers products, orders, customers, inventory, metafields, webhooks, refunds, and bulk operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khadinakbarlabs/shopify-app-builder/admin-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 khadinakbarlabs/shopify-app-builder --skill admin-graphql
Clone the repo
git clone --depth 1 https://github.com/khadinakbarlabs/shopify-app-builder

Made for: Claude Code.

Or install shopify-app-builder, the plugin that ships this one along with the rest of its 32 skills, 9 commands, 5 agents.

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 admin-graphql

README.md
[![agentmods](https://agentmods.dev/badge/skills/khadinakbarlabs/shopify-app-builder/admin-graphql.svg)](https://agentmods.dev/skills/khadinakbarlabs/shopify-app-builder/admin-graphql)
Your own site
<a href="https://agentmods.dev/skills/khadinakbarlabs/shopify-app-builder/admin-graphql"><img src="https://agentmods.dev/badge/skills/khadinakbarlabs/shopify-app-builder/admin-graphql.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00046 $0.04120
Opus 5 $0.00023 $0.02060
Sonnet 5 $0.00009 $0.00824
Haiku 4.5 $0.00005 $0.00412

Measured 7d ago against content hash 160f5dc07aa3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

admin-graphql scanned grade A with 1 finding 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 7d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(endpoint, {
skills/admin-graphql/SKILL.md · 862 lines

How it starts

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

When to Use This Skill

Use Admin GraphQL API when you need to:

  • Manage products, variants, collections, and pricing (preferred over REST for any business logic)
  • Query or modify orders, fulfillments, and refunds
  • Create or update customers and customer accounts
  • Adjust inventory across multiple locations
  • Create metafields and metaobjects for custom data
  • Set up webhooks for event subscriptions
  • Perform bulk operations on large datasets (1000+ records)
  • Access the latest Shopify features (GraphQL-only endpoints)

GraphQL vs REST comparison:

Feature GraphQL Admin REST (Deprecated)
Rate Limiting Cost-based; standard restore rate is 100 points/sec Request bucket; standard restore rate is 2 requests/sec
Pagination Cursor-based (Relay pattern) Offset/limit (deprecated)
Field Selection Precise (fetch only needed fields) Fixed response shape (wasteful)
Batch Operations Native bulk operations (JSONL) Multiple sequential requests
Latest Features Current platform features Some newer features are GraphQL-only
Status Required for new public apps Legacy since October 1, 2024

API Endpoint & Authentication

Endpoint: https://{shop}.myshopify.com/admin/api/2026-07/graphql.json

Authentication:

const headers = {
  'Content-Type': 'application/json',
  'X-Shopify-Access-Token': process.env.SHOPIFY_ACCESS_TOKEN,
};

Cost-Based Rate Limiting

Shopify uses calculated query costs. The standard GraphQL Admin API restore rate is 100 points per second; Advanced, Plus, and enterprise plans have higher rates. A single query can't exceed 1,000 requested points. Read extensions.cost.throttleStatus instead of hard-coding one bucket size.

Handling throttling:

async function executeWithRetry(query, variables, maxRetries = 3) {
  for (let attempt = 1; attempt <= maxRetries; attempt++) {
    const response = await fetch(endpoint, {
      method: 'POST',
      headers,
      body: JSON.stringify({ query, variables }),
    });

    const data = await response.json();

    if (data.errors?.some(e => e.extensions?.code === 'THROTTLED')) {
      const waitTime = Math.pow(2, attempt - 1) * 1000;
      console.log(`Throttled. Waiting ${waitTime}ms...`);
      await new Promise(resolve => setTimeout(resolve, waitTime));
      continue;
    }

    return data;
  }
  throw new Error('Max retries exceeded');
}

Read the full file on GitHub · 862 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. 7d ago First seen · 862 lines · 46 tokens per session scan A 160f5dc07aa3

Subscribe to this mod's changes

admin-graphql is a skill published in the GitHub repository khadinakbarlabs/shopify-app-builder (1 stars, last pushed 28d ago), licensed MIT. It adds 46 tokens to every session and 4,120 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.