Make a finished Excel workbook (.xlsx) in ONE command: from a CSV (or several) with typed columns, header styling, auto-widths, filters, frozen header, totals row with real formulas, optional pivot-style summary sheets (sum/count/mean by a column) and a chart. Also builds a workbook from a JSON spec of sheets and rows. Use for any request for an Excel file, spreadsheet, regneark, budget, overview, summary by category, or converting CSV to Excel. Triggers: Excel, xlsx, spreadsheet, regneark, CSV to Excel, summary table, totals.
Say it in your own words; the assistant finds this recipe by itself. Examples:
Make a finished Excel workbook (.xlsx) in ONE command: from a CSV (or several) with typed columns, header styling, auto-widths, filters, frozen header, totals row with real formulas, optional pivot-style summary sheets (sum/count/mean by a column) and a chart. Also builds a workbook from a JSON spec of sheets and rows. Use for any request for an Excel file, spreadsheet, regneark, budget, overview, summary by category, or converting CSV to Excel. Triggers: Excel, xlsx, spreadsheet, regneark, CSV to Excel, summary table, totals.
Do not write openpyxl code by hand. One command builds, validates and reports.
python3 /skills/sheet-builder/scripts/build_sheet.py /work/in/sales.csv /work/out/sales.xlsx \
--summary region:units:sum,price:mean --summary product:units:sum --chart region:units:sum
SUM formulas for numeric columns (up to 1,048,000 rows).--summary <by>:<col>:<agg>[,<col>:<agg>…] adds a sheet "By --chart <by>:<col>:<agg> adds a bar chart on that summary sheet.--derive "revenue=units*price" adds a computed column (Excel formula per row) before summaries.{"sheets": [{"name": "Budget 2027", "columns": ["Post", "Q1", "Q2", "Q3", "Q4"],
"rows": [["Salaries", 120000, 120000, 125000, 125000], ["Marketing", 20000, 25000, 25000, 30000]],
"totals": true}]}
python3 /skills/sheet-builder/scripts/build_sheet.py /work/spec.json /work/out/budget.xlsx
Prints OK <sheets> sheets, <rows> rows -> file or a clear error. Give the person the download link.
Editing an existing workbook in place (keep its formatting) or reading one: use minimax-xlsx
or python -m markitdown file.xlsx.
SKILL.mdscripts/build_sheet.pyWritten by Percerno, MIT licence.