Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

coupon-management

БесплатноБез исполняемых скриптовНе проверен

Build a coupon system with percentage and fixed discounts, usage limits per customer, expiration dates, and bulk unique-code generation

finsilabsот finsilabs★ 69 звёзд на GitHub

Об этом скилле

Coupon Management

Overview

Coupon systems let merchants create promotional codes with configurable rules: percentage or fixed-amount discounts, minimum order requirements, usage limits per coupon or per customer, and expiration dates. Every major e-commerce platform includes a built-in coupon system — you almost never need to build one from scratch. This skill walks you through setting up coupon management on each platform and explains when to reach for an app or plugin for advanced requirements like bulk unique codes or campaign tracking.

When to Use This Skill

  • When adding promotional codes to a checkout flow for the first time
  • When migrating from a simple discount field to a rule-based coupon engine
  • When running marketing campaigns that require unique, single-use codes for each recipient
  • When building an admin interface to create and monitor coupon performance
  • When enforcing complex coupon rules such as product/category exclusions or customer segment restrictions

Core Instructions

Step 1: Determine the merchant's platform and the right tool

Platform Built-in Capability When to Add an App/Plugin
Shopify Shopify Discounts — supports percentage, fixed amount, free shipping, BOGO; usage limits, expiry, minimum purchase When you need bulk unique codes (Shopify supports import), customer-group-specific coupons, or loyalty integration (Smile.io, LoyaltyLion)
WooCommerce WooCommerce Coupons — built into core; percentage, fixed cart, fixed product, free shipping types When you need bulk unique code generation: WooCommerce Smart Coupons plugin; advanced rules: YITH WooCommerce Dynamic Pricing & Discounts
BigCommerce Coupon codes built in — percentage, fixed amount, free shipping, free product types When you need B2B-specific codes or advanced restrictions; BigCommerce app marketplace has options like Coupon Manager Pro
Custom / Headless Must build — see Custom section below N/A — you are building the system

Step 2: Set up standard coupons on your platform


Shopify

  1. Go to Discounts in the Shopify admin sidebar
  2. Click Create discount and choose the type:
    • Amount off products — percentage or fixed amount off specific products/collections
    • Amount off order — percentage or fixed amount off the entire cart
    • Buy X get Y — BOGO and bundle offers
    • Free shipping — removes shipping cost when code is applied
  3. Configure the code:
    • Enter a code (e.g., SUMMER20) or click Generate code for a random one
    • Set Minimum purchase requirements (minimum subtotal or minimum quantity)
    • Set Customer eligibility — all customers, specific customer segments, or specific customers
    • Set Maximum discount uses — total uses and/or one use per customer
    • Set Active dates — start and optional end date
  4. Click Save discount

Bulk unique codes on Shopify:

  1. In the same Discounts screen, choose Generate codes instead of entering a single code
  2. Set the quantity (up to 100 at a time from the UI; use the Shopify Admin API for larger volumes)
  3. All generated codes share the same rules (discount value, expiry, usage limits)
  4. Export the codes to CSV for use in your email marketing platform

Shopify Plus — Shopify Scripts for advanced stacking:

  • Use Shopify Scripts (Shopify Plus only) for custom coupon logic: e.g., different discount percentages by customer tag, auto-apply coupons without a code
  • Access via Apps → Script Editor in your Shopify admin

WooCommerce

  1. Go to WooCommerce → Coupons → Add coupon
  2. Set the Coupon code (unique identifier customers type at checkout)
  3. Under General tab:
    • Discount type: Percentage discount, Fixed cart discount, Fixed product discount
    • Coupon amount: The discount value
    • Free shipping: Toggle to make this code grant free shipping
    • Coupon expiry date: Date after which the code stops working
  4. Under Usage restriction tab:
    • Minimum spend: Cart subtotal must exceed this amount
    • Maximum spend: Cart subtotal cannot exceed this amount
    • Individual use only: Cannot be combined with other coupons
    • Exclude sale items: Don't apply to already-reduced items
    • Products and Exclude products: Restrict or exclude specific products
    • Product categories and Exclude categories: Restrict or exclude by category
    • Email restrictions: Limit to specific customer emails
  5. Under Usage limits tab:
    • Usage limit per coupon: Total number of times this code can be used
    • Usage limit per user: How many times a single customer can use it
  6. Click Publish

Bulk unique codes on WooCommerce:

  • Install WooCommerce Smart Coupons (premium plugin, ~$99/year from StoreApps)
  • Go to WooCommerce → Smart Coupons → Generate Coupons
  • S
Полный SKILL.md на GitHub

Установить coupon-management в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

claude-code
cursor
gemini-cli
copilot
codex-cli
kiro
opencode

Вложенные файлы

evals/bulk-code-generation-and-atomic-redempti/criteria.jsonevals/bulk-code-generation-and-atomic-redempti/task.mdevals/coupon-database-schema-design/criteria.jsonevals/coupon-database-schema-design/task.mdevals/coupon-validation-logic-and-error-codes/criteria.jsonevals/coupon-validation-logic-and-error-codes/task.mdtile.json

FAQ

Что делает скилл coupon-management?

Build a coupon system with percentage and fixed discounts, usage limits per customer, expiration dates, and bulk unique-code generation

Как установить скилл coupon-management?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл coupon-management запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить coupon-management с