Skip to content
Back to skills

Open Xlsx

ASecurity

Create, read and edit Excel (.xlsx) spreadsheets with openpyxl and pandas. Use for any .xlsx or spreadsheet file request, for example a workbook to produce, or an existing one to read, fix or extend.

  • 27 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
ai-agentspython

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 26, 2026

npx -y skills add pymc-labs/daimon --skill open-xlsx --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Open Xlsx?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Open Xlsx
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pymc-labs-open-xlsx/badge)](https://www.skillsdirectory.com/skills/pymc-labs-open-xlsx)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: open-xlsx
description: Create, read and edit Excel (.xlsx) spreadsheets with openpyxl and pandas. Use for any .xlsx or spreadsheet file request, for example a workbook to produce, or an existing one to read, fix or extend.
---

# Excel workbooks

Use `openpyxl` for structure, formulas and formatting and `pandas` for bulk data
(`pd.read_excel`, `df.to_excel`); both ship with the sandbox. If openpyxl is missing
and `pip install openpyxl` has no network, say so.

## Read

`load_workbook("in.xlsx", data_only=True)` gives the last values Excel computed;
without `data_only` you get the formulas. A file written by a script has no
cached values, so `data_only=True` reads `None` until it is opened in Excel.

## Create and edit

```python
from openpyxl import load_workbook, Workbook
wb = Workbook(); ws = wb.active
ws.append(["Item", "Qty", "Price", "Total"])
ws["D2"] = "=B2*C2"            # keep the logic live: write formulas, not results
ws.column_dimensions["A"].width = 24
wb.save("out.xlsx")
```

Edit an existing book with `load_workbook("in.xlsx")` (not `data_only`, or the
formulas are lost on save), then save under a new name. Use number formats
(`cell.number_format = "#,##0.00"`), freeze headers (`ws.freeze_panes = "A2"`),
and `openpyxl.chart` for charts.

## Check

Reload the saved file and read back the cells you wrote. Formulas are not
evaluated by openpyxl: when you need their values, compute them in pandas too
or convert with `soffice --headless --convert-to xlsx` (LibreOffice) to
recalculate, if it exists.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.