/devils-analyst:pricing-promotionsfrom devils-analyst
Analyzes pricing decisions, discount strategies, and promotion effectiveness using contribution margin, elasticity estimation, and break-even analysis. Handles price changes, promo read-outs, channel economics, and price structure decisions.
Ships in devils-analyst. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Price is the lever that moves profit fastest, and the one most often judged on the wrong number. Revenue is not profit, sales lift is not a win, and a price "cut" that grows units can still lose money. Compute everything in code, on contribution, over a window long enough to see what happened after.
Ask; do not assume. The user owns two things:
| The user asks | Type | Go to | Depth |
|---|---|---|---|
| "Is our price right / should we raise it / what's our elasticity" | Price level | 3A | elasticity-and-optimal-price |
| "We changed the price, did it work / roll back?" | Price change read-out | 3B | same |
| "How deep should the discount be / will X% off pay?" | Discount design | 3C | promo-evaluation |
| "How did the sale / code / promo do, run it again?" | Promo read-out | 3D | same |
| "We run lots of sales / lift keeps growing / more promos next year?" | Promo frequency | 3E | same |
| "Bundle, tiers, free-shipping threshold, fees, how to show the price" | Price structure | 3F | price-structure-and-psychology |
| "Which channel makes money / Amazon vs store vs wholesale / retailer margin" | Channel economics | 3G | channel-margins |
A read-out that claims a cause ("the sale worked") also goes through
evidence-check. This skill owns the promo and price arithmetic; evidence-check
owns tests, control groups and significance.
| Need | Minimum | If missing |
|---|---|---|
| Unit variable cost | product cost + pick/pack/ship + payment fees + channel fees per unit or order | Ask. Do not use a "gross margin %" without asking if it is margin or markup |
| Sales history | units and price per day or week, same product or basket | No elasticity: give the break-even table only (3C) |
| Promo calendar | start, end, depth, scope, and any email or homepage push | Infer from discount_amount > 0 and say so |
| Discount actually given | discount amount per day or order | Use depth x promo revenue, flag as estimate |
| Customer type | new vs returning per order | Cannot size subsidised buyers: caveat it |
| Post-period | at least as long as the repurchase cycle after the promo or price change (default 4 weeks if unknown) | Verdict is provisional: say so |
Refuse to give a profit verdict from revenue alone. Refuse an "optimal price" far outside the prices actually observed: recommend a test step instead.
| Quantity | Formula |
|---|---|
| Contribution per unit | m = P - VC |
| Contribution-margin ratio | PV = (P - VC) / P |
| Margin from markup | margin = markup / (1 + markup); markup = margin / (1 - margin) |
| Arc elasticity | e = (dQ/Q) / (dP/P), E = abs(e) |
| Log-log elasticity | fit ln Q = a + b ln P + c promo + controls; E = -b |
| Price direction test | 1/PV > E: underpriced, raise. 1/PV < E: overpriced, cut. Equal: optimal |
| Optimal price, constant elasticity | P* = VC x E / (E - 1), only if E > 1 |
Optimal price, linear demand Q = A - B P | P* = A / (2B) + VC / 2 |
Break-even lift for a discount d (share of price) | lift = d / (PV - d); impossible if d >= PV |
Break-even volume loss for a price rise k | loss = k / (PV + k) |
| Program break-even | extra units needed = program cost / contribution per unit at the promo price |
| Promo net incremental contribution | sum(contribution, promo + post window) - baseline contribution per day x days in window - program costs |
| Subsidy | discount given on orders that baseline says would have happened anyway |
| Channel contribution per unit | net price after returns - VC - channel fees - fulfilment - ad spend per unit |
PV from cost lines, not from a quoted "margin".E (method in the elasticity reference): log-log on weekly data with a
promo dummy (and any email/feature flag), or on non-promo weeks only. Never
price alone when promos coincide with low prices: that overstates E.1/PV with E. That decides the direction, whatever the demand shape.P*. If P* is outside the observed price range, do not recommend
it: recommend a 5-10% step toward it as a test, and the break-even volume
loss (or gain) that step must beat.E = settled % change in units / % change in price. Judge on
contribution per day, settled vs baseline, against the break-even loss
k / (PV + k).PV at full price. Build the table: depth 10/15/20/25/30% ->
break-even lift d / (PV - d).Follow the frameworks in the linked references. Musts: bundles only when valuations differ across buyers and variable cost is low; tiers with clear value jumps; free-shipping threshold just above current average basket; all-in prices when trust matters; channels ranked by contribution per unit and per month after fees, returns and ads, with price parity across channels checked for conflict.
Run each check that applies. A move is done only when its check passes.
| Move | Adversary asks | Check that settles it | If it fails |
|---|---|---|---|
| Set the objective | "Is this about margin, share, trial or stock? Who decides?" | User stated it, or you asked | Answer for contribution and list what changes under each objective |
| Get the margin | "Is 60% a margin or a markup? Does it include shipping, payment, returns, channel fees?" | Rebuild PV from cost lines; convert with markup/(1+markup) | Use the rebuilt PV; say the quoted one was wrong |
| Estimate elasticity | "Did promos, emails, season or stock-outs move with price?" | Refit with promo dummy, and on non-promo weeks only; compare E | Report the controlled E; show the naive one as biased |
| Choose the grain | "Is weekly data catching stockpiling, not price response?" | Re-estimate on monthly totals, or drop weeks next to price changes | Use the longer grain; caveat weekly E as an upper bound |
| Read a price change | "Was it announced? Did people stock up first?" | Daily plot around the change; spike before, dip after | Baseline before announcement, settled level after the dip |
| Recommend a price | "Is P* inside prices we have actually charged?" | P* within observed min-max | Recommend a 5-10% test step with its break-even volume |
| Set the baseline | "Would another baseline flip the sign?" | Pre-only vs last-year vs pre+recovery | If signs differ: inconclusive, propose a holdout |
| Count incremental sales | "Did the weeks after pay for the promo week?" | Window runs until orders recover | Extend the window; never report promo-week lift alone |
| Count the cost | "How many discounted orders would have happened anyway?" | Baseline orders x discount per order; new vs returning split | Report subsidy as a cost line |
| Judge profit | "Revenue rose; did contribution?" | Contribution per day in vs out of promo, after discount, cost, shipping, program costs | Verdict on contribution only |
| Claim future value | "Did promo buyers actually come back?" | Repeat rate of promo-acquired vs other new customers | Mark CLV "unproven", exclude it |
| Read lift trends | "Is lift rising because the baseline is falling?" | Baseline trend and contribution per week by year | Call it erosion; judge on total contribution |
| Rank channels | "Ranked by revenue or by money kept?" | Contribution per unit and per month after fees, returns, ads | Rank by contribution |
| Price across channels | "Does one channel undercut the others or our retailers?" | Compare shelf prices by channel | Flag conflict risk; propose parity or channel-specific products |
| Change structure | "Will the bundle or tier cannibalise full-price sales or feel unfair?" | Share of buyers moving down; hidden fees surfaced early | Mixed bundle, clearer tiers, all-in price |
| Recommend | "What does it cost if this is wrong? What would the CFO ask?" | Downside in money and a way to verify | Shrink the bet or turn it into a test with a holdout |
Verdict: [raise / hold / cut price] or [promo paid / did not pay / inconclusive]
Deciding number: [e.g. "net incremental contribution -$16.2k over 4 weeks"
or "E = 1.9 controlled vs 1/PV = 2.2: underpriced"]
Naive read and why it is wrong: [one line, with its number]
Action: [price, depth, target, cadence or channel move]
Risk if wrong: [money at stake] · How to verify: [test, holdout, window, metric]
Show the arithmetic as a short table (baseline, window, incremental, discount, contribution) so the reader can redo it. State every assumption (cost lines, baseline, window) next to the number it drives.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub c-kapsalis/devils-analyst --plugin devils-analyst16 skills in this plugin
/auditUse this skill when someone wants a whole marketing setup or account checked, not one report: "audit our Google Ads account", "audit my GA4 setup", "audit our tracking", "health check our email program", "what's broken in our setup", "where are we wasting money", "we just took over this account, what should we fix first", "is our Meta / Performance Max set up right", "check our UTMs", "audit our Search Console", "audit our CRM or lifecycle program", "check our Power BI model", "review this TMDL / semantic model", or an account, settings or model export with "what's wrong with it". It maps the setup, runs the checks for each area present (paid search, Performance Max, Meta, GA4 and UTMs, Search Console, email, CRM, revenue, experiments, attribution, dashboards, Power BI), estimates the money at stake, ranks findings Must fix, Should fix, Nice to have and ends "Fix N first". One report or deck: use review. Whether a single channel pays: use channel-audit./brand-healthUse this skill when the question is about the brand rather than one campaign: "is our brand getting stronger or weaker", "is our brand healthy", awareness, consideration or preference from a tracker or survey, brand search volume, direct traffic as a brand signal, share of voice or share of search, social mentions and sentiment, "are promotions hurting the brand", baseline sales, price premium or "can we raise prices", "should we cut brand ads and put it into performance", a flat brand score, NPS up but repeat purchase down, "should we launch [product] under our brand", line or category extension, sub-brand, repositioning, rebrand, "milk or kill this brand", brand valuation, and whether content is on-brand. It measures brand health from the data, separates short-term sales from long-term equity, checks per segment, and turns the result into a decision with a way to verify it.Other plugins' skills for the same job