Xpersona
D

Discount Optimizer

CLAWHUB · Unverified

Calculate optimal discount levels based on unit cost, conversion targets, and inventory velocity so promos move product without destroying margin. Skill: Discount Optimizer Owner: leooooooow Summary: Calculate optimal discount levels based on unit cost, conversion targets, and inventory velocity so promos move product without destroying margin. Tags: latest:1.1.0 Version history: v1.1.0 | 2026-06-19T16:05:48.680Z | user v1.1.0 — Major expansion from an instruction-only skill into a full operator playbook: added a Quick Reference decision table, a Solves section

62
Rank
84
Safety
955
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 955 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17974h9acjg4h7h5djv1hg51d83hcca:discount-optimizer
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-leooooooow-discount-optimizer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

45,932 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: discount-optimizer
description: Calculate optimal discount levels based on unit cost, conversion targets, and inventory velocity so promos move product without destroying margin.
---

# Discount Optimizer

Discounts are a finance decision wearing a marketing costume. Every point off the price comes straight out of contribution margin, and a discount only pays for itself if it lifts unit volume by more than the margin it gives away. This skill builds discount levels from the unit economics upward — unit cost, platform fees, and contribution margin — then computes the break-even volume lift each depth requires, chooses a promo mechanic that fits the goal, and stress-tests against inventory velocity, so promotions move product without quietly destroying profit.

## Quick Reference

| Decision | Strong | Acceptable | Weak |
|---|---|---|---|
| Discount depth basis | Sized off contribution margin and a break-even lift target | Sized off gross margin, fees estimated | Taken off retail price with no margin math |
| Margin floor | Hard post-promo floor set (e.g. ≥15% CM) and enforced | Soft floor, occasional exceptions | "Just don't sell below cost" |
| Break-even volume lift | Computed via lift = d/(m−d) and compared to realistic demand | Rough rule of thumb (e.g. "needs ~2x") | Assumed any discount increases total profit |
| Promo type choice | Mechanic matched to goal (acquisition vs clearance vs AOV) | Default % off used everywhere | Whatever competitor is running |
| Inventory-velocity trigger | Discount depth scales with days-of-cover and holding cost | Discount when stock "feels old" | Same depth regardless of age/velocity |
| Platform-fee accounting | Commission + payment + affiliate + shipping all netted before margin | Commission only | Fees ignored ("they're small") |
| Stacking rules | Max stacked depth capped; coupons + auto-discount modeled together | One promo at a time enforced manually | Uncapped stacking, shopper finds the floor |
| Anchor price integrity | List price held; discounts time-boxed with clear end date | Occasional sales, list mostly stable | Permanent "sale" price = the real price |
| Promo end + exit | Defined end date and post-promo price plan | Vague "couple of weeks" | Open-ended, becomes the new normal |

## Solves

- **"What discount can I actually afford?"** — converts a margin floor into a maximum discount depth, net of all platform fees.
- **"Will this promo make or lose money?"** — computes the exact unit-volume lift a given discount must achieve to break even on profit.
- **"My sale boosted revenue but profit dropped."** — exposes the gap between top-line lift and the much larger lift discounts require.
- **"How deep should I go to clear aging stock?"** — justifies clearance depth against carrying/holding cost instead of guessing.
- **"Which promo mechanic fits this goal?"** — maps % off, $ off, BOGO, bundles, thresholds, and free shipping to acquisition, AOV, or clearance objectives.
- **"My TikTok Sho

_meta.json

{
  "ownerId": "kn70fv0ehp50emedet9tx3fekd82pw3b",
  "slug": "discount-optimizer",
  "version": "1.1.0",
  "publishedAt": 1781885148680
}

references/margin-math-guide.md

# Margin Math Guide

The numbers behind every discount decision. Get these right and the rest of the skill follows.

## 1. The three margins (don't mix them up)

- **Gross margin** = (price − COGS) ÷ price. COGS only — the cost of the goods. Ignores platform fees, shipping, processing, returns.
- **Contribution margin (CM)** = (price − *all variable costs*) ÷ price. Subtracts COGS **and** every per-order variable cost: commission, payment processing, fulfillment, shipping subsidy, affiliate commission, returns reserve. **This is the number that matters for discounting**, because a discount eats into contribution, not gross.
- **Net margin** = profit after *also* allocating fixed costs (overhead, salaries, ad spend, software) ÷ price. Useful for whole-business health, too lagging and too allocated for sizing a single promo.

**Rule:** size discounts off **contribution margin**. Gross margin overstates your headroom (it forgets fees); net margin understates it (it loads fixed costs that don't change with one promo).

**Worked example.** Price $39.90, COGS $11.00, variable costs (commission $2.00 + payment $0.80 + shipping $4.50 + returns $1.20) = $8.50.
- Gross margin = (39.90 − 11.00) ÷ 39.90 = **72.4%**
- Contribution margin = (39.90 − 19.50) ÷ 39.90 = **51.1%**

The 21-point gap is exactly the fee/shipping/returns load. Sizing a discount off the 72% gross figure would let you cut far deeper than you can actually afford.

## 2. The break-even volume-lift formula

For a discount of depth `d` (as a fraction of price) on a product with contribution margin `m` (as a fraction of price), the additional unit volume needed to **hold total contribution flat** is:

> **required-lift = d / (m − d)**

**Why it works.** Per-unit contribution before = `m × price`. After the discount, per-unit contribution = `(m − d) × price` (the price drops by `d×price`, and that whole amount comes out of contribution). To keep total contribution equal: `units_old × m = units_new × (m − d)`, so `units_new / units_old = m / (m − d)`, and the *extra* fraction is `units_new/units_old − 1 = d / (m − d)`.

**Caveat:** the clean formula assumes per-unit variable cost is fixed. In reality, percentage-based fees (commission, payment, affiliate) fall slightly when the price drops, so the *true* break-even lift is a little lower than the formula. The formula is the conservative (safe) estimate; recompute exactly when fees are a large % of price.

### Lookup table: required volume lift to break even

Rows = discount depth `d`. Columns = starting contribution margin `m`. Values = required-lift % from `d/(m−d)`. "—" means impossible (discount ≥ margin → you lose money on every unit no matter the volume).

| d \ m | 30% | 40% | 50% | 60% | 70% |
|---|---|---|---|---|---|
| 5% | 20.0% | 14.3% | 11.1% | 9.1% | 7.7% |
| 10% | 50.0% | 33.3% | 25.0% | 20.0% | 16.7% |
| 15% | 100.0% | 60.0% | 42.9% | 33.3% | 27.3% |
| 20% | 200.0% | 100.0% | 66.7% | 50.0% | 40.0% |
| 25% | 500.0% | 150.0% | 100.

references/output-template.md

# Discount Plan — Output Template

Copy this template and fill every field. Leave no placeholder unresolved before launch. All margins are **contribution margin** (price minus *all* variable costs), not gross margin, unless stated.

---

## 1. Product & Unit Economics

| Field | Value |
|---|---|
| SKU / product name | `____` |
| Channel | `____` (e.g. TikTok Shop) |
| Selling price (list) | $ `____` |
| COGS (landed unit cost, incl. inbound freight + duty) | $ `____` |
| Platform commission (% of price) | `____` % → $ `____` |
| Payment processing (% of price) | `____` % → $ `____` |
| Fulfillment / pick-pack (per unit) | $ `____` |
| Outbound shipping subsidy eaten (per unit) | $ `____` |
| Affiliate / creator commission (% of price) | `____` % → $ `____` |
| Returns reserve (% of price) | `____` % → $ `____` |
| **Total variable cost** | $ `____` |
| **Contribution margin (CM$)** = price − variable cost | $ `____` |
| **Contribution margin (CM% = m)** = CM$ ÷ price | `____` % |

---

## 2. Objective

- **Goal (one sentence):** `____` (acquire / raise AOV / clear inventory / defend share / hit launch velocity)
- **Primary success metric:** `____` (e.g. units sold, new customers, sell-through %, AOV)
- **Time window:** `____`

---

## 3. Proposed Discount & Mechanic

| Field | Value |
|---|---|
| Mechanic | `____` (% off / $ off / BOGO / bundle / spend threshold / free-ship threshold / flash) |
| Discount depth (d, as % of price) | `____` % |
| Discounted price | $ `____` |
| Coupon or automatic? | `____` |
| Stacks with other offers? | `____` (Y/N — if Y, list and cap below) |
| Post-discount contribution margin (after fees) | $ `____`  / `____` % |

---

## 4. Break-even Lift Table

Required additional unit volume to hold total contribution flat: **required-lift = d / (m − d)**, where `m` is the *pre-discount* CM%.

| Discount d | required-lift = d/(m−d) | Realistic? (Y/N) |
|---|---|---|
| 5% | `____` % | `____` |
| 10% | `____` % | `____` |
| 15% | `____` % | `____` |
| 20% | `____` % | `____` |
| 25% | `____` % | `____` |

> Compare the chosen depth's required lift to demand you can realistically drive on this channel. If required lift > plausible lift, reduce depth or change mechanic.

---

## 5. Guardrails

| Guardrail | Value |
|---|---|
| Margin floor (hard min CM%) | `____` % |
| Margin floor (hard min CM$) | $ `____` |
| Max discount depth (incl. stacking) | `____` % |
| Max units / spend cap | `____` |
| Start date | `____` |
| End date | `____` |
| Post-promo price (return-to-list) | $ `____` |
| Kill condition | `____` (e.g. "realized lift < break-even lift after 7 days with no strategic payoff") |

---

## 6. Results Tracking

Fill during and after the promo. Compare realized lift to the break-even lift from Section 4.

| Metric | Baseline | Target | Actual | Verdict |
|---|---|---|---|---|
| Units sold (period) | `____` | `____` | `____` | `____` |
| Realized unit lift % | — | (break-even = `____` %) | `____` % | over / under bre

references/promo-mechanics-guide.md

# Promo Mechanics Guide

Each mechanic has a different margin signature and fits a different goal. Pick by objective, not habit. Margin impact below is relative to contribution margin (CM).

## % off

- **Margin impact:** comes straight out of CM; on a 50% CM item, a 20% cut removes ~40% of per-unit contribution. Needs `d/(m−d)` lift to break even.
- **Best use:** broad demand pull, acquisition, sitewide events, items with healthy CM (≥45%).
- **Risks:** trains shoppers to wait; erodes anchor if frequent; deepest discounts scale poorly (lift required explodes as `d` nears `m`).

## $ off

- **Margin impact:** fixed dollar hit, identical in dollars regardless of how many units; on high-ticket items a flat $X reads as a smaller % and protects margin better.
- **Best use:** higher-priced items where "$10 off" is clearer and feels generous, or to hit a psychological price point ($49 → $39).
- **Risks:** on low-priced items a small $ amount is a big % (e.g. $5 off a $20 item = 25%); always convert to a % and run the break-even check.

## BOGO / Buy-2-Get-1 (B2G1)

- **Margin impact:** BOGO (buy 1 get 1 free) is effectively **50% off** across two units — only viable at very high CM (you give away a full unit's COGS + fees). B2G1 is ~33% off across three units, gentler. Moves volume while the *displayed* unit price stays at full list (protects anchor).
- **Best use:** clearing volume, multi-pack-friendly consumables, gifting moments, when you'd rather protect headline price than post a markdown.
- **Risks:** you eat full COGS + fulfillment on the "free" unit; only works if CM comfortably exceeds the give-away. Can pull forward demand and inflate units-per-order without new customers.

## Tiered / spend thresholds

- **Margin impact:** discount applies only above a spend bar (e.g. "$10 off $60"), so the *effective* discount % shrinks as basket grows — margin-efficient. Set the threshold above current AOV to genuinely lift baskets.
- **Best use:** raising AOV, encouraging add-on purchases, rewarding bigger orders without blanket markdown.
- **Risks:** threshold set too low just discounts orders that would have happened anyway; too high and few qualify. Model the discount at the *threshold* price, not the average.

## Bundles

- **Margin impact:** blended across items (see margin-math-guide §5). A modest bundle discount can raise AOV while keeping blended CM above floor — but a low-margin filler can drag the basket under.
- **Best use:** raising AOV, moving a slow SKU attached to a hero SKU, simplifying choice, increasing perceived value without a headline markdown.
- **Risks:** cannibalizes standalone sales of the hero item; always compute blended bundle CM after the bundle discount.

## Free-shipping threshold

- **Margin impact:** you eat the shipping cost (a real, often $4–8 discount) only on qualifying orders; framed as "free shipping over $X" it lifts AOV cheaply because shipping cost is usually less than the % discount needed to move the same basket

Sponsored

Ads related to Discount Optimizer and adjacent AI workflows.