shopify-admin-exchange-vs-refund-ratio

shopify-admin-exchange-vs-refund-ratio is a skill for Claude Code from 40RTY-ai/shopify-admin-skills. It costs 35 tokens per session (1,497 once invoked), scanned A, original, MIT.

A Shopify report that compares returns resolved as exchanges, store credit, or refunds. It calculates how much revenue is retained, delayed, or lost through each outcome.

In plain words
What is it for?
Use it to track revenue recovery and compare whether returns are more often exchanged, converted to store credit, or refunded.
Why use it?
It makes the financial effect of different return resolutions visible instead of counting all returns alike. It can also compare the result with an earlier period.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

Part of the shopify-admin-skills plugin — 117 skills shipped together

Good fit Use it to track revenue recovery and compare whether returns are more often exchanged, converted to store credit, or refunded.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio
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 40RTY-ai/shopify-admin-skills --skill shopify-admin-exchange-vs-refund-ratio
Clone the repo
git clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skills

Made for: Claude Code.

Or install shopify-admin-skills, the plugin that ships this one along with the rest of its 117 skills.

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-exchange-vs-refund-ratio

README.md
[![agentmods](https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio/github.svg)](https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio)
Your own site
<a href="https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio"><img src="https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio/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-exchange-vs-refund-ratio

Your own site · 80×15
<a href="https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio"><img src="https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-exchange-vs-refund-ratio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,497 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.00035 $0.01497
Opus 5.5 $0.00014 $0.00599
Sonnet 5.5 $0.00007 $0.00299
Haiku 4.5 $0.00003 $0.00150

Measured 8d ago against content hash 83c84b18cfb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shopify-admin-exchange-vs-refund-ratio 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 8d 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/returns/shopify-admin-exchange-vs-refund-ratio/SKILL.md · 200 lines

How it starts

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

Purpose

Analyzes return resolutions to calculate the split between exchanges (revenue retained), store credit (revenue deferred), and refunds (revenue lost). Tracks this as a revenue recovery metric over time. Read-only — no mutations.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_orders,read_returns
  • API scopes: read_orders, read_returns

Parameters

Parameter Type Required Default Description
store string yes — Store domain (e.g., mystore.myshopify.com)
days_back integer no 30 Lookback window for return resolutions
compare_days_back integer no 0 Optional prior period for comparison (0 = no comparison)
format string no human Output format: human or json

Safety

ℹ️ Read-only skill — no mutations are executed. Safe to run at any time.

Workflow Steps

  1. OPERATION: returns — query Inputs: query: "created_at:>='<NOW - days_back days>'", first: 250, pagination cursor Expected output: Returns with refunds { totalRefundedSet }, exchangeLineItems, and resolution status

  2. Categorize each return resolution:

    • Exchange: return has exchangeLineItems with quantity > 0
    • Store credit: return has refunds with gift card or store credit payment
    • Refund: return has cash/card refund with no exchange
  3. OPERATION: orders — query (if compare_days_back > 0) Inputs: Same logic for prior period to compute trend

GraphQL Operations

# returns:query — validated against api_version 2025-01
query ReturnResolutions($query: String!, $after: String) {
  returns(first: 250, after: $after, query: $query) {
    edges {
      node {
        id
        status
        createdAt
        totalQuantity
        order {
          id
          name
        }
        exchangeLineItems(first: 10) {
          edges {
            node {
              id
              quantity
              lineItem {
                variant {
                  id
                  title
                }
              }
            }
          }
        }
        refunds(first: 5) {
          id
          totalRefundedSet {
            shopMoney {
              amount
              currencyCode
            }
          }
        }
        returnLineItems(first: 20) {
          edges {
            node {
              refundableQuantity
              returnReason
            }
          }
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Read the full file on GitHub · 200 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. 8d ago First seen · 200 lines · 35 tokens per session scan A 83c84b18cfb9

Subscribe to this mod's changes

shopify-admin-exchange-vs-refund-ratio is a skill published in the GitHub repository 40RTY-ai/shopify-admin-skills (198 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 1,497 once invoked, about $0.0001 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-10-13.

Related

Other skills, from other repositories

asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rorkai/app-store-connect-cli-skills · 45 tokens

snaplii-cli

Snaplii for Claude: buy discounted gift cards across 500+ brands with vouchers and up to 10% cashback, check the Snaplii Cash balance, pay bills (Canada) and send money to a phone number, through the snaplii MCP tools or the snaplii CLI, spending only the user's prepaid Snaplii Cash within the spending limit they set.…

Snaplii-Inc/agent-to-merchant-payments · 178 tokens

stripe-payments

Add Stripe payments to a web app — Checkout Sessions, Payment Intents, subscriptions, webhooks, customer portal, and pricing pages. Covers the decision of which Stripe API to use, produces working integration code, and handles webhook verification. No MCP server needed — uses Stripe npm package directly. Triggers…

jezweb/claude-skills · 101 tokens

stripe

Stripe API integration with managed OAuth. Manage customers, subscriptions, invoices, products, prices, and payments. Use this skill when users want to process payments, manage billing, or handle subscriptions with Stripe. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).…

CraftOS-dev/CraftBot · 79 tokens

ai-slop

Operational rubric that turns "don't make AI slop" into observable properties, severity levels, evidence requirements, and repair actions for interface design. Use as the reference rubric when building or reviewing marketing sites, product interfaces, dashboards, portfolios, or e-commerce pages, especially alongside…

waybarrios/opencode-power-pack · 61 tokens

stripe

Read Stripe account state from a terminal or agent: balance, payment intents, and subscriptions — and perform guarded mutations like canceling a subscription — backed by a bundled stripe-cli script that is read-only first and gates every state-changing command behind a --dry-run/--yes confirmation. Use when an agent…

magnus919/agent-skills · 116 tokens