E-commerce Advisor
Strategic frameworks for e-commerce founders, operators, and brand builders. Most ecommerce decisions are unit-economics decisions — knowing the math is the difference between a brand that compounds and one that subsidizes itself out of existence.
Keywords
ecommerce, e-commerce, DTC, direct-to-consumer, Shopify, Amazon, retail, wholesale, 3PL, fulfillment, dropship, unit economics, contribution margin, CAC, AOV, LTV, returns, refunds, payment processing, interchange
Clarify First
Before building the model, confirm these inputs. If any is unknown or vague, ASK — do not assume:
Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the model.
Quick Start
python scripts/ecom_unit_economics_calculator.py model.json
Calculates gross margin, contribution margin, CAC payback, and per-order profit from a structured input file.
Core Workflows
Workflow 1: Unit Economics Model
- Build a JSON config: COGS, fulfillment cost, payment processing %, returns %, ad spend %, AOV
- Run calculator:
python scripts/ecom_unit_economics_calculator.py model.json
- Identify the marginal cost line items eating most of the margin
- Decide: cut costs, raise price, change channel mix, or kill the SKU
Time Estimate: 2-4 weeks for first robust model.
Workflow 2: Fulfillment Strategy
- Read
references/fulfillment_models.md
- Score each model (DTC self-fulfilled, 3PL, Amazon FBA, dropship, retail) for your stage and SKU profile
- Migrate fulfillment as you scale — most brands change models 2-3 times in their first 3 years
Time Estimate: 4-8 weeks per major fulfillment transition.
Workflow 3: Channel Strategy
- Read
references/channel_strategy.md
- Decide channel mix: DTC site, Amazon, wholesale, retail, marketplace
- Each channel has distinct unit economics — model them separately, never blend
- Sequence: most brands start DTC, add Amazon, add wholesale / retail
Time Estimate: Continuous, with major decisions every 6-12 months.
Tools
ecom_unit_economics_calculator.py
Models per-order, per-month, and CAC-payback economics from a structured input.
python scripts/ecom_unit_economics_calculator.py model.json
python scripts/ecom_unit_economics_calculator.py model.json --json
Input model schema in the script's docstring; example in assets/unit_economics_template.json.
Outputs:
- Gross margin (% and absolute)
- Contribution margin (after marginal CAC)
- CAC payback period (months)
- Break-even repeat rate
Reference Guides
references/fulfillment_models.md — DTC self, 3PL, FBA, dropship, retail — when each fits
references/channel_strategy.md — DTC site, Amazon, wholesale, retail — economics per channel
Templates
assets/unit_economics_template.json — Input file for the calculator with example values
Best Practices
- Model channels separately. A blended LTV across DTC and Amazon hides the fact that Amazon may be unprofitable.
- Returns and refunds compound. A 15% return rate eats into margin twice — once on the initial sale, once on the reverse logistics.
- Plan for inventory. Working capital tied up in inventory is the #1 cash-flow killer for product brands.
- Don't fall in love with revenue. $10M revenue at 5% contribution margin is worse than $3M revenue at 30% contribution margin.
- Be honest about CAC. Most DTC brands subsidize CAC and call it growth. CAC payback under 6 months is the bar.
1---2name: ecommerce-advisor3description: Strategic advisory for e-commerce founders on unit economics, fulfillment models, payments, and channel strategy. Use when evaluating an ecommerce idea or modeling unit economics, or mentioning DTC, Shopify, Amazon, 3PL, or CAC.4license: MIT + Commons Clause5---6
7# E-commerce Advisor
8
9Strategic frameworks for e-commerce founders, operators, and brand builders. Most ecommerce decisions are unit-economics decisions — knowing the math is the difference between a brand that compounds and one that subsidizes itself out of existence.
10
11---
12
13## Keywords
14
15ecommerce, e-commerce, DTC, direct-to-consumer, Shopify, Amazon, retail, wholesale, 3PL, fulfillment, dropship, unit economics, contribution margin, CAC, AOV, LTV, returns, refunds, payment processing, interchange
16
17---
18
19## Clarify First
20
21Before building the model, confirm these inputs. If any is unknown or vague, ASK — do not assume:
22
23- [ ] **Single channel or blended** — model each channel (DTC, Amazon, wholesale) separately; a blended model hides an unprofitable channel and makes contribution margin meaningless
24- [ ] **AOV and COGS** — average order value and landed cost of goods (drives gross margin, the top line of the model)
25- [ ] **Returns/refund rate** — returns eat margin twice (the sale plus reverse logistics), so this swings contribution margin
26- [ ] **CAC basis** — true paid/blended CAC and what ad spend is counted (drives CAC payback period and break-even repeat rate)
27
28Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the model.
29
30## Quick Start
31
32```bash
33python scripts/ecom_unit_economics_calculator.py model.json
34```
35
36Calculates gross margin, contribution margin, CAC payback, and per-order profit from a structured input file.
37
38---
39
40## Core Workflows
41
42### Workflow 1: Unit Economics Model
431. Build a JSON config: COGS, fulfillment cost, payment processing %, returns %, ad spend %, AOV
442. Run calculator: `python scripts/ecom_unit_economics_calculator.py model.json`
453. Identify the marginal cost line items eating most of the margin
464. Decide: cut costs, raise price, change channel mix, or kill the SKU
47
48**Time Estimate:** 2-4 weeks for first robust model.
49
50### Workflow 2: Fulfillment Strategy
511. Read `references/fulfillment_models.md`
522. Score each model (DTC self-fulfilled, 3PL, Amazon FBA, dropship, retail) for your stage and SKU profile
533. Migrate fulfillment as you scale — most brands change models 2-3 times in their first 3 years
54
55**Time Estimate:** 4-8 weeks per major fulfillment transition.
56
57### Workflow 3: Channel Strategy
581. Read `references/channel_strategy.md`
592. Decide channel mix: DTC site, Amazon, wholesale, retail, marketplace
603. Each channel has distinct unit economics — model them separately, never blend
614. Sequence: most brands start DTC, add Amazon, add wholesale / retail
62
63**Time Estimate:** Continuous, with major decisions every 6-12 months.
64
65---
66
67## Tools
68
69### ecom_unit_economics_calculator.py
70
71Models per-order, per-month, and CAC-payback economics from a structured input.
72
73```bash
74python scripts/ecom_unit_economics_calculator.py model.json
75python scripts/ecom_unit_economics_calculator.py model.json --json
76```
77
78**Input model schema** in the script's docstring; example in `assets/unit_economics_template.json`.
79
80**Outputs:**
81- Gross margin (% and absolute)
82- Contribution margin (after marginal CAC)
83- CAC payback period (months)
84- Break-even repeat rate
85
86---
87
88## Reference Guides
89
90- **`references/fulfillment_models.md`** — DTC self, 3PL, FBA, dropship, retail — when each fits
91- **`references/channel_strategy.md`** — DTC site, Amazon, wholesale, retail — economics per channel
92
93---
94
95## Templates
96
97- **`assets/unit_economics_template.json`** — Input file for the calculator with example values
98
99---
100
101## Best Practices
102
103- **Model channels separately.** A blended LTV across DTC and Amazon hides the fact that Amazon may be unprofitable.
104- **Returns and refunds compound.** A 15% return rate eats into margin twice — once on the initial sale, once on the reverse logistics.
105- **Plan for inventory.** Working capital tied up in inventory is the #1 cash-flow killer for product brands.
106- **Don't fall in love with revenue.** $10M revenue at 5% contribution margin is worse than $3M revenue at 30% contribution margin.
107- **Be honest about CAC.** Most DTC brands subsidize CAC and call it growth. CAC payback under 6 months is the bar.