discount-engine

discount-engine is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 28 tokens per session (2,577 once invoked), scanned A, original, MIT.

A discount system that checks a shopping cart and applies promotions such as percentage discounts, fixed amounts, buy-one-get-one offers, and tiered pricing.

In plain words
What is it for?
Use it for coupons, bundle deals, buy-one-get-one promotions, quantity-based discounts, and gifts with purchase.
Why use it?
It keeps complex promotion rules consistent, including automatic discounts and conditions based on what a customer buys.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit Use it for coupons, bundle deals, buy-one-get-one promotions, quantity-based discounts, and gifts with purchase.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/discount-engine
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 finsilabs/awesome-ecommerce-skills --skill discount-engine
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

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 discount-engine

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/discount-engine/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/discount-engine)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/discount-engine"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/discount-engine/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 discount-engine

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/discount-engine"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/discount-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,577 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.00028 $0.02577
Opus 5 $0.00014 $0.01288
Sonnet 5 $0.00006 $0.00515
Haiku 4.5 $0.00003 $0.00258

Measured 9d ago against content hash aced0d315590, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

discount-engine 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 9d 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/pricing-promotions/discount-engine/SKILL.md · 232 lines

How it starts

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

Discount Engine

Overview

A discount engine evaluates promotions against a cart and applies the right discounts in the right order. Every major e-commerce platform has one built in — you should configure the platform's native system before considering custom code. This skill covers how to set up complex discount logic (percentage off, fixed amount, BOGO, tiered thresholds, conditional rules) on each platform, and when to use apps or plugins to extend native capabilities.

When to Use This Skill

  • When building a promotions system for a new e-commerce store
  • When adding coupon code support to an existing checkout flow
  • When implementing tiered pricing (e.g., buy 3+ get 10% off, buy 10+ get 20% off)
  • When creating automatic discounts that apply based on cart conditions
  • When you need BOGO, bundle, or gift-with-purchase promotions

Core Instructions

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

Platform Built-in Discount Capabilities When to Add Apps/Plugins
Shopify Automatic discounts, code-based discounts, BOGO, tiered Buy X Get Y — all in Discounts admin Shopify Plus Scripts for advanced stacking and custom logic; Bold Discounts for visual rule building
WooCommerce Coupons (core) cover basic cases For BOGO, tiered quantity pricing, or automatic rule-based discounts: YITH WooCommerce Dynamic Pricing & Discounts ($70/yr) or Dynamic Pricing extension by WooCommerce ($99/yr)
BigCommerce Promotions engine supports cart-level and item-level discounts, free products, BOGO BigCommerce's built-in Promotions are powerful — use custom scripts for edge cases
Custom / Headless Must build — see below N/A

Step 2: Set up automatic discounts and BOGO on your platform


Shopify

Automatic discounts (no code required):

  1. Go to Discounts → Create discount → Amount off products (or Amount off order)
  2. Toggle No discount code (makes it automatic — applies without a code)
  3. Set the discount value and conditions
  4. Under Minimum purchase requirements: set a minimum quantity or subtotal to trigger the discount
  5. Set the Active dates — automatic discounts apply to all eligible carts during this window

Read the full file on GitHub · 232 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. 9d ago First seen · 232 lines · 28 tokens per session scan A aced0d315590

Subscribe to this mod's changes

discount-engine is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 28 tokens to every session and 2,577 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

commerce-pricing-and-promotions

Configure pricebooks, tiered pricing, promotions, coupon codes, and cart discounts for B2B or D2C Commerce stores. Trigger keywords: WebStorePricebook, BuyerGroupPricebook, PriceAdjustmentSchedule, PromotionsCartCalculator, commerce coupon, cart-level discount, tiered price, Commerce promotion. NOT for Sales Cloud…

PranavNagrecha/AwesomeSalesforceSkills · 106 tokens

commerce-pricing-and-promotions

Use this skill when configuring pricebooks, tiered pricing, promotions, coupon codes, or cart discounts for B2B or D2C Commerce stores. Trigger keywords: WebStorePricebook, BuyerGroupPricebook, PriceAdjustmentSchedule, PromotionsCartCalculator, commerce coupon, cart-level discount, tiered price, Commerce promotion.…

BanibrataChatterjee/AwesomeSalesforceSkills · 90 tokens

monetization

Estrategia e implementacao de monetizacao para produtos digitais - Stripe, subscriptions, pricing experiments, freemium, upgrade flows, churn prevention, revenue optimization e modelos de negocio SaaS.

LiHongwei-cn/lihongwei-cn · 43 tokens

competitor-price-tracker

Monitor competitor product pages and alert when prices change.

frumu-ai/tandem · 16 tokens

cpq-pricing-rules

Use when configuring or troubleshooting Salesforce CPQ pricing: Price Rules, Price Conditions, Price Actions, Lookup Queries, Discount Schedules, Block Pricing, Percent of Total, and Contracted Prices. Trigger keywords: CPQ price rule, price action, discount schedule, block pricing, percent of total, contracted price…

PranavNagrecha/AwesomeSalesforceSkills · 116 tokens

cpq-pricing-rules

Use this skill when configuring or troubleshooting Salesforce CPQ pricing: Price Rules, Price Conditions, Price Actions, Lookup Queries, Discount Schedules, Block Pricing, Percent of Total, and Contracted Prices. Trigger keywords: CPQ price rule, price action, discount schedule, block pricing, percent of total…

BanibrataChatterjee/AwesomeSalesforceSkills · 125 tokens