discount-engine

Evaluate and allocate non-conflicting promotions across shopping carts.

14|3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/tomtoto757/ecomm-ai-skills-hub --skill discount-engine-tomtoto757
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discount-engine
Source: https://github.com/tomtoto757/ecomm-ai-skills-hub/tree/main/skills/pricing-promotions-loyalty/finsilabs/pricing-promotions/discount-engine
Command: npx skills add https://github.com/tomtoto757/ecomm-ai-skills-hub --skill discount-engine-tomtoto757

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the evaluation and allocation of multiple promotions against a shopping cart to ensure correct, non-conflicting discounts while protecting margins.

Core Features & Use Cases

  • Rule-based evaluation for multiple discount types: percentage off, fixed amount, buy-N-get-M, and free shipping.
  • Priority and stacking controls to distinguish automatic versus coupon-based discounts and to enforce non-overlapping promotions.
  • Platform-agnostic design that can be wired to any cart model and persist audit logs for ROI analysis.

Quick Start

Run a test against a sample cart to verify that the highest-priority eligible discounts apply correctly.

Frequently Asked Questions about discount-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate multiple stacked discounts on a shopping cart without conflicts?

To calculate multiple discounts on a shopping cart without conflicts, use a deterministic pipeline that filters active promotions, checks conditions, sorts by priority, and enforces non-stackable rules to output an auditable discount allocation set.

How does a priority-aware promotion engine handle coupon and automatic discount stacking?

A priority-aware promotion engine handles discount stacking by sorting all active promotions by priority, distinguishing automatic versus coupon-based discounts, and enforcing non-overlapping rules to prevent conflicting cart-wide or line-item allocations.

Can I apply buy-N-get-M and free shipping promotions to the same cart line items?

Yes, you can apply buy-N-get-M and free shipping promotions to the same cart by evaluating common discount types across cart-wide, line-item, and shipping scopes while enforcing non-stackable rules to ensure correct allocations.

What is the best way to allocate fixed amount and percentage off promotions across line items?

The best way to allocate fixed amount and percentage off promotions is using a deterministic pipeline that checks conditions, sorts by priority, and computes non-conflicting discount allocations across line items to protect profit margins.

How do I track and audit applied promotions and discount allocations for ROI analysis?

To track and audit applied promotions for ROI analysis, use a platform-agnostic discount engine that evaluates conditions, computes allocations, and persists an auditable result set detailing which active discounts were applied to the cart.

Why are my non-stackable promotions overlapping and applying incorrect discounts to the cart?

Non-stackable promotions overlap and apply incorrect cart discounts when the evaluation pipeline lacks strict priority sorting and non-conflicting allocation enforcement to prevent multiple high-priority rules from applying to the same line items simultaneously.