Turn 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.
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 when reading or writing .xlsx workbooks, translating spreadsheet formulas or PivotTables into Python, or choosing between PanCode's data capability (gateway(op="call", capability="data", args={op: ..., path: ...})), DuckDB SQL MCP, Excel MCP and pandas. Keep data/ read-only, write outputs under out/, and enforce the same grain rules (COUNT(DISTINCT ...), SUM(Profit) / SUM(Sales)) across every tool.
data via gateway first)| Task | Best tool | Why |
|---|---|---|
Profile, filter-count or total a sheet or table (SUMIFS/COUNTIFS style) on xlsx, CSV, TSV or Parquet (or query SQLite with op="select" + sql) | gateway(op="call", capability="data", args={op: ..., path: ...}) (op: "inspect" to list sheets/tables; op: "stats" with where, group_by, aggregates; table names the sheet) | Built-in, read-only, exact when complete: true, no Python; xlsx date cells become ISO dates and Excel error cells count as missing; pass date_format for ambiguous day/month text. op: "select" shows sample rows, never counts. The Parquet reader downloads from npm once. |
Ad-hoc SQL join, filter, GROUP BY or window function over local CSV or Parquet | duckdb MCP (execute_query) | One query over read_csv_auto('data/file.csv') or read_parquet(...) without writing a script; double-quote column names with spaces. |
Inspect .xlsx structure/formulas (describe_workbook, read_range, trace_formula) or deliver a formatted .xlsx with live formulas, charts or PivotTables | excel MCP (create_workbook, import_csv, write_range, create_pivot_table) | Preserves Excel formulas, merged cells, formatting and PivotTables; pd.read_excel reads cached values only and drops formatting. |
Reproducible cleaning, transformations, charts, statistical models, ML, or bulk .xlsx processing | pandas (uv run python) with openpyxl | Versioned and re-runnable offline via uv run; also the fallback if uvx cannot reach PyPI on first MCP launch. |
State the tool choice before running. When duckdb or excel MCP tools are not attached directly, locate them via gateway(op="find", query="duckdb"|"excel") and invoke via gateway(op="call", ...). Both servers launch locally via uvx (mcp-server-motherduck==1.1.1 in-memory :memory:, excel-mcp-server==2.3.7 scoped to ${WORKSPACE_ROOT}).
| Excel | pandas | Watch out |
|---|---|---|
COUNTA(A:A) (minus header) | len(df) | Counts rows/lines, not distinct orders or customers |
COUNTA(UNIQUE(A:A)) | df["InvoiceNo"].nunique() | nunique() skips blanks; len(df["ID"].unique()) counts NaN as an extra entity |
COUNTIF(A:A, "C*") | df["InvoiceNo"].str.startswith("C").sum() | Load code/ID columns as dtype="string" before .str checks |
Calculated column =D2*F2 | df["Revenue"] = df["Quantity"] * df["UnitPrice"] | Vectorised over every row; state whether cancellations/negatives stay in |
VLOOKUP / XLOOKUP | df.merge(lookup, on="Key", how="left", validate="many_to_one") | Excel silently takes the first match; merge fans out on duplicate keys unless validate= catches it |
SUMIFS / COUNTIFS / AVERAGEIFS | df.loc[mask].groupby("Category")["Sales"].sum() (or .size(), .nunique(), .mean()) | State whether COUNTIFS counts lines (size) or distinct entities (nunique) |
AVERAGE | df.groupby("Order ID")["Revenue"].sum().mean() (per order) | df["Revenue"].mean() is the line average, not average order value |
PivotTable | pd.pivot_table(df, index="Region", columns="Year", values="Sales", aggfunc="sum", margins=True) | Check margins=True denominator for averages and ratios |
| AutoFilter | df.loc[(df["Region"] == "East") & (df["Sales"] > 0)] | Print rows kept vs original |
IF / IFS conditional column | np.where(cond, a, b) or np.select(conds, choices, default=...) | Check null handling (NaN evaluates False in comparisons) |
YEAR, MONTH, EOMONTH, DATEDIF | pd.to_datetime(...), .dt.year, .dt.month, .dt.to_period("M").dt.to_timestamp("M"), (end - start).dt.days | Parse dates explicitly and count NaTs |
Number formats ($#,##0.00, 0.0%) | Keep raw float/int in pandas; format on display or export (cell.number_format) | Formatting inside pandas turns numbers into strings and breaks arithmetic |
AVERAGE skips blanks (matching pandas .mean()), while Excel + and SUM treat blanks as 0; pandas a + b produces NaN unless .fillna(0) is explicit.float64 (17850.0); pass dtype={"CustomerID": "Int64"} (nullable integer) or "string" so IDs stay clean labels.'00123) load as text in pandas; Excel coerces text in + yet skips it in SUM/AVERAGE. Clean numeric columns with pd.to_numeric(..., errors="coerce") and count new NaNs; keep IDs and postal codes as dtype="string".pd.read_excel puts a merged label only in the top-left cell and leaves the rest NaN. Inspect the sheet first (excel MCP describe_workbook/read_range), then pass explicit header= (0-indexed header row) or forward-fill multi-row headers.SUBTOTAL skips hidden rows; pd.read_excel reads every row including hidden ones. Check ws.row_dimensions[r].hidden in openpyxl whenever a sheet uses AutoFilter or hidden rows.MM/DD/YYYY with DD/MM/YYYY. Inspect raw values before pd.to_datetime(..., format=..., dayfirst=...) and report NaT counts.SUM(Profit)/SUM(Sales)) recomputes over all underlying rows. Never average group averages or row ratios in pandas; recompute from raw sums and counts..xlsx filesInspect sheets first with gateway(op="call", capability="data", args={op: "inspect", path: "<file>"}) (lists sheets, headers and column types without Python; use excel MCP describe_workbook when you need formulas or merged cells), pass explicit sheet_name, header and string dtype for codes/IDs, and remember pd.read_excel reads cached formula values only:
df = pd.read_excel(
"data/workbook.xlsx",
sheet_name="Transactions",
header=2,
dtype={"Postal Code": "string", "CustomerID": "string"},
)
For colleague-ready .xlsx exports under out/, use pd.ExcelWriter("out/summary.xlsx", engine="openpyxl") with named sheets (index=False), set number_format (#,##0.00, 0.0%) and column widths, or use the excel MCP server when colleagues need live formulas, charts or PivotTables.
What SKILL.md sets; muted values are Claude Code's defaults
/data-analytics:excelfrom 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.Other plugins' skills for the same job