AI Blocks › Build and ship software
Store rules builder
Say the discount, shipping or payment rule you want. Get a working Shopify Function that runs it.
Store rules builder is a free AI skill for the job "Build and ship software". 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 dragnoir · Level: expert · Thinking: high
Made by dragnoir. See the original on GitHub; we copied it as it is, with its licence.
What it does
A custom rule for your Shopify checkout, written as working code. Say what you want in plain words, like 10 percent off when a cart has three of a product, hide a shipping option for large orders or block checkout for a bad cart, and get a Shopify Function that runs it. Functions are small programs that run on Shopify's servers in milliseconds. The skill covers the main types: discounts, delivery options, payment method rules, cart and checkout checks and order routing. It sets up the app, writes the logic in Rust or JavaScript and explains how to test it. You need Shopify CLI, a Partner account and some comfort with code.
You give it
- The rule in plain words
- Which part of checkout it affects
- A Shopify Partner account and CLI
- Your language choice, Rust or JavaScript (optional)
You get
- A working Shopify Function project
- The rule logic in code
- Setup and deploy steps
- Test cases to try
Use it when
- You want a discount rule Shopify's built-in options cannot do.
- You need to hide or rename shipping choices for certain carts.
- You want to remove a payment method for large orders.
- You need to stop checkout when a cart breaks a rule.
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 run code and use the Shopify CLI.