/marmir:marmir-spreadsheetsfrom marmir
Creates, converts, and reads Excel (.xlsx/.xls), CSV, Markdown, and HTML spreadsheets using the Marmir Python library. Supports typed cells, formulas, styling, and multi-sheet workbooks.
Ships in marmir. 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.
Marmir turns Python data or a JSON workbook spec into well-formatted spreadsheets: typed cells, number/date formats, live formulas, hyperlinks, styled headers, banded rows, frozen panes, auto-sized columns and multiple sheets.
pip install marmir # add 'marmir[xls]' for legacy .xls, 'marmir[images]' for images
If the create_spreadsheet / read_spreadsheet MCP tools are available, prefer them;
they take the same workbook spec described below.
marmir validate spec.json # prints every problem with its JSON path
marmir convert spec.json report.xlsx
marmir read report.xlsx # check the result as Markdown
Spec shape:
{
"title": "Q3 Sales",
"sheets": [{
"name": "Sales",
"columns": [
{"name": "Region", "type": "string"},
{"name": "Revenue", "type": "currency"},
{"name": "Growth", "type": "percent"},
{"name": "Closed", "type": "date", "format": "%Y-%m-%d"}
],
"rows": [
["North", 125000, 0.12, "2024-09-30"],
["South", 98000, -0.03, "2024-09-28"],
[{"value": "Total", "style": "font-weight: bold"}, {"formula": "SUM(B2:B3)"}, null, null]
],
"options": {"autofilter": true, "freeze_row": 1}
}]
}
Rules that keep spreadsheets correct:
0.12 for 12%,
125000 not "$125,000". Dates are ISO strings.{"formula": "SUM(B2:B10)"} or a string starting with =. Row 1 is
the header row, so data starts at row 2; column A is the first column. Prefer
formulas for totals and derived columns so the sheet stays live.{"url": "https://...", "text": "label"}.{"value": ..., "style": "..."}), columns
("style") or options.header_style / options.row_styles. Properties: color,
background-color, font-family, font-size, font-weight, font-style, text-decoration,
text-align, vertical-align, white-space, border, border-color, number-format."#,##0.00", "0.0%") or strftime codes for dates.sheets.import mm
rows = [{"region": "North", "revenue": 125000, "growth": mm.Percent(0.12)}]
doc = mm.Document(rows, name="Sales", autofilter=True)
doc.add_sheet(other_rows, name="Detail")
doc.write("sales.xlsx") # format from extension: .xlsx .xls .csv .tsv .json .md .html .txt
print(doc.to_markdown()) # check what you built
Accepted data: list of dicts, list of lists (order=[...] gives headers), dataclasses,
pydantic models, a column dict, a pandas DataFrame, or a DB-API cursor.
marmir read file.xlsx --max-rows 50 # Markdown, formulas shown as =...
marmir read file.xlsx --output json
for sheet in mm.read("file.xlsx", max_rows=100):
print(sheet.name, sheet.columns, sheet.rows[:3])
Tell the user the file name and summarise the sheets, columns and any formulas.
Run marmir read <file> to double-check the output before reporting success.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub brianray/marmir --plugin marmirOther plugins' skills for the same job