AI Agent Hub
Back to plugins
⚙️

dsh-full-reduction

Workflow Updated 2026.08.20

Run the following command in DeepSeek Harness:

dsh plugin install uckkk/dsh-full-reduction

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install uckkk/dsh-full-reduction in your terminal to install this plugin from https://github.com/uckkk/dsh-full-reduction, then call the full_reduction tool directly in your session.

About this plugin

Full-reduction promotions (spend X, save Y; spend X, get Y% off) are one of the most common pricing mechanics in e-commerce and marketing, yet manually working through stacked rules is slow and error-prone. dsh-full-reduction lets you call a calculation directly from an AI conversation: supply the parameters and get an exact discount breakdown with per-step details instantly.

Built on pure Node with zero network dependencies, all computation runs locally. The core tool full_reduction accepts reduction-rule parameters and returns, step by step, which threshold was hit, the discount amount applied, and the final payable total, making it straightforward to sanity-check a campaign or debug a billing discrepancy.

It is ideal for operations, product, and data teams who design or validate reduction rules frequently, as well as developers embedding pricing logic into agent workflows. Licensed under MIT for free use and redistribution.

Use Cases

  • Quickly validate reduction-rule calculation accuracy before launch
  • Embed discount computation into agent workflows
  • Debug discount discrepancies in order reconciliation
  • Batch-check final payable totals under stacked reduction tiers

Best For

  • Ops and product teams who design or validate reduction rules frequently
  • Developers needing local, dependency-free pricing calculations
  • Engineers integrating discount logic into marketing workflows