return-reason-analysis

Installation
SKILL.md

Purpose

Queries all return requests within a date window and aggregates them by return reason code, product, and SKU. Surfaces which products have the highest return rates and which reasons (wrong size, damaged, not as described, etc.) are most common. 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 requests
min_returns integer no 3 Minimum returns per product to include in output
format string no human Output format: human or json

Safety

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

Related skills
Installs
1
GitHub Stars
139
First Seen
Apr 12, 2026