/gomarble:shopify-order-disciplinefrom GoMarble
Guides Shopify order queries for dashboard reconciliation: no financial_status filter, gross vs net revenue, timestamp fields, refunds, multi-currency, and checkout session source of truth.
Ships in GoMarble. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Outside the GoMarble app. This methodology is GoMarble's own, kept in sync with the GoMarble connector.
- GoMarble connector tools for this skill:
shopify_list_shops,shopify_run_analytics_query,shopify_list_orders_by_query,shopify_list_products_by_query,shopify_list_customers_by_query,shopify_get_all_details_by_gid.
Before any Shopify order / revenue or checkout/session funnel query goes to the user:
financial_status filter. Shopify's "Total orders" / "Gross sales" tile counts ALL statuses (pending, authorized, partially_paid, paid, partially_refunded, refunded, voided). Adding financial_status:paid agent-side silently excludes pending + partially-paid orders and produces a number the merchant cannot reconcile against their dashboard.created_at (order created) vs processed_at (payment processed) can differ by hours. Orders placed near midnight UTC may roll to the next day in the merchant's local timezone.shopify_run_analytics_query with dataset="sessions" and metric sessions_that_reached_checkout.read_reports, state that Shopify checkout/session metrics cannot be verified with current permissions. GA4 begin_checkout / checkouts can only be used as a clearly labeled proxy.shopify_list_orders_by_query, order counts, and revenue are completed-purchase/order data. They are not a fallback for checkout starts or checkout sessions.For requests about checkout sessions, sessions reaching checkout, checkout-session decline, cart-to-checkout dropoff, checkout funnel, session decline tied to checkout, or regional checkout sessions such as Ontario checkout sessions, Shopify sessions analytics is the primary source of truth when Shopify is connected.
Use shopify_run_analytics_query before substituting another source:
sessionssessions, sessions_with_cart_additions, sessions_that_reached_checkout, sessions_that_completed_checkout, conversion_ratesession_country, session_region, session_city, referrer_source, utm_source, utm_medium, utm_campaigntimeseries: "day" or timeseries: "week" and explicit start_date / end_datehuman_or_bot_session IN ('human', 'bot')If ShopifyQL fails because read_reports is missing, say exactly that Shopify checkout/session metrics cannot be verified with the current Shopify permissions. You may use GA4 begin_checkout, GA4 checkouts, or GA4 funnel reports only as a labeled proxy, not as Shopify checkout sessions.
Never use Shopify orders, order counts, revenue, or shopify_list_orders_by_query as a fallback for checkout sessions. Orders represent completed order records; they do not measure sessions that reached checkout.
financial_status Filter By Default| Status | Meaning | In "Total orders" tile |
|---|---|---|
pending | Order placed, payment not captured | YES |
authorized | Payment authorized, not captured | YES |
partially_paid | Partial payment received | YES |
paid | Full payment captured | YES |
partially_refunded | Order kept; partial refund issued | YES (full original stays in gross) |
refunded | Order fully refunded | YES (in gross; net subtracts the refund) |
voided | Order voided | Typically excluded |
financial_status filter. Result should match the merchant's "Total orders" / "Gross sales" tile.financial_status:paid ONLY when the user explicitly says "paid only" / "captured payments only" / "exclude pending".Forbidden (without explicit user request): query="created_at:>={start} AND created_at:<={end} financial_status:paid" · any agent-authored exclusion of pending / partially-paid / refunded statuses.
| Concept | Definition | Where it shows up |
|---|---|---|
| Gross sales | line items × qty (before discounts, refunds) | "Gross sales" tile · API total_line_items_price |
| Net sales | gross − discounts − refunds | "Net sales" tile |
| Total sales | net + shipping + taxes | "Total sales" tile · API total_price |
3rd-party MTAs (Cosmise, Triple Whale, Northbeam, Wicked Reports, Lifetimely, Profitmetrics, Hyros, Rockerbox) typically report a NET-style figure.
{tool} shows {X} for revenue" and your number differs, FIRST hypothesis is gross-vs-net (or refund timing), not "tracking is broken".total_price for {X} gross; if {tool} shows net (after refunds), the gap is likely the partially-refunded portion."created_at vs processed_at| Field | Meaning |
|---|---|
created_at | When the order was created in Shopify |
processed_at | When payment was processed / order moved out of pending |
Usually within minutes. Late-night UTC orders or delayed-capture gateways (Klarna, AfterPay batch overnight) can shift dates by a day.
created_at:>={start} AND created_at:<={end} in shop timezone {tz}."created_at vs processed_at near the period boundary.{month}", confirm: orders CREATED in that month, or orders PROCESSED in that month?| Status | What happened | How to count |
|---|---|---|
partially_refunded | Order kept, partial refund issued | Stays in count; gross stays in gross. Refunded $$ is in refunds[].transactions[] |
refunded | Order fully refunded | Stays in count; gross stays in gross. Net subtracts entirely. |
refunds[].transactions[] has per-order refund amounts.Shops can have a base currency AND orders denominated in other currencies. total_price is in the order's own currency; total_price_set.shop_money.amount is in the shop's base currency.
total_price_set.shop_money.amount.{CCY}."When the user disputes your number with "shopify said {X}" / "my dashboard shows {X}" / "in Shopify it's {X}":
financial_status filter (Rule 1) and the right revenue field (Rule 2).financial_status:paid filter (which I had added) returns {X}, matching your dashboard."Default order count for a window — user disputes
❌ query="created_at:>={start} AND created_at:<={end} financial_status:paid" → {N1} orders. (User: "shopify said {N2}".) Then: "The gap is Meta + Google attribution overlap."
✅ query="created_at:>={start} AND created_at:<={end}" (no financial_status) → {N2} orders. "For {period} (shop tz {tz}): {N2} orders, {gross} gross sales. Includes pending, partially_paid, paid, partially_refunded — same scope as your Total Orders tile."
MTA shows lower gross than your Shopify number
❌ "4-hypothesis discrepancy: date logic, refund timing, status filter, timezone." (Zero tool calls.)
✅ Re-pull Shopify with refund handling explicit. Then: "Shopify net (gross minus refunds within the period): {net} — matches {tool}'s {X} within rounding. My earlier {gross} was gross (before refunds). The gap is {N} fully-refunded orders + the refunded portions of {M} partially-refunded orders."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
62 skills in this plugin
/access-and-permissionsUse when a GoMarble tool is denied or the user asks about access: 'I don't have access to this account', account_access_denied, a scope or permission upgrade (606), read-only connections, plan limits (403 / 600), the TikTok beta, agent permissions, or team roles. Explains GoMarble's role-based access control (owner, admin, member; View vs Act per account; OAuth scopes), tells the user exactly who can fix it and where, and never tries to work around a denial./accounts-and-connectionsUse when the user wants to see, add, enable, remove or switch ad accounts and data sources in GoMarble: which accounts are connected, adding a new ad account, connecting a platform (Meta, Google, TikTok, LinkedIn, Microsoft Ads, GA4, Search Console, Shopify, Klaviyo, Snowflake, impact.com, Pages, Instagram), connecting other tools like HubSpot, Notion or BigQuery, connecting Slack for agents, switching a connection between read-only and read & write, fixing expired connections, or removing an account./ad-brief-generatorTurn ranked creative directions (from winning-pattern-synthesis, or any selected evidence-backed angle/hook) into shoot-ready UGC/creator briefs — hook line, shot list, VO/copy direction, and CTA. Use whenever the user asks for a creator brief, script, shot list, or says a direction is ready to hand off for production. This is the final production-facing output of the winning-ads pack.npx claudepluginhub gomarble-ai/marketing-agent --plugin gomarbleOther plugins' skills for the same job