shopify-admin-discount-cost-trend

Installation
SKILL.md

Purpose

Tracks how much money the store gave away in discounts over time, bucketed by week, month, or quarter, and broken down by discount code and discount type (percentage / fixed amount / free shipping / automatic). Answers: "is our discount spend trending up or down, and which campaigns are driving it?" Read-only — no mutations. Complements discount-roi-calculator (per-discount return) with a longitudinal view of total cost.

Prerequisites

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

Parameters

Parameter Type Required Default Description
store string yes Store domain (e.g., mystore.myshopify.com)
period string no month Bucket size: week, month, or quarter
periods_back integer no 12 Number of buckets to report
top_codes integer no 10 Top discount codes to break out individually; remainder grouped as other
include_shipping_discounts bool no true Whether to count shipping discounts in the totals
format string no human Output format: human or json

Safety

Installs
2
GitHub Stars
182
First Seen
Jun 2, 2026
shopify-admin-discount-cost-trend — 40rty-ai/shopify-admin-skills