Skip to main content

Claude-powered ecommerce business review toolkit — run /ecom review to get a full-store business review with prioritized fixes

Project description

Claude Ecom

claude-ecom

Turn an ecommerce orders CSV into an executive-grade business review — KPI decomposition, prioritized findings, and concrete next actions. One command.


Who This Is For

  • Data Analysts / Marketers who write monthly business reviews from scratch every time
  • D2C brand owners who have Shopify order exports but no analyst on staff
  • Anyone who knows revenue dropped but can't explain why

What You Get

A single REVIEW.md that reads like a consultant wrote it:

Revenue $1.38M (+25.7% YoY)
├── New Customer Revenue $584K (42.3%)
│   ├── New Customers: 1,472 (+8.2%)
│   └── New Customer AOV: $397 (+3.1%)
└── Existing Customer Revenue $799K (57.7%)
    ├── Returning Customers: 1,293 (+12.4%)
    ├── Returning AOV: $618 (+14.8%)
    └── Repeat Purchase Rate: 38%

Executive summary → KPI trees → findings with "what / why / what to do" → prioritized action plan with deadlines and guardrails.

Health checks across Revenue (40%), Customer (30%), and Product (30%) power the signals automatically.

Example

Tested on Online Retail II (UCI, CC BY 4.0) — a real UK retailer with ~1M transactions over 2 years.

Revenue reached $8.6M for the year but was essentially flat YoY (-2.3%), masking a dramatic shift underneath: new customer acquisition collapsed 57.7% while the returning customer base expanded nearly 4x. Short-term momentum is strong — the last 90 days surged 87% on Q4 seasonal demand — but this growth is built entirely on an aging customer base and aging catalog (60% of SKUs in decline stage). The most urgent priority is relaunching acquisition channels to replenish the customer pipeline before retention gains plateau.

            30d Pulse        90d Momentum      365d Structure
Revenue     $1.32M (+ 27%)   $3.46M (+ 87%)    $8.6M (- 2%)
Orders      2,681 (+ 28%)    6,626 (+ 68%)     17,756 (- 4%)
AOV         $494 (- 1%)      $522 (+ 11%)      $484 (+ 1%)
Customers   1,628 (+ 12%)    2,889 (+ 52%)     4,264 (= flat)

The report surfaces findings with business context and concrete actions:

New customer acquisition collapsed (365d)

What is: New customer count fell 57.7% YoY (from ~3,700 to 1,566), and new customer revenue share dropped to 20.3%.

Why it matters: The 72.4% repeat purchase rate and 5-day median time-to-second-purchase are exceptional — well above D2C benchmarks. However, even the strongest retention engine needs fresh customers entering the top of the funnel. At the current rate of decline, the returning customer base will begin shrinking within 2-3 quarters as natural churn outpaces new-to-repeat conversion.

What to do: Reactivate acquisition channels with dedicated budget, separate from retention spend, targeting a return to 200+ new customers per month.

See the full report → | Try it yourself →

Prerequisites

Install

Claude Code skill (recommended)

curl -fsSL https://raw.githubusercontent.com/takechanman1228/claude-ecom/v0.1.0/install.sh | bash

CLI only (for developers)

pipx install claude-ecom
Development install (from source)
git clone https://github.com/takechanman1228/claude-ecom.git
cd claude-ecom && bash install.sh

This installs from local source instead of PyPI — useful for development and testing.

The installer creates a private Python environment in ~/.claude/skills/ecom/.venv/ — no global packages are modified. The skill is ready in Claude Code.

Usage

/ecom review                        # full business review — auto-selects 30d / 90d / 365d
/ecom review 90d                    # quarterly focus
/ecom review How's retention?       # ask a question instead of generating a full report

Drop your orders CSV into the conversation and run the command. Claude handles the rest.

Input

Any ecommerce orders CSV works. Shopify exports drop in directly.

Required columns: order ID, order date, customer ID or email, revenue (after discounts, before tax/shipping). Optional (enables deeper analysis): quantity, SKU or product name, discount amount.

How It Works

Orders CSV → Python engine → review.json → Claude → REVIEW.md

Python computes every KPI and runs health checks. Claude reads the structured output and writes the business narrative. Numbers are precise because Python owns them. Interpretation is sharp because Claude owns that.

Using the Python CLI directly

After installation, the CLI is available via the wrapper:

~/.claude/skills/ecom/bin/ecom review orders.csv
~/.claude/skills/ecom/bin/ecom review orders.csv --period 90d
~/.claude/skills/ecom/bin/ecom validate orders.csv
Development
pip install -e ".[dev]"
pytest tests/ -v

Roadmap

  • Shopify API integration (skip CSV export)
  • Weekly digest mode
  • Multi-store comparison

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_ecom-0.1.0.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_ecom-0.1.0-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file claude_ecom-0.1.0.tar.gz.

File metadata

  • Download URL: claude_ecom-0.1.0.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_ecom-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1c7388456dca13dc09972e0b8bedce61db4f9e03ee62ccf012556def57f4bf0
MD5 01a72a4ef3e83bd2a825d694c86b38f1
BLAKE2b-256 f9af10a8ebdd8f3dab358d58a6784d0c9d62f6381856b716fcbbdf8495e0a833

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_ecom-0.1.0.tar.gz:

Publisher: publish.yml on takechanman1228/claude-ecom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_ecom-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: claude_ecom-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_ecom-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0ca0ec9917a5fad37a619539b6b49b3f3b14b8fe0e9e1722ce32bacabb233a1
MD5 d894f8b7e340613ae3dee45b2432d994
BLAKE2b-256 f1d9d438714cfb15e11be85bcd725d6a65bbe2b7f67fed53108fcb42e495312f

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_ecom-0.1.0-py3-none-any.whl:

Publisher: publish.yml on takechanman1228/claude-ecom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page