shopify-partner-agent CLAUDE.md

shopify-partner-agent CLAUDE.md is an instructions file for Claude Code from rushikeshmore/shopify-partner-agent. It costs 738 tokens per session, scanned A, original, MIT.

Repository instructions for a Shopify Partner MCP server, which lets Claude query Shopify's GraphQL API for app, merchant, revenue, and customer data. GraphQL is a way to request specific data from an API.

In plain words
What is it for?
Use them when working on Shopify data queries, pagination, rate limits, revenue metrics, churn, merchant analysis, or forecasting.
Why use it?
They document the server's structure, available tools, analytics, and API details so changes can be made with the full system context.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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.

agentmods
npx agentmods add instructions/rushikeshmore/shopify-partner-agent/claude-md
Clone the repo
git clone --depth 1 https://github.com/rushikeshmore/shopify-partner-agent

Made for: Claude Code.

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-partner-agent CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rushikeshmore/shopify-partner-agent/claude-md.svg)](https://agentmods.dev/instructions/rushikeshmore/shopify-partner-agent/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rushikeshmore/shopify-partner-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/rushikeshmore/shopify-partner-agent/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 738 This file is loaded in full into every session.
When invoked 738 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00738 $0.00738
Opus 5 $0.00369 $0.00369
Sonnet 5 $0.00148 $0.00148
Haiku 4.5 $0.00074 $0.00074

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

Security

Grade A, and why

shopify-partner-agent CLAUDE.md 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.

CLAUDE.md · 62 lines

How it starts

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

Shopify Partner Agent -- MCP Server

What This Is

MCP server that connects Claude to the Shopify Partner GraphQL API. Gives Claude access to app analytics, revenue metrics, churn data, and merchant info via natural language.

Architecture

server.py           -- FastMCP, 25 @mcp.tool() definitions
shopify_partner.py  -- ShopifyPartnerClient (async GraphQL + pagination + rate limiting)
queries.py          -- GraphQL query string constants
analytics.py        -- Pure computation functions (MRR, churn, ARPU, cohorts, anomalies)

25 MCP Tools

Core Data (5): discover_apps, get_app_details, get_app_events, get_transactions, get_merchants

Revenue Analytics (4): get_revenue_summary, get_mrr_movement, get_payout_report, get_plan_performance

Customer Analytics (4): get_churn_analysis, get_retention_cohorts, get_customer_ltv, get_churned_merchants

Growth & Forecasting (6): get_trial_funnel, get_growth_velocity, get_install_patterns, get_revenue_forecast, get_referral_revenue, get_credits_adjustments

Merchant Intelligence (4): get_churn_risk, get_merchant_health, get_merchant_lookup, get_business_digest

Multi-App (2): get_revenue_anomalies, get_app_comparison

API Details

  • Endpoint: POST https://partners.shopify.com/{org_id}/api/2026-01/graphql.json
  • Auth: Static token via X-Shopify-Access-Token header
  • Rate limit: 4 req/sec (0.3s sleep between requests)
  • Read-only -- no mutations

Key Constraints

  • No apps query -- discover from transactions or configure in .env
  • App IDs must be GID format: gid://partners/App/1234
  • Financial amounts are string decimals -- use Decimal for math
  • billingInterval can be EVERY_30_DAYS or ANNUAL -- divide annual by 12 for MRR
  • GraphQL can return HTTP 200 with errors in body -- check both
  • MRR is event-aware when app_id is provided: uses install/uninstall/freeze events to determine active merchants, then sums their latest subscription amounts. Falls back to charge-based when events=None.

Read the full file on GitHub · 62 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 · 62 lines · 738 tokens per session scan A 0a95ee3a34eb

Subscribe to this mod's changes

shopify-partner-agent CLAUDE.md is an instructions file published in the GitHub repository rushikeshmore/shopify-partner-agent (13 stars, last pushed 4mo ago), licensed MIT. It adds 738 tokens to every session, about $0.0037 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-08-30.