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.2/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.2.tar.gz (39.2 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.2-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_ecom-0.1.2.tar.gz
  • Upload date:
  • Size: 39.2 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.2.tar.gz
Algorithm Hash digest
SHA256 712b037b08c37b9d56a33277eaa2be6d028b33047e435149cb12f356978a40b5
MD5 cde808d74a787231b44f7042e0b59851
BLAKE2b-256 ac891e35b3ca96cb708e27f81e11694403762c8c4a5c6e606bcdc7121beb5e4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_ecom-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: claude_ecom-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c742d38b72391490d7bf7852c3489a4af0f365641fe483ad46e7e74764f7cb89
MD5 b074a9e6cd1775c3180faa80fdfd9ddc
BLAKE2b-256 ba7d4ef509572126b7f978fcd0b1af195718fe6f5c9b8c00b1f2fc6f38751e4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_ecom-0.1.2-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