shopify-admin-api

shopify-admin-api is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 30 tokens per session (2,495 once invoked), scanned A, original, MIT.

A guide to automating Shopify store operations through the Admin API, Shopify’s management interface for products, orders, inventory, customers, and related data. It includes GraphQL queries and bulk operations for large data transfers.

In plain words
What is it for?
Use it to sync catalogs with warehouses or CRMs, update inventory, manage orders, and import or export large amounts of store data.
Why use it?
It removes repetitive manual work and avoids building separate integrations for each store-management task.

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 Use it to sync catalogs with warehouses or CRMs, update inventory, manage orders, and import or export large amounts of store data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api
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 shopify-admin-api
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 shopify-admin-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api/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 shopify-admin-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/shopify-admin-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,495 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.00030 $0.02495
Opus 5 $0.00015 $0.01247
Sonnet 5 $0.00006 $0.00499
Haiku 4.5 $0.00003 $0.00249

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

Security

Grade A, and why

shopify-admin-api 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 6d 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-shopify/shopify-admin-api/SKILL.md · 332 lines

How it starts

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

Shopify Admin API

Overview

The Shopify Admin API gives apps full access to a merchant's store data — products, variants, orders, customers, inventory, metafields, and more. It is available in both GraphQL (recommended) and REST flavors, with GraphQL offering precise field selection, bulk operations, and better rate limiting via the calculated cost system. Use the @shopify/shopify-api Node.js library or direct HTTP calls with an Admin API access token.

When to Use This Skill

  • When reading or writing product catalog data (titles, variants, pricing, images, inventory)
  • When fulfilling or updating orders programmatically from an external system
  • When syncing customer records between Shopify and a CRM or ERP
  • When running bulk data exports or imports using Bulk Operations
  • When building an internal tool that needs merchant store access via a Custom App token
  • When automating inventory adjustments from a warehouse management system

Core Instructions

  1. Obtain an Admin API access token

    For a custom app (single store), create it in Admin → Settings → Apps and Sales Channels → Develop apps. For a public/partner app, the token is obtained after OAuth (see @shopify-app-development).

    # .env
    SHOPIFY_ADMIN_API_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    SHOPIFY_SHOP=mystore.myshopify.com
    SHOPIFY_API_VERSION=2025-01
    
  2. Initialize the Admin API client

    // lib/shopify-admin.ts
    import { shopifyApi, ApiVersion, Session } from "@shopify/shopify-api";
    import "@shopify/shopify-api/adapters/node";
    
    const shopify = shopifyApi({
      apiKey: process.env.SHOPIFY_API_KEY!,
      apiSecretKey: process.env.SHOPIFY_API_SECRET!,
      scopes: ["read_products", "write_products", "read_orders", "write_orders"],
      hostName: process.env.SHOPIFY_APP_URL!,
      apiVersion: ApiVersion.January25,
      isEmbeddedApp: false, // true for merchant-facing embedded apps
    });
    
    // For custom apps with a static token
    const session = new Session({
      id: `offline_${process.env.SHOPIFY_SHOP}`,
      shop: process.env.SHOPIFY_SHOP!,
      state: "",
      isOnline: false,
      accessToken: process.env.SHOPIFY_ADMIN_API_TOKEN,
    });
    
    export const adminClient = new shopify.clients.Graphql({ session });
    export const restClient = new shopify.clients.Rest({ session });
    

Read the full file on GitHub · 332 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. 6d ago First seen · 332 lines · 30 tokens per session scan A c45704b44e26

Subscribe to this mod's changes

shopify-admin-api is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 30 tokens to every session and 2,495 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