Sandbox
@takechanman1228/claude-ecom

Claude Code skill for ecommerce CSV business reviews

This skill turns an orders or sales CSV into a business review with KPI decomposition, findings, and action items. Claude Code handles the narrative, while the Python backend computes the numbers and health checks.

49 stars6 forksPythonUpdated 3mo ago
Who it's for

Builders who want Claude Code to explain store performance from CSV exports instead of writing the review by hand.

What it delivers

You can drop in sales data and get a structured review that explains what changed, why it changed, and what to do next.

What it does

KPI decomposition

Breaks revenue into customer and order drivers across 30, 90, and 365 day views.

Prioritized findings

Produces findings with what, why, and what to do, ordered by importance.

Action plan

Adds deadlines, success metrics, and guardrails to the review output.

Standalone CLI

Runs without Claude Code through `ecom review orders.csv` and writes `review.json` plus a basic report.

Data checks

Runs health checks before the narrative is written so the report is based on validated inputs.

How to get it

  1. 1Install as a Claude Code plugin
    /plugin marketplace add takechanman1228/claude-ecom
    /plugin install claude-ecom@claude-ecom
  2. 2Then drop your orders CSV into the project and run
    /claude-ecom:ecom review
  3. 3The compute engine works standalone — it generates review.json and a basic report,…
    pip install claude-ecom
    ecom review orders.csv
  4. 4Versions up to 0.1.3 installed via install.sh into ~/.claude/skills/ecom. That copy will…
    rm -rf ~/.claude/skills/ecom

README

Claude Ecom

claude-ecom

PyPI Downloads

Turn order/sales CSV into a business review — KPI decomposition, prioritized findings, and concrete next actions. One command.

claude-ecom demo


Who This Is For

  • Data Analysts / Marketers who write monthly business reviews from scratch every time
  • D2C brand owners, retail managers, or ecommerce managers without an analyst on staff
  • Anyone who knows revenue dropped but can't explain why

Quick Start

Install as a Claude Code plugin:

/plugin marketplace add takechanman1228/claude-ecom
/plugin install claude-ecom@claude-ecom

Then drop your orders CSV into the project and run:

/claude-ecom:ecom review

The Python backend installs itself into a private venv (~/.local/share/claude-ecom/) on session start and survives plugin updates. Requires: Claude Code, Python 3.10+

CLI only (no Claude Code)

The compute engine works standalone — it generates review.json and a basic report, without the narrative layer:

pip install claude-ecom
ecom review orders.csv

Migrating from v0.1.x (curl installer)

Versions up to 0.1.3 installed via install.sh into ~/.claude/skills/ecom. That copy will conflict with the plugin (duplicate skills). Remove it:

rm -rf ~/.claude/skills/ecom

What You Get

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

# Business Review
> Revenue reached $9.37M for the year, essentially flat YoY (-1.7%), despite strong
> short-term momentum — the last 90 days surged 84% and November posted +28.5%,
> both driven by Q4 seasonal demand rather than structural growth. The flat annual...
           30d Pulse       90d Momentum     365d Structure
Revenue    $1.47M (+ 28%)  $3.73M (+ 84%)   $9.37M (= -2%)
Orders     3,499 (+ 26%)   8,814 (+ 60%)    24,812 (- 11%)
AOV        $419 (+ 2%)     $424 (+ 15%)     $378 (+ 10%)
Customers  1,676 (+ 11%)   2,918 (+ 51%)    4,296 (= flat)
...
Revenue $9.37M (YoY: -1.7%)
├── 🔴 New Customer Revenue $1.45M (15.5%)
│   ├── New Customers: 1,559 (-57.8%)
│   └── New Customer AOV: $305
└── 🟢 Existing Customer Revenue $7.92M (84.5%)
    ├── Returning Customers: 2,737 (+345%)
    ├── Returning AOV: $395
    └── Repeat Purchase Rate: 75.4%

Executive summary → Multi-horizon dashboard → KPI trees with 🔴/🟢 signals → Findings with "what / why / what to do" → Prioritized action plan with deadlines, success metrics, and guardrails. See a full example output →

Commands

CommandDescription
/claude-ecom:ecom reviewFull business review — auto-selects 30d / 90d / 365d
/claude-ecom:ecom review 30d / 90d / 365dFocus on a specific period
/claude-ecom:ecom review How's retention?Ask a question instead of a full report

You can also just ask in plain language — "review my store", "how was last month?" — and Claude invokes the skill automatically.

Input

Any e-commerce/retail orders CSV works.

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. In many cases, column names don't need to match exactly.

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.

Example

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

See the full report → | Try it yourself →

Roadmap

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

Acknowledgements

Inspired by claude-ads by @AgriciDaniel.

License

MIT

Files in the repo

Repository payload16 top-level entries
  • .claude-plugin
  • .github
  • assets
  • bin
  • claude_ecom
  • examples
  • hooks
  • skills
  • tests
  • .gitignore
  • CHANGELOG.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • LICENSE
  • pyproject.toml
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

mvanhorn/
last30days-skill

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

62k

AI video skill for Claude Code & Codex — cinematic product videos with Remotion: 152 shot recipe cards, 209 motion previews, a production-ready template

8k

Open-source SEO + GEO skills for Claude on your real GSC/GA4/ads data. Free MCP: claude mcp add ryze --transport http https://connector.get-ryze.ai/mcp

747
Jakeschincariol/
linkedin-agent-skill

Eleven free Claude skills that run a LinkedIn account: posts off 21 hook formulas, comments, replies, profile score, weekly plan, and a humanizer that strips the AI fingerprint and scores the draft before it goes out.

108
internet-court/
internet-court-skill

The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.

5.5k
JimLiu/
baoyu-design

Run Claude Design locally as an Agent Skill — Cursor, Claude Code & more. Produce polished UI mockups, prototypes, decks & wireframes as self-contained HTML, without claude.ai/design. Best with Opus 4.8.

4k