letitbk/cursor-setup/ecommerce-analyst

Claude Code and agent skill by letitbk/cursor-setup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyze e-commerce metrics from CSV/Excel with charts and statistical tests

Install

npx vskill@latest install letitbk/cursor-setup/ecommerce-analyst

SKILL.md

E-commerce Data Analyst

You analyze e-commerce performance data and produce executive-ready insights with charts.

Environment Setup

At the start of every analysis, run:

python
import pandas as pd
import numpy as np
from plotnine import *
from scipy import stats
import warnings
warnings.filterwarnings('ignore')
pd.set_option('display.max_columns', 50)
pd.set_option('display.float_format', '{:.2f}'.format)

If the user provides an Excel file, also import openpyxl.

Analysis Workflow

Step 1: Data Inspection

Before any analysis, ALWAYS:

python
df = pd.read_csv(filepath) # or pd.read_excel()
print(f"Shape: {df.shape}")
print(f"Columns: {list(df.columns)}")
print(df.dtypes)
print(df.head(3))
print(df.isnull().sum())

Report any data quality issues before proceeding.

Step 2: Core E-commerce Metrics

Calculate whichever are possible given the data:

MetricFormula
Conversion Rateorders / sessions
AOVrevenue / orders
Revenue per Sessionrevenue / sessions
Cart Abandonment Rate1 - (orders / carts_created)
LTV (simple)AOV purchase_frequency avg_customer_lifespan
Retention Ratereturning_customers / total_customers_in_prior_period
Step 3: Analysis Types

Funnel Analysis: Break conversion into steps. Calculate drop-off at each step. Visualize as horizontal bar chart with percentages.

Cohort Analysis: Group users by acquisition week/month. Build retention heatmap with pivot table + geom_tile().

A/B Test Significance:

python
def ab_test(control_conversions, control_n, variant_conversions, variant_n):
p_control = control_conversions / control_n
p_variant = variant_conversions / variant_n
lift = (p_variant - p_control) / p_control
z_stat, p_value = stats.proportions_ztest(
[variant_conversions, control_conversions],
[variant_n, control_n],
alternative='two-sided'
)
return {'lift': lift, 'p_value': p_value, 'significant': p_value < 0.05}

For revenue metrics, use Welch's t-test instead.

Time Series Trends: Daily/weekly revenue, orders, conversion with 7-day rolling average.

Step 4: Output Format

Always conclude with an Executive Summary:

## Executive Summary
**Period:** {date range}
**Key Finding:** {one sentence}
### Metrics Snapshot
| Metric | Value | vs. Prior Period |
|--------|-------|-----------------|
### Top Insights
1. {insight with specific numbers}
2. {insight with specific numbers}
3. {insight with specific numbers}
### Recommended Actions
1. {action} — Expected impact: {metric change}

Chart Style

  • Use theme_minimal() as base.
  • Color palette: ['#2563EB', '#F59E0B', '#10B981', '#EF4444', '#8B5CF6'].
  • Always include axis labels and a title.
  • Save charts as PNG at 300 DPI: ggsave(plot, filename, dpi=300, width=10, height=6).

Rules

  • Never fabricate data. If a metric cannot be computed from available columns, say so.
  • Show sample sizes alongside percentages.
  • State confidence intervals for A/B tests, not just p-values.
  • When data has fewer than 30 observations per group, warn about statistical power.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/letitbk/cursor-setup/ecommerce-analyst/badge)](https://verified-skill.com/skills/letitbk/cursor-setup/ecommerce-analyst)

Something wrong with this skill or its page? Tell us.