shopify-admin-discount-hygiene-cleanup

shopify-admin-discount-hygiene-cleanup is a skill for Claude Code from 40RTY-ai/shopify-admin-skills. It costs 32 tokens per session (1,468 once invoked), scanned A, original, MIT.

A Shopify discount-code audit that finds expired codes, unused codes, and duplicate code prefixes, with an option to deactivate or delete flagged codes.

In plain words
What is it for?
Use it to review discount-code clutter, identify codes that are no longer useful, and optionally remove them after checking the results.
Why use it?
Old and unused discounts make the store harder to manage and can leave unnecessary codes in the catalog. Deletion changes store data, so the audit supports a preview mode first.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

Part of the shopify-admin-skills plugin — 117 skills shipped together

Good fit Use it to review discount-code clutter, identify codes that are no longer useful, and optionally remove them after checking the results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-discount-hygiene-cleanup
Clone the repo
git clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skills

Made for: Claude Code.

Or install shopify-admin-skills, the plugin that ships this one along with the rest of its 117 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shopify-admin-discount-hygiene-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup/github.svg)](https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup)
Your own site
<a href="https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup"><img src="https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shopify-admin-discount-hygiene-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup"><img src="https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-discount-hygiene-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01468
Opus 5.5 $0.00013 $0.00587
Sonnet 5.5 $0.00006 $0.00294
Haiku 4.5 $0.00003 $0.00147

Measured 12d ago against content hash 0e322b476e72, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shopify-admin-discount-hygiene-cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/store-management/shopify-admin-discount-hygiene-cleanup/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. OPERATION: discountNodes — query Inputs: first: 250, select discount { ... on DiscountCodeBasic { codes, usageLimit, asyncUsageCount, endsAt, status } }, pagination cursor Expected output: All discount codes with usage and expiry data; paginate until hasNextPage: false

  2. Flag discounts matching: flag_expired (status = EXPIRED) and/or flag_zero_usage (asyncUsageCount == 0 AND created > zero_usage_min_age_days ago)

  3. OPERATION: discountCodeDelete — mutation Inputs: id: <discount_node_id> Expected output: deletedCodeDiscountId, userErrors

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 186 lines · 32 tokens per session scan A 0e322b476e72

Subscribe to this mod's changes

shopify-admin-discount-hygiene-cleanup is a skill published in the GitHub repository 40RTY-ai/shopify-admin-skills (200 stars, last pushed 7d ago), licensed MIT. It adds 32 tokens to every session and 1,468 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

Other skills, from other repositories

prismer-product-price-monitor

Watch product, flight, or listing prices; alert on target.

Prismer-AI/PrismerCloud · 19 tokens

parcel-tracking

Track parcels and check delivery status for Australian and international couriers. Searches Gmail for dispatch/shipping emails and provides tracking links for all major Australian couriers including AusPost, StarTrack, Aramex, CouriersPlease, Sendle, Toll, Team Global Express, DHL, FedEx, TNT, Hunter Express, Border…

jezweb/claude-skills · 112 tokens

snack-batching

Weekly snack-request batching for {{officechannel}}. Collects Slack shortcut submissions since the last order, consolidates duplicates and standing staples, builds a cart against {{preferredvendor}} within {{weeklybudget}}, and posts it for the office manager to approve before anything is placed.

kortix-ai/suna · 59 tokens

run-campaign

Builds a 7-day SMB campaign kit: one offer with value, deadline, and an honest reason-why; channels picked from what the owner already has (email list, socials, storefront, partners); a day-by-day calendar; every asset drafted (three emails, three social posts, flyer copy); a simple spend/leads/sales tracking sheet…

alebgl77/claude-inc · 0 tokens

post-merge-cleanup

Clean up an already-merged local branch after proving containment. Confirm each discard and preserve unique work.

arbiterForge/codeArbiter · 26 tokens

workflow-assistant

A workflow skill for handling multi-step tasks that connect different business areas and may require combined analysis. Its documented workflows include reviewing orders, creating orders, shipping, confirming receipt, and exporting data.

infometa/workbuddyskills · 277 tokens