Skip to content
Skills Library
Finance & accounting · Analysis

contribution-margin-check-ecommerce

/contribution-margin-check-ecommerce

Turns COGS, fee, shipping, refund, and ad spend exports into per-SKU contribution margin so the store can see which products actually make money after all variable costs. Use when ROAS looks fine but profit does not, before scaling spend on a product, or when the owner asks which SKUs are worth promoting.

Licence
MIT
Last repository change
03.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Turns COGS, fee, shipping, refund, and ad spend exports into per-SKU contribution margin so the store can see which products actually make money after all variable costs. Use when ROAS looks fine but profit does not, before scaling spend on a product, or when the owner asks which SKUs are worth promoting.

Original author description

Turns COGS, fee, shipping, refund, and ad spend exports into per-SKU contribution margin so the store can see which products actually make money after all variable costs. Use when ROAS looks fine but profit does not, before scaling spend on a product, or when the owner asks which SKUs are worth promoting.

How it works

  1. Use this skill when
  2. Required input
  3. Before analysis
  4. Analysis workflow
  5. Decision and evidence standard
  6. Output format
  7. Example input and output
  8. Guardrails
Original SKILL.md headings · 107 lines, 796 words
SKILL.md preview
---
name: contribution-margin-check-ecommerce
description: Turns COGS, fee, shipping, refund, and ad spend exports into per-SKU contribution margin so the store can see which products actually make money after all variable costs. Use when ROAS looks fine but profit does not, before scaling spend on a product, or when the owner asks which SKUs are worth promoting.
---

# Contribution Margin Check - E-commerce

## Use this skill when

The user needs to know which products earn money after every variable cost, not just after product cost.

Common requests:

- "ROAS is 3 and we still made nothing. Where does it go?"
- "Which SKUs can I afford to advertise?"
- "Work out our real margin per product."
- "Is this bestseller actually profitable?"

## Required input

Minimum useful input:

- Product-level sales export: units, revenue, discounts.
- COGS per SKU, landed if available.
- Payment processing and platform fee rates.
- Shipping cost basis: real cost per order or per zone.

Recommended additional input:

- Refund and return rate per SKU.
- Ad spend attributed to product or collection.
- Pick, pack, and packaging cost assumptions.
- Payout or settlement report from the payment provider.
- Marketplace or channel commission rates.

## Before analysis

1. Confirm the period and whether revenue is gross, net of discounts, or net of refunds.
2. Confirm whether COGS is unit cost only or landed cost including duty and freight.
3. State every assumption you have to make, and mark it as an assumption inside the output.
4. Confirm whether the owner wants contribution margin per unit, per order, or per SKU for the period.
5. Do not blend fixed overhead into contribution margin. Name it separately if the owner asks about breakeven.

## Analysis workflow

0. **Run `../scripts/margin_stack.py` before forming any view.** If the inputs are a CSV, run `../scripts/margin_stack.py <file> --payment-fee-pct <rate> --payment-fee-fixed <fee>`. It builds the stack per SKU, computes CM2, CM3 and breakeven ROAS exactly, and lists which cost columns were absent so they can be marked as assumptions. Reserve manual calculation for a handful of SKUs pasted into chat, and even then show the working.
1. Build the cost stack per SKU in this order: gross revenue, discounts, returns and refunds, COGS, payment fees, platform or channel fees, shipping and fulfilment, packaging, then attributed ad spend.
2. Produce contribution margin before ad spend (CM2) and after ad spend (CM3). Keep them separate. Most stores only ever see the first one.
3. Rank SKUs by total contribution, not by margin percentage. A 60% margin product selling four units matters less than a 22% margin product carrying the catalog.
4. Flag every SKU where CM3 is negative, and separate "negative because of ad spend" from "negative before a single ad ran".
5. Compute the breakeven ROAS per SKU from its margin, and compare it to the ROAS the store is currently accepting.
6. Identify which cost line has the widest uncertainty, and say what data would close it.

## Decision and evidence standard

Tag every finding with evidence: `export`, `cogs_export`, `margin_csv`, `payout_report`, `shipping_invoice`, `return_reason`, `policy`, `hypothesis`, or `needs_data`. Full vocabulary: `../references/output-standard.md`.

Rank findings by total contribution at stake, not by margin percentage.

Any cost line the user did not supply is an assumption. Assumptions get `hypothesis`, confidence `low`, and appear in the missing data list. Never present an assumed cost as a measured one.

## Output format

### Margin verdict

One paragraph: is the store's profit problem in pricing, product cost, fulfilment, discounting, returns, or acquisition cost. Include a confidence level.

### Cost stack table

| Line | Amount | Basis | Source | Confidence |
|---|---|---|---|---|

### Per-SKU contribution

| SKU | Units | Net revenue | CM2 | CM2 % | CM3 | Breakeven ROAS | Owner decision |
|---|---|---|---|---|---|---|---|

### Money-losing SKUs

Products where CM3 is negative, with the reason and the smallest change that would flip it.

### Missing data

What would move confidence from assumption to measurement.

## Example input and output

Input:

- Shopify product sales export, 90 days
- COGS spreadsheet, unit cost only
- Meta and Google spend by campaign, mapped to collections
- Payment provider fee rate

Good output excerpt:

| Finding | Evidence | Severity | Confidence | Business impact | Effort | Owner decision |
|---|---|---|---|---|---|---|
| Bestselling SKU has 4% CM3 because shipping is charged flat but costs by weight | `export`, `shipping_invoice` | high | medium | margin | S | investigate |
| Freight and duty are not in COGS, so all margins here are overstated | `cogs_export`, `needs_data` | critical | low | margin | M | investigate |

What not to do yet: cut ad spend on a SKU using a margin figure built on assumed landed cost.

## Guardrails

- Do not treat ROAS as profit.
- Do not present assumed costs as measured costs.
- Do not recommend a price increase without checking category, positioning, and repeat purchase impact.
- Do not blend fixed overhead into contribution margin.
- Do not recommend killing a SKU on one period of data if it drives first orders that repeat.

Versions

The database has no other skills named contribution-margin-check-ecommerce.

Database snapshot: 13.11.2026 · package version 468616b721e2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100sku-profitability
    Use when analyzing which products make or lose money, ranking SKUs by margin or contribution, running a Pareto/80-20 on a product line, or deciding which SKUs to cut, reprice, or push in a product business.
  • 100contribution-margin-leak
    Works out what is really left after product cost, shipping, payment fees, refunds and ad spend, for the whole store and per channel or product, and flags where growth is buying revenue but losing profit. Use when ROAS looks fine but the bank account doesn't, before scaling a…
  • 100sku-margin
    First gate. Turns one listing into a nine-layer cost waterfall - landed cost, packaging, outbound freight, return freight, return handling loss, commission, payment fee, tax, ad spend - and returns contribution margin per order, breakeven ROI, breakeven price, breakeven volume…
  • 100margin-analyzer
    Breaks unit economics down per product, service, or client: revenue minus direct costs into a contribution-margin ranking, allocated overhead into net margin, a price floor per unit, a push/fix/kill mix analysis, and three pricing moves with quantified margin impact. Use when…
  • 90product-costing-and-margin
    Cost products properly — materials, labour, overheads — and show true margin by product. TRIGGERS - Use when user needs help with product costing and margin related tasks.
  • 90product-profitability
    When the user wants to break down revenue and costs by specific products, services, or segments. Also use when the user mentions "unit economics," "product-line P&L," "contribution margin," "SKU profitability," "segment reporting," or "cost allocation.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.