agentleFS
shiwenwenshiwenwen/hope-agent/skills/office-xlsx/SKILL.md

office-xlsx

Skill1.7k starsChanged 8 months agoMITView on GitHub

Use when the user asks to create, inspect, verify, analyze, format, or deliver Excel `.xlsx` workbooks, Google Sheets-targeted spreadsheet artifacts, trackers, budgets, models, tables, dashboards, formulas, CSV/TSV-to-XLSX conversions, or spreadsheet-ready data packs.

1 other project uses a version of this.

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the shiwenwen/hope-agent repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the bundled scripts in this skill package to produce editable .xlsx workbooks.

    line 28
  2. Very specific:

    Use formulas for derived values instead of hardcoded calculated outputs.

    line 46
  3. Distinctive:

    If visual QA matters and LibreOffice is available, run:

    line 65
  4. Very specific:

    When formulas matter, use formula_audit.py --write-cache and deliver the cached workbook unless the audit reports unsupported formulas that …

    line 91
  5. Distinctive:

    Keep important values visible.

    line 129
  6. Distinctive:

    Use one workbook, not many disconnected CSV-like sheets, when relationships between tabs matter.

    line 130
  7. Distinctive:

    Prefer real Excel tables, filters, validations, conditional formats, and charts when the workbook is meant to be used repeatedly.

    line 132
  8. Distinctive:

    Keep formulas editable, audit formulas before delivery, and write cached values for supported formulas when possible.

    line 134
  9. Very specific:

    When patching an existing workbook, preserve unrelated package parts and rerun inspect_xlsx.py plus formula_audit.py.

    line 138
  10. Distinctive:

    If preview rendering fails because LibreOffice or a PDF-to-PNG renderer is missing, state exactly which verification passed.

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Office XLSX

Use the bundled scripts in this skill package to produce editable .xlsx workbooks. The builder writes formulas, styles, bar/column/line/pie charts, real Excel tables, data validation, conditional formatting, and workbook recalculation hints. The skill activation metadata includes Skill directory; treat that as SKILL_DIR and run scripts from SKILL_DIR/scripts/.

Workbook Shape

For nontrivial workbooks, prefer:

  1. Summary or dashboard sheet first.
  2. Inputs / assumptions sheet next.
  3. Detail or source data sheets after that.
  4. Checks sheet only when formulas, reconciliations, or model integrity matter.

Workflow

  1. Normalize source data before writing the workbook.
  2. Use formulas for derived values instead of hardcoded calculated outputs. Strings beginning with = are written as Excel formulas.
  3. For structured workbook creation, create a JSON spec in the working directory and run:
python3 "$SKILL_DIR/scripts/check_env.py"
python3 "$SKILL_DIR/scripts/build_xlsx.py" --spec spec.json --out output.xlsx
python3 "$SKILL_DIR/scripts/inspect_xlsx.py" --verify output.xlsx
python3 "$SKILL_DIR/scripts/formula_audit.py" output.xlsx
  1. For CSV/TSV conversion, run one or more inputs into one workbook:
python3 "$SKILL_DIR/scripts/csv_to_xlsx.py" --input data.csv --input lookup.tsv --sheet Data --sheet Lookup --out output.xlsx
python3 "$SKILL_DIR/scripts/inspect_xlsx.py" --verify output.xlsx
  1. If visual QA matters and LibreOffice is available, run:
python3 "$SKILL_DIR/scripts/render_preview.py" output.xlsx
  1. To patch an existing workbook without rebuilding it, create a patch JSON and run:
python3 "$SKILL_DIR/scripts/patch_xlsx.py" --input existing.xlsx --patch patch.json --out output.xlsx
python3 "$SKILL_DIR/scripts/inspect_xlsx.py" --verify output.xlsx
python3 "$SKILL_DIR/scripts/formula_audit.py" output.xlsx --write-cache cached-output.xlsx

Patch actions:

{
  "actions": [
    {"action": "append_rows", "sheet": "Data", "rows": [["New", 123, "=B2*2"]]},
    {"action": "set_cell", "sheet": "Summary", "cell": "B2", "value": "=SUM(Data!B:B)"}
  ]
}
  1. When formulas matter, use formula_audit.py --write-cache and deliver the cached workbook unless the audit reports unsupported formulas that require Excel/LibreOffice recalculation. For broad formula coverage, run:
python3 "$SKILL_DIR/scripts/recalculate_xlsx.py" output.xlsx --out recalculated.xlsx
python3 "$SKILL_DIR/scripts/inspect_xlsx.py" --verify recalculated.xlsx
  1. Deliver the .xlsx path or attach it with send_attachment.

Spec Shape

{
  "title": "Workbook title",
  "sheets": [
    {
      "name": "Summary",
      "rows": [["Metric", "Value"], ["Revenue", 1200000], ["Margin", "=B2*0.42"]],
      "tables": [{"name": "SummaryTable", "ref": "A1:B3"}],
      "data_validations": [{"range": "A2:A10", "type": "list", "formula1": ["Revenue", "Margin"]}],
      "conditional_formats": [{"range": "B2:B10", "type": "colorScale"}],
      "charts": [
        {"type": "column", "title": "Summary", "categories": "$A$2:$A$3", "values": "$B$2:$B$3", "anchor": "D2"},
        {"type": "line", "title": "Trend", "categories": "$A$2:$A$3", "values": "$B$2:$B$3", "anchor": "D18"}
      ],
      "column_formats": ["text", "currency"],
      "column_widths": [24, 16],
      "freeze_top_row": true,
      "autofilter": true
    }
  ]
}

Quality Bar

  • Keep important values visible; avoid tiny columns and clipped headers.
  • Use one workbook, not many disconnected CSV-like sheets, when relationships between tabs matter.
  • Prefer real Excel tables, filters, validations, conditional formats, and charts when the workbook is meant to be used repeatedly.
  • Keep formulas editable, audit formulas before delivery, and write cached values for supported formulas when possible. Supported audit functions include common arithmetic, comparisons, SUM, AVERAGE, MIN, MAX, COUNT, MEDIAN, ROUND, ABS, and simple IF.
  • When patching an existing workbook, preserve unrelated package parts and rerun inspect_xlsx.py plus formula_audit.py; use recalculate_xlsx.py when the formula surface exceeds the bundled evaluator.
  • If preview rendering fails because LibreOffice or a PDF-to-PNG renderer is missing, state exactly which verification passed; do not imply visual QA passed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.