shopify-admin-compare-at-price-cleanup

Installation
SKILL.md

Purpose

Identifies variants with a compareAtPrice that no longer represents a genuine discount and clears it, so storefront strikethrough pricing reflects real savings rather than legacy noise. Two conditions are flagged: (a) compareAtPrice <= price (no discount, often left over from a price increase), and (b) compareAtPrice set for longer than max_age_days (stale "always on sale" optics that hurt long-term price perception and can violate advertising standards in some regions). Defaults to dry-run.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_products,write_products
  • API scopes: read_products, write_products

Parameters

Parameter Type Required Default Description
store string yes Store domain (e.g., mystore.myshopify.com)
dry_run bool no true Preview the cleanup without executing mutations
clean_no_discount bool no true Clear compareAtPrice when price >= compareAtPrice
clean_stale bool no true Clear compareAtPrice set longer than max_age_days
max_age_days integer no 90 Age threshold in days for the stale rule (uses variant updatedAt as proxy)
collection_id string no Optional collection GID to scope the cleanup
tag_filter string no Optional product tag to scope the cleanup
format string no human Output format: human or json
Installs
2
GitHub Stars
182
First Seen
Jun 2, 2026
shopify-admin-compare-at-price-cleanup — 40rty-ai/shopify-admin-skills