AI Blocks › Run your online store
Discount code comparer
Name two or more discount codes. Get redemption and revenue side by side, so you know which one earned more.
Discount code comparer 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
A side-by-side look at two or more Shopify discount codes, showing how often each was used and how much revenue each brought in. You find out which offer really earned its place. Give it the store domain, the codes to compare and a date range. The skill reads each code's details, such as status and dates, then pulls every order that used it in that period. It adds up redemptions and revenue per code and sets the results next to each other. It only reads data and changes nothing in the store. It needs a signed-in Shopify CLI session with permission to read discounts and orders. Results can be shown as a readable table or as JSON.
You give it
- Your Shopify store domain
- Two or more discount codes
- Start and end dates
- A signed-in Shopify CLI with read access
- Output format: table or JSON (optional)
You get
- Redemption counts per code
- Revenue per code
- A side-by-side comparison
- A note on which code performed best
Use it when
- You ran SAVE10 and WELCOME15 and want to know which one worked better.
- You are choosing which promotion to repeat next month.
- A partner code needs to be compared with your own.
- You want numbers to settle an argument about a discount.
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.