shopify-partner-agent: Instructions file for Claude Code

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.

This is rushikeshmore/shopify-partner-agent's own configuration. It tells Claude Code how to work on shopify-partner-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything shopify-partner-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rushikeshmore/shopify-partner-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rushikeshmore/shopify-partner-agent/main/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/github.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/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-partner-agent CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00738 $0.00738
Opus 5.5 $0.00295 $0.00295
Sonnet 5.5 $0.00148 $0.00148
Haiku 4.5 $0.00074 $0.00074

Measured 2mo ago against content hash 0a95ee3a34eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (14 stars, last pushed 6mo ago), licensed MIT. It adds 738 tokens to every session, about $0.0030 per session on Opus 5.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.

Related

shopify-partner-agent CLAUDE.md compared with instructions from other repositories

shopify-partner-agent CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shopify-partner-agent CLAUDE.mdrushikeshmore/shopify-partner-agentInstructions file146mo agoMITA738Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode