Summary tables by group: total sales, profit margin, share of total, average order and pivots, each checked against the grand total. Not for models or segments; use modelling or customer-analytics.
Ships in data-analytics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use for tabular summaries, group breakdowns, totals, ratios or margins, shares of total, per-entity averages, pivots and validated joins. Every reported number must come from observed tool output or executed code in the current session, with explicit grain and checks.
data via gateway first, then pandasdata capability through gateway(op="call", capability="data", args={op: "inspect"|"stats"|"select", path: "<file>", ...}) (it gives most summaries exactly without Python on CSV, TSV, xlsx with sheet as table, and Parquet): args={op: "stats", path: "<file>"} profiles columns; args={op: "stats", path: "<file>", where: {...}, group_by: ["<col>"], aggregates: ["count", "count_distinct:Order ID", "sum:Sales", "mean:Sales", "max:Sales", "sum:Quantity*UnitPrice"]} filters and returns one row per group plus the grand total they reconcile to, exact only with complete: true. Margins and shares are ratios of those sums. args={op: "select", path: "<file>", where: {...}} shows sample rows, never counts.uv run python ...) for joins, running totals, derived columns, distributions, notebooks and exports. Never run pip install; keep data/ read-only and write outputs under out/.grain-check).One question, one concise step: compute the result with units (currency, orders, %, rows), verify row counts before/after every filter and join, that subtotals sum to the grand total (except non-additive distinct counts) and any reference figure within a stated tolerance, separate observed numbers from interpretation, and name one caveat. When editing a notebook, preserve user notes and re-run top to bottom (uv run jupyter nbconvert --to notebook --execute <notebook.ipynb> --output-dir out).
Load CSVs once with explicit dates, string codes and nullable integer IDs (numeric IDs with blanks become float64 like 17850.0 without Int64 or string):
df = pd.read_csv(
ROOT / "data" / "transactions.csv",
parse_dates=["InvoiceDate"],
dtype={"InvoiceNo": "string", "StockCode": "string", "CustomerID": "Int64"},
)
| Question | pandas | BI / Tableau equivalent | Trap |
|---|---|---|---|
| Row count | len(df) | Table (Count) | Counts rows/lines, not distinct orders |
| Distinct entities | df["Order ID"].nunique() | COUNTD(Order ID) | count() counts non-null rows; len(df["ID"].unique()) counts NaN as one extra entity |
| Prefix / scope split | cancel = df["InvoiceNo"].str.startswith("C"); compute gross (~cancel), cancelled (cancel), net (all) | Conditional filter / set | Verify gross + cancelled == net; never report net as bare "sales" |
| Total by dimension | df.groupby("Category")["Sales"].sum() | Dimension on Rows, SUM(Sales) | Sort and state units; group by stable ID/code (StockCode), attaching the most frequent description only as a label |
| Filter | df[df["Discount"] > 0] or df["StockCode"].str.match(r"^\d") | Filters shelf | Always print rows kept vs original; state excluded dominant categories and their share |
| Cross-tab | pd.pivot_table(df, index="Region", columns=df["Order Date"].dt.year, values="Sales", aggfunc="sum", margins=True) | Rows x Columns with Grand Totals | margins=True adds Grand Totals |
| Per-entity average | df.groupby("Order ID")["Sales"].sum().mean() | SUM([Sales]) / COUNTD([Order ID]) | df["Sales"].mean() is average per row/line |
| Ratio / margin | g["Profit"].sum() / g["Sales"].sum() | SUM([Profit]) / SUM([Sales]) | Averaging row-level ratios weights small and large rows equally |
| Percent of total | s / s.sum() | Quick Table Calc -> Percent of Total | State the denominator (row, column or entire table) |
| Partial period rate | days = df.groupby(month)["Date"].agg(lambda s: s.dt.normalize().nunique()); monthly / days | Active days per period | Check min()/max() dates; compare an incomplete edge month per active day, never as a full month |
| Running total | sort_values(...) then .cumsum() | Quick Table Calc -> Running Total | Always sort explicitly before .cumsum() |
| Validated join | df.merge(other, on="Order ID", how="left", validate="many_to_one") | Relationship on key | Check len() before/after and inspect unmatched keys |
| Entity distribution | aggregate per entity first, then pd.cut(values, bins=..., right=False) | {FIXED [Order ID] : SUM([Sales])} + bins | Left-closed bins match Tableau; binning raw lines answers a different question |
Never quote an unprinted number. When a check disagrees, trace the cause (grain, filter, date part, join multiplicity, rounding) instead of tweaking outputs to force agreement. Make no causal claims the data cannot support; say what data would be needed.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/data-analytics:pandas-descriptivefrom data-analytics
npx claudepluginhub panstudio/pancode --plugin data-analytics9 skills in this plugin
/analysis-projectStart a pinned uv analysis project or check one is ready (check_workspace.py), then lay out its notebook and prompt appendix. Read-only check; syncs only with the user's go. Not for the analysis itself; use pandas-descriptive./chartsMake and check bar, line, histogram or scatter charts (plotly_chart.py, matplotlib): backing table printed, sorted, labelled, bars from zero. Not for dashboards; use streamlit-app./customer-analyticsCohort retention, top-customer share and RFM (cohort_table.py, pareto_rfm.py) for repeat and best customers, counting customers and orders, not lines. Not for k-means clusters; use modelling./excelTurn spreadsheet work into Python: VLOOKUP, SUMIFS and pivot tables to pandas, .xlsx read and write, with merged-header, text-number and total traps. Not for Tableau exports; use tableau./grain-checkCheck messy rows and double counts before totals (grain_report.py): row meaning, cancellations, negative quantities, missing IDs, duplicates. Not for Tableau exports; use tableau./modellingForecast sales (ets_holdout.py), predict outcomes or cluster customers, each judged against a simple baseline on held-out data with leakage checks. Not for RFM, Pareto or cohort tables; use customer-analytics.