shopify-admin-profit-margin-calculator

Installation
SKILL.md

Purpose

Calculates true net profit and margin at both order-level and product-level granularity. Unlike basic revenue reports, this skill deducts all cost components — COGS (from inventoryItem.unitCost), shipping costs, transaction/payment processing fees, applied discounts, refund amounts, and duties/taxes — to surface actual margin percentages. Read-only — no mutations.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_orders,read_products,read_inventory
  • API scopes: read_orders, read_products, read_inventory
  • For accurate results, products should have inventoryItem.unitCost populated

Parameters

Parameter Type Required Default Description
store string yes Store domain (e.g., mystore.myshopify.com)
days_back integer no 30 Lookback window for orders
group_by string no order Grouping: order, product, or variant
min_orders integer no 1 Minimum orders for a product to appear (product/variant mode)
include_refunded boolean no true Include fully refunded orders in calculation
format string no human Output format: human or json
Installs
2
GitHub Stars
182
First Seen
Jun 2, 2026
shopify-admin-profit-margin-calculator — 40rty-ai/shopify-admin-skills