From claude-ecom
Analyzes D2C ecommerce order data with a bundled Python engine: KPIs, pass/watch/fail health checks, period comparisons. Interprets results as a full business review or answers focused questions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-ecom:ecom review [30d|90d|365d] [question]When to use
Use for "ecommerce review", "store review", "store health", "business review", revenue/customer/product analysis of an online store, or questions over order data like "how was last month", "how's retention", "why did revenue drop".
review [30d|90d|365d] [question]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
D2C ecommerce analytics. The bundled Python engine computes KPIs, runs
D2C ecommerce analytics. The bundled Python engine computes KPIs, runs health checks, and scores performance from order transaction data; you (Claude) interpret the numbers and write the human-readable report.
Key principle: Python computes the numbers. Claude interprets them. Never present raw numbers without business context.
Arguments: $ARGUMENTS (if empty, infer intent from the conversation)
| Arguments / intent | Mode | Output |
|---|---|---|
empty or review | Full Review (auto-selects periods from data) | REVIEW.md |
review 30d / 90d / 365d | Full Review, single period | REVIEW_{PERIOD}.md |
| contains a natural-language question | Focused Query | Inline answer, no file |
Order transaction CSV. Each row = one order or line item. Required columns: order ID, order date, customer ID (or email), revenue (after discounts, before tax/shipping). Optional: quantity, SKU/product, discount amount. Column names are fuzzy-matched by the loader.
If no CSV is specified, Glob for *.csv in the working directory and ask
the user if multiple plausible candidates exist.
The ecom CLI is on PATH while this plugin is enabled:
ecom review orders.csv --output <output-dir>
ecom review orders.csv --period 90d --output <output-dir>
If ecom is not on PATH, use the bundled launcher with the same
arguments: "${CLAUDE_SKILL_DIR}/../../bin/ecom". The first run
bootstraps a private Python venv under ~/.local/share/claude-ecom/
and may take a minute; later runs are instant.
Output: review.json (or review_{period}.json for --period runs)
in the output directory (defaults to current directory).
Run the engine (add --period per Mode Selection). It computes, per
available period: summary KPIs with prior-period comparison, a
new-vs-returning KPI tree, revenue driver decomposition (AOV / volume /
mix), and — for 365d — repeat purchase rate and a 12-month
monthly_trend. It also evaluates ~30 health checks across Revenue,
Customer, and Product; each returns pass / watch / fail and powers the
🟢/🟡/🔴 markers.
Full Review:
review.json (see Data Rules below; full schema in
review-schema.md)REVIEW.md (or REVIEW_{PERIOD}.md) satisfying the Report
Contract belowFocused Query:
Your job is to weave trends and diagnostics into one coherent story. Period analysis tells you where things are heading; health checks tell you what's broken right now. The report combines both.
Before writing, verify the report will contain ALL sections in this exact order. Missing or reordered sections are a format violation.
Hard rules:
Templates, examples, and the full quality standards are in report-format.md.
Load on-demand — do NOT load all at startup. Paths are relative to this skill's directory.
| File | When to load |
|---|---|
| report-format.md | Every Full Review, before writing |
| review-narratives.md | Every Full Review — narrative arc by health level and trajectory |
| focused-query.md | Every Focused Query |
| review-schema.md | When review.json semantics are unclear |
| finding-clusters.md | Full Review — to group related issues into themes |
| recommended-actions.md | When turning watch/fail checks into actions |
| impact-formulas.md | When estimating revenue impact |
| health-checks.md | When a check's definition/threshold is unclear |
| benchmarks.md | When comparing KPIs to D2C benchmarks |
periods contains only the periods listed true in data_coverage;
all _change fields are proportional vs the prior period (0.08 = +8%).health.top_issues is the pre-sorted subset of failing checks;
action_candidates are Python's suggestions — refine and rewrite them
in business language, never copy verbatim.data_quality is non-empty, mention relevant warnings in Data
Notes, and do not present partial-month MoM as real performance signals.Write the entire report (including Data Notes) in ONE language — match the user's prompt/store language.
npx claudepluginhub takechanman1228/claude-ecom --plugin claude-ecomGenerates a weekly WooCommerce store performance review with revenue, orders, customers, products, attribution, refunds, and prioritised next actions.
Audits Wix stores via API: scores catalog health for missing images, descriptions, prices; checks inventory for low/out-of-stock items; outputs scores and status via bash script.
Transforms CSV, spreadsheet, or database data into executive-ready reports with visualizations, metrics, and trend analysis for leadership.