price-rules-engine

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

A rules system for deciding which promotions apply, whether discounts can combine, and the order in which they affect a shopping cart.

In plain words
What is it for?
Use it for stacked promotions, customer-segment offers, product exclusions, scheduled campaigns, and records explaining why each discount was applied.
Why use it?
It makes overlapping sales, coupons, and loyalty discounts predictable and easier to manage than scattered hardcoded conditions.

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 stacked promotions, customer-segment offers, product exclusions, scheduled campaigns, and records explaining why each discount was applied.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/price-rules-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 price-rules-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 price-rules-engine

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/price-rules-engine"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/price-rules-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,534 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.00027 $0.02534
Opus 5 $0.00014 $0.01267
Sonnet 5 $0.00005 $0.00507
Haiku 4.5 $0.00003 $0.00253

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

Security

Grade A, and why

price-rules-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/price-rules-engine/SKILL.md · 235 lines

How it starts

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

Price Rules Engine

Overview

A price rules engine lets you define multiple concurrent promotions — site-wide sales, coupon codes, loyalty discounts — and apply them to a cart in a predictable, controlled order. The key concerns are: which rules apply to which products, which rules can stack with others, and what happens when multiple rules target the same item. Every major platform has some form of this built in; the gap is usually in advanced stacking control and customer-segment targeting.

When to Use This Skill

  • When you have multiple concurrent promotions (site-wide sale + coupon + loyalty discount) and need deterministic stacking behavior
  • When marketing needs to create complex promotions (e.g., "20% off all shoes except Nike, for Gold loyalty members") without engineering involvement
  • When migrating from hardcoded promotional logic scattered across the codebase to a data-driven rule system
  • When building a promotion scheduler that activates and deactivates rules at configured times
  • When you need an audit log that shows exactly which rules were applied and why for customer service queries

Core Instructions

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

Platform Built-in Capability When to Extend
Shopify Discounts admin handles basic stacking via "Combinations" settings Use Bold Discounts or Shopify Scripts (Plus) for advanced rule stacking, customer-segment targeting, and conditional logic
WooCommerce Coupons core + Dynamic Pricing plugin for conditional rules For complex priority ordering and segment targeting: YITH WooCommerce Dynamic Pricing & Discounts provides the most control
BigCommerce Promotions engine supports multiple concurrent promotions with priority ordering and stacking rules BigCommerce's built-in system handles most scenarios natively
Custom / Headless Must build Required when none of the above fits your use case

Read the full file on GitHub · 235 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 · 235 lines · 27 tokens per session scan A dc7fff0dbc76

Subscribe to this mod's changes

price-rules-engine is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 2,534 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

lexq-recipes

Goal: Apply different discounts based on payment amount.

lexq-io/lexq-cli · 0 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

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

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

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

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens