Skip to content
Back to skills

Ecommerce Advisor

ASecurity

Strategic advisory for e-commerce founders on unit economics, fulfillment models, payments, and channel strategy, with a calculator that returns contribution margin, CAC payback and a fix per finding. Use when evaluating an ecommerce idea, modeling unit economics from real order costs, or when DTC, Shopify, Amazon, 3PL, or CAC come up.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
ai-agentspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill ecommerce-advisor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ecommerce Advisor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ecommerce Advisor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-ecommerce-advisor/badge)](https://www.skillsdirectory.com/skills/borghei-ecommerce-advisor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ecommerce-advisor
description: >
  Strategic advisory for e-commerce founders on unit economics, fulfillment models,
  payments, and channel strategy, with a calculator that returns contribution margin,
  CAC payback and a fix per finding. Use when evaluating an ecommerce idea, modeling
  unit economics from real order costs, or when DTC, Shopify, Amazon, 3PL, or CAC come up.
license: MIT + Commons Clause
metadata:
  version: 1.0.0
  author: borghei
  category: vertical-advisors
  domain: ecommerce
  updated: 2026-05-04
  python-tools: ecom_unit_economics_calculator.py
  tech-stack: ecommerce, retail
  tags:
    - ecommerce
    - unit-economics
    - fulfillment
    - payments
    - dtc
---

# 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, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **Single channel or blended:** model each channel (DTC, Amazon, wholesale) separately; a blended model hides an unprofitable channel and makes contribution margin meaningless.
- **AOV and COGS:** average order value and landed cost of goods (drives gross margin, the top line of the model).
- **Returns/refund rate:** returns eat margin twice (the sale plus reverse logistics), so this swings contribution margin.
- **CAC basis:** true paid/blended CAC and what ad spend is counted (drives CAC payback period and break-even repeat rate).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Quick Start

```bash
python3 scripts/ecom_unit_economics_calculator.py assets/flawed_model.json
```

Real output (excerpt):

```
Unit economics: Amazon FBA (flawed)
  contribution_per_order_pre_cac             -4.46
  profit_per_customer_year_one               -50.35
1. contribution margin must be positive (before CAC)
   input: average_order_value=40.0, contribution per order=-$4.46
   fix: Raise average_order_value to at least $44.60 (all other inputs unchanged), ...
FIX 1 issue(s)
```

Copy `assets/sample_model.json`, edit it with your own figures for one channel, and run it.

---

## Core Workflows

### Workflow 1: Unit Economics Model
1. Build a JSON config: COGS, fulfillment cost, payment processing %, returns %, ad spend %, AOV
2. Run calculator: `python3 scripts/ecom_unit_economics_calculator.py model.json`
3. Identify the marginal cost line items eating most of the margin
4. 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
1. Read `references/fulfillment_models.md`
2. Score each model (DTC self-fulfilled, 3PL, Amazon FBA, dropship, retail) for your stage and SKU profile
3. 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
1. Read `references/channel_strategy.md`
2. Decide channel mix: DTC site, Amazon, wholesale, retail, marketplace
3. Each channel has distinct unit economics — model them separately, never blend
4. 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

Per-order and first-year customer economics for one channel.

```bash
python3 scripts/ecom_unit_economics_calculator.py model.json
python3 scripts/ecom_unit_economics_calculator.py model.json --format json   # --json also works
cat model.json | python3 scripts/ecom_unit_economics_calculator.py -
```

**Input:** JSON object with 11 required numeric fields (see the script docstring and `assets/sample_model.json`); `channel` and `units_per_order` (default 1, stated in output) are optional. Missing fields are reported, never defaulted: there is no assumed payment fee.

**Outputs:** gross margin, contribution margin before CAC, year-one profit per customer, CAC payback (orders, months), break-even extra repeat orders. Findings quote the input and give a concrete fix (price floor, CAC ceiling, repeat orders needed).

**Assumptions:** returned goods are written off (COGS plus reverse logistics); repeat orders are evenly spaced over 12 months; the 6-month payback bar is this skill's heuristic, not an external benchmark.

**Exit codes:** `0` clean (contribution positive, payback within 6 months); `1` findings (negative contribution, payback over 6 or over 12 months); `2` unusable input (missing file, empty, invalid JSON, missing or negative field), with a one-line `BLOCKED:` message.

---

## Scope & Limitations

**In Scope:**
- Per-order unit economics for one channel: gross margin, contribution margin after acquisition cost, CAC payback and break-even repeat rate from `ecom_unit_economics_calculator.py`
- Fulfillment model choice across self-fulfilled DTC, 3PL, Amazon FBA, dropship and retail
- Channel mix and sequencing across DTC site, Amazon, wholesale, retail and marketplaces, with each channel modeled separately
- Decisions on cutting cost, raising price, changing channel mix or dropping a SKU

**Out of Scope:**
- Running paid acquisition campaigns (see `marketing/paid-ads/`)
- PCI DSS scoping for card payments (see `ra-qm-team/pci-dss-specialist/`)
- Company-level financial models, cash runway and fundraising (see `c-level-advisor/cfo-advisor/`)
- Inventory planning, demand forecasting or store setup on Shopify or Amazon

**Important Caveats:**
- The calculator takes one channel per JSON file and uses only the figures you enter. It does not pull data from a store, marketplace or ad account.
- It models per-order and first-year repeat economics. Working capital tied up in inventory is not modeled, although the skill flags it as the main cash-flow risk.
- Benchmarks such as a CAC payback under 6 months are rules of thumb. Fee levels on marketplaces and payment processors change, so update your inputs when they do.

---

## 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/sample_model.json`** (sound), `flawed_model.json`, `slow_payback_model.json`, `malformed_model.json` — calculator inputs; `unit_economics_template.json` is the annotated original
- **`assets/contract.json`** — runs checked by `scripts/skill_contract_check.py`

---

## 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.

Files in this skill

  • SKILL.md4.6 KB
  • assets/unit_economics_template.json649 B
  • references/channel_strategy.md6.7 KB
  • references/fulfillment_models.md6.1 KB
  • scripts/ecom_unit_economics_calculator.py7.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.