shoplazza-discounts SKILL.md skillA

shoplazza-discounts from shoplazza/shoplazza-cli is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add shoplazza/shoplazza-cli/shoplazza-discounts@git:20261028.54fd67f

Pins git:20261028.54fd67f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shoplazza/shoplazza-cli
Path
skills/shoplazza-discounts/SKILL.md
Versions recorded
7
Latest version
git:20261028.54fd67f, committed Oct 28, 2026
First version recorded
Jun 12, 2026
Size
22,071 bytes
Repository stars
17
License
MIT

Use when the user wants to manage discount activities on a shoplazza store through the CLI — promotional campaigns, coupon codes, flash sales, buy-X-get-Y offers, rebates / tiered satisfy-N-get-M discounts, free-shipping codes, M-for-N (Nth-item-off) discounts, discount stacking / combination rules, or coupon (voucher) campaigns. Triggers include 满减 / 折扣码 / 优惠码 / 闪购 / 满X减Y. NOT gift cards (redeemable store credit → shoplazza-products `gift-cards`). NOT showing a sale inside a theme card /…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# shoplazza CLI — discounts module

**CRITICAL — before anything else, use Read on `../shoplazza-common/SKILL.md`.**
It owns every cross-cutting mechanic: the three access tiers, the output envelope (`.data`),
`--dry-run`, `--jq` (incl. "don't pass `-r`"), `--fields`, `schema`, `api rest`, auth / profiles,
and the safety protocol. This file covers only the discounts domain and never repeats them.

## Overview

The `discounts` module manages discount activities (automatic ones, and code-based ones) plus
coupon (voucher) campaigns. All three access tiers apply (tier-selection rule is in
shoplazza-common — prefer `+shortcut`).

There is **no `+update`, `+cancel`, or `+restart` shortcut** — those lifecycle ops are spec leaves.

## Command map

Intent → command. The authoritative flags/params live in `shoplazza discounts <cmd> --help`
and `shoplazza schema discounts.<cmd>`, not this table.

| User intent | Command |
|-------------|---------|
| % off (with coupon code) | `discounts +percent-code --target order\|product --percent <1-99>` |
| Fixed amount off (with coupon code) | `discounts +amount-code --target order\|product --off <amt>` |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shoplazza/shoplazza-cli/shoplazza-discounts@sha256:650e17e8867c23e0

The line at the top of this page pins the label git:20261028.54fd67f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_l6qninjfojkorhle.svg)](https://markdownregistry.com/a/art_l6qninjfojkorhle)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Jun 12, 2026 and Oct 28, 2026, about one every 23 days.

versioncommittedcommitsizeaudit
git:20261028.54fd67f latest2026-10-28 54fd67f 22,071 BA view · diff
git:20261027.d2b7fc32026-10-27 d2b7fc3 22,103 BA view · diff
git:20260924.ebcb6372026-09-24 ebcb637 21,471 BA view · diff
git:20260729.8ebe7822026-07-29 8ebe782 21,222 BA view · diff
git:20260724.843f5ea2026-07-24 843f5ea 21,192 BA view · diff
git:20260626.bb8542e2026-06-26 bb8542e 21,073 BA view · diff
git:20260612.bcc308a2026-06-12 bcc308a 18,945 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (22071 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

shoplazza/shoplazza-cli · 17 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_l6qninjfojkorhle
GET https://markdownregistry.com/api/v1/resolve?ref=shoplazza/shoplazza-cli/shoplazza-discounts
GET https://markdownregistry.com/api/v1/blob/650e17e8867c23e02cd6e77b0f5c411d169be739e5e9e35f7ff3fa3470b6bb41

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from shoplazza/shoplazza-cli

AGENTS.md AGENTS.md file
shoplazza/shoplazza-cli · AGENTS.md
git:20260917.648c301 · audit A · 17 stars
shoplazza-billing SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-billing/SKILL.md · Use when an app developer needs to bill a Shoplazza merchant for app usage through the CLI — one-time application…
git:20261028.54fd67f · audit A · 17 stars
shoplazza-common SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-common/SKILL.md · Shared foundation for the shoplazza CLI: installing the CLI (安装 CLI / command not found), authentication (auth login —…
git:20261028.4d86020 · audit B · 17 stars
shoplazza-customers SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-customers/SKILL.md · Use when the user wants to manage customers (buyers) on a shoplazza store through the CLI — create a customer profile…
git:20261028.54fd67f · audit A · 17 stars
shoplazza-orders SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-orders/SKILL.md · Use when the user wants to manage a shoplazza store's orders through the CLI — searching / counting / viewing orders…
git:20261028.54fd67f · audit A · 17 stars
shoplazza-products SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-products/SKILL.md · Use when the user wants to manage a shoplazza store's product catalog through the CLI — creating / publishing /…
git:20261028.54fd67f · audit A · 17 stars
shoplazza-shop SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-shop/SKILL.md · Store-level config & content for a shoplazza store — use for: shop info / settings (店铺信息 / 店铺设置 / 主域名 / 币种 / 客服邮箱 /…
git:20261028.54fd67f · audit A · 17 stars
shoplazza-themes SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-themes/SKILL.md · Store theme operations for a shoplazza store — use when the user works on the store's themes through the CLI: page &…
git:20261028.54fd67f · audit A · 17 stars
shoplazza-webhook SKILL.md skill
shoplazza/shoplazza-cli · skills/shoplazza-webhook/SKILL.md · Use when an app developer needs to manage webhook subscriptions on a Shoplazza store through the CLI — subscribe to…
git:20261028.54fd67f · audit A · 17 stars

Every file in shoplazza/shoplazza-cli

Browse by kind, by grade A, or by owner.