Shopify Admin Discount Hygiene Cleanup
Finds expired, zero-usage, or duplicate discount codes and optionally deactivates or deletes them.
Install
/plugin marketplace add 40RTY-ai/shopify-admin-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-discount-hygiene-cleanupgit clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skills.git /tmp/shopify-admin-skills
mkdir -p ~/.claude/skills
cp -r /tmp/shopify-admin-skills/skills/store-management/shopify-admin-discount-hygiene-cleanup ~/.claude/skills/shopify-admin-discount-hygiene-cleanupPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
## Purpose Audits the discount catalog for expired codes, codes with zero redemptions, and duplicate code prefixes. Discount sprawl accumulates over months of campaigns and makes the admin difficult to navigate. Optionally deletes flagged codes. Replaces manual discount cleanup and builds on the `discount-ab-analysis` skill with a write step. ## Prerequisites - Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_discounts,write_discounts` - API scopes: `read_discounts`, `write_discounts` ## Parameters | Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | store | string | yes | — | Store domain (e.g., mystore.myshopify.com) | | flag_expired | bool | no | true | Flag/delete discounts past their end date | | flag_zero_usage | bool | no | true | Flag/delete discounts with 0 redemptions older than N days | | zero_usage_min_age_days | integer | no | 30 | Age threshold for zero-usage flags | | dry_run | bool | no | true | Preview without executing mutations | | format | string | no | human | Output format: `human` or `json` | ## Safety > ⚠️ `discountCodeDelete` permanently removes discount codes. Deleted codes cannot be recovered. Customers who received a deleted code will find it invalid. Run with `dry_run: true` to review the flagged list before committing. Always check that expired codes are not referenced in active email campaigns before deleting. ## Workflow Steps
Details
- Skill name
shopify-admin-discount-hygiene-cleanup- Repository
- 40RTY-ai/shopify-admin-skills
- Path
skills/store-management/shopify-admin-discount-hygiene-cleanup/SKILL.md- License
- MIT
- Repo updated
- 26 October 2026
FAQ
What does the Shopify Admin Discount Hygiene Cleanup skill do?
Finds expired, zero-usage, or duplicate discount codes and optionally deactivates or deletes them.
How do I install the Shopify Admin Discount Hygiene Cleanup skill?
Claude Code plugin: /plugin marketplace add 40RTY-ai/shopify-admin-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Shopify Admin Discount Hygiene Cleanup popular?
It lives in 40RTY-ai/shopify-admin-skills, which has 204 GitHub stars and 23 forks.
Related skills
Shopify Admin Abandoned Cart Recovery
20440RTY-ai/shopify-admin-skills
Query checkouts abandoned in the last N days, generate unique discount codes per customer, and tag them for re-engagement.
Shopify Admin Address Correction
20440RTY-ai/shopify-admin-skills
Update the shipping address on an unfulfilled order before it ships.
Shopify Admin Agentic Crawler Access
20440RTY-ai/shopify-admin-skills
Edit the theme's robots.txt.liquid to explicitly allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot, Amazonbot) so AI assistants are permitted to read the catalog.
Shopify Admin Discount Roi Calculator
20440RTY-ai/shopify-admin-skills
Read-only: calculates the true ROI of each discount code and automatic discount by comparing incremental revenue against discount cost.
Shopify Admin Discount Cost Trend
20440RTY-ai/shopify-admin-skills
Read-only: tracks total discount dollars given over configurable time buckets (week/month/quarter), broken down by discount type and code.
Shopify Admin Draft Order Cleanup
20440RTY-ai/shopify-admin-skills
Finds stale draft orders older than N days and optionally deletes them to reduce admin clutter.
Browse the most popular Claude skills, all marketing, sales & business skills, or write your own with the skills generator.