AI Blocks › Run your online store
Variant sales ranker
Get every size and color ranked by sales, units and refunds, with stock, to spot top sellers and dead weight.
Variant sales ranker is a free AI skill for the job "Run your online store". Give the instructions to an AI assistant that supports the required files and tools, then review its output.
Free · No account · MIT licence · Made by 40rty AI
Made by 40rty AI. See the original on GitHub; we copied it as it is, with its licence.
What it does
Know which exact sizes and colors make your money and which sit on the shelf. Each variant is ranked by revenue, units sold and refund rate, then set beside the stock you have left. You give a start and end date. The skill reads your orders for that period and totals sales and refunds for each variant, not just each product. It then pulls current inventory for the same variants and puts the two side by side. You choose how to rank: by revenue, units or refund rate. The output makes it easy to spot a best seller about to run out and a slow one tying up cash. It only reads data.
You give it
- Your store domain
- A start and end date
- The ranking you want: revenue, units or refund rate
- A Shopify login with read access to orders and products
You get
- Variants ranked by your chosen measure
- Refund rates per variant
- Current stock next to sales
- Lists of top performers and dead weight
Use it when
- You are deciding how many of each size to reorder.
- You suspect one color is returned far more than the rest.
- You want to clear slow stock before the next season.
- Your best-selling variant might be running low and you need to check.
How to use it
- Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
- Ask for the job in your own words. Your AI opens the skill when it fits.
- It works best when your AI can access your Shopify admin (read only).