microsoft-office
Skill3 starsChanged 53 days agoMITView on GitHub
Create, read, edit, and template Word, PowerPoint, and Excel files offline with small Python CLIs. Use for reports, letters, decks, workbooks, tracked changes, comments, and CSV conversion. Not for legacy binary formats (.doc/.ppt/.xls), ODF files, or WYSIWYG layout work.
- Deletes or force-pushes
- Installs packages
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- rodos4312/Meu-Agentedited, first seen Nov 15, 2026
- NousResearch/hermes-agentedited, first seen Nov 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- NousResearch/hermes-agent★ 264k74% same
- rodos4312/Meu-Agent★ 073% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-harness-settings-paritySkill
- agent-operating-contract-evolutionSkill
- ai-coding-agent-delegationSkill
- arch-improvement-planSkill
- contract-bound-deliverablesSkill
- cross-agent-repair-routingSkill
- define-goalSkill
- delegated-work-acceptanceSkill
- design-an-interfaceSkill
- design-mdSkill
- discord-rich-messageSkill
- dotnet-repo-workflowSkill
- evidence-backed-analytical-writingSkill
- evidence-boundary-disciplineSkill
- find-nearbySkill
- gddSkill
- generated-runtime-repairsSkill
- ghc-searchSkill
- git-auto-sync-pipelinesSkill
- github-code-reviewSkill
- github-repo-managementSkill
- grounded-citationsSkill
- harness-engineeringSkill
- hermes-context-file-loadingSkill
- hermes-modelsSkill
- hermes-updatesSkill
- hoa-introspect-distillSkill
- hoa-introspectSkill
- hoa-skill-reviewSkill
- hoa-skill-workSkill
- html-artifactSkill
- jupyter-live-kernelSkill
- kanban-workflowsSkill
- m365-copilot-cdpSkill
- measurement-campaign-evidenceSkill
- notes-to-prdSkill
- ocr-and-documentsSkill
- official-document-verificationSkill
- omp-headless-orchestrationSkill
- ops-claim-verificationSkill
- package-release-verificationSkill
- plan-to-issuesSkill
- project-phase-closeoutSkill
- report-claim-auditSkill
- research-stream-consolidationSkill
- review-revision-candidatesSkill
- rss-feedsSkill
- skill-library-curationSkill
- skill-porting-and-publishingSkill
- spec-convergenceSkill
- structural-validity-gatesSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- teams-cdpSkill
- tmux-agent-controlSkill
- whisperSkill
- writing-plansSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Create, read, edit, and template Word (.docx), PowerPoint (.pptx), and Excel (.xlsx, .csv) files offline with small Python CLIs built on …
- Very specific: line 37
Not for .doc/.ppt/.xls: convert first with soffice --headless --convert-to docx|pptx|xlsx old-file when LibreOffice is installed.
- Very specific: line 39
Not for .odt/.odp/.ods, or WYSIWYG layout work.
- Very specific: line 75
Run every helper with "$PY".
- Very specific: line 85
Every helper lives in scripts/, is an argparse CLI with --help, prints JSON to stdout, and exits non-zero on failure.
- Distinctive: line 113
Create, edit, or read with that format's helpers.
- Distinctive: line 115
Verify the result as the reference's Verification section says, then give the user the exact output path.
- Distinctive: line 120
When LibreOffice is installed, convert headlessly:
- Very specific: line 127
Check first with command -v soffice || command -v libreoffice.
- Distinctive: line 143
Encoding: Write specs as UTF-8; the helpers read UTF-8 explicitly.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Microsoft Office Skill
Create, read, edit, and template Word (.docx), PowerPoint (.pptx), and
Excel (.xlsx, .csv) files offline with small Python CLIs built on
python-docx, python-pptx, and openpyxl. Office itself is never needed. It does
not open legacy binary formats (.doc, .ppt, .xls) and does not render
pages without LibreOffice.
When to Use
Pick the format, then read its reference before working:
| File | Reference | Typical asks |
.docx | references/word.md | reports, letters, contracts, {{token}} templates, tracked changes, comments |
.pptx | references/powerpoint.md | pitch decks, brand-template decks, chart refreshes, speaker notes, slide PNGs |
.xlsx, .csv | references/excel.md | styled multi-sheet workbooks, formulas, charts, CSV conversion, row/column restructures |
Deeper notes: references/revisions-and-comments.md (Word review markup) and
references/restructuring.md (Excel reference shifting).
- Not for
.doc/.ppt/.xls: convert first withsoffice --headless --convert-to docx|pptx|xlsx old-filewhen LibreOffice is installed. - Not for
.odt/.odp/.ods, or WYSIWYG layout work.
Prerequisites
- Python 3.10+ with
python-docx,python-pptx, andopenpyxl(import namesdocx,pptx,openpyxl). Pick the interpreter from a shell. Use
pythonwhen it already imports the libraries. Otherwise build a shared, pinned documents environment in the user cache: it survives container restarts, never touches the application interpreter, and is safe to run from several agents at once. Use this exact block in every document skill so they all share one environment:python -c "import docx, pptx, openpyxl" 2>/dev/null && PY=python || { PY="${XDG_CACHE_HOME:-$HOME/.cache}/office-docs-venv/bin/python" "$PY" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null || ( # Safe to run from several agents at once: each caller builds a private venv, # a symlink publishes the first finished one atomically, the others delete theirs; # a published build is replaced and deleted only while it still fails to import. cache="${XDG_CACHE_HOME:-$HOME/.cache}" mkdir -p "$cache" && cd "$cache" && stage="$(mktemp -d office-docs-venv.XXXXXX)" || exit 1 old="$(readlink office-docs-venv)" # the published build, if any (another agent may have just published it) python3 -m venv "$stage" && "$stage/bin/python" -m pip install -q --disable-pip-version-check python-docx==1.2.0 openpyxl==3.1.5 python-pptx==1.0.2 reportlab==5.1.0 pypdf==6.21.4 pdfplumber==0.11.10 pypdfium2==5.14.0 && "$stage/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" && if [ -z "$old" ]; then python3 -c 'import os, sys; os.symlink(*sys.argv[1:])' "$stage" office-docs-venv elif [ "$(readlink office-docs-venv)" = "$old" ] && ! "$old/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null; then ln -s "$stage" "$stage.lnk" && python3 -c 'import os, sys; os.replace(*sys.argv[1:])' "$stage.lnk" office-docs-venv && case "$old" in office-docs-venv.??????) rm -rf "$old" ;; esac fi 2>/dev/null [ "$(readlink office-docs-venv)" = "$stage" ] || rm -rf "$stage" "$stage.lnk" ) } export PY "$PY" scripts/docx_create.py --helpRun every helper with
"$PY". If the host already provides a pinned documents environment manager, use the interpreter it prints instead of building the cache venv; neverpip installinto the interpreter that runs the host application or the one that manager owns.- Optional: LibreOffice (
soffice) for PDF export, Excel recalculation, and slide rendering, plus poppler (pdftoppmorpdftocairo) for slide PNGs. The helpers that need them report what is missing and exit 0.
How to Run
Every helper lives in scripts/, is an argparse CLI with --help, prints
JSON to stdout, and exits non-zero on failure. Run them from the skill
directory. Author JSON specs with your file-writing tool; read results from
stdout or the output files.
"$PY" scripts/docx_create.py spec.json out.docx
"$PY" scripts/pptx_create.py deck.json out.pptx
"$PY" scripts/xlsx_create.py spec.json report.xlsxQuick Reference
| Task | Word | PowerPoint | Excel |
| Create from JSON spec | docx_create.py | pptx_create.py | xlsx_create.py, csv_to_xlsx.py |
| Read back | docx_read.py --text/--structure | pptx_read.py --outline | xlsx_read.py --sheets/--json |
| Edit | docx_edit.py | pptx_edit.py | xlsx_edit.py, xlsx_restructure.py |
| Fill a template | docx_template.py | pptx_from_template.py | — |
| Review / check | docx_revisions.py, docx_comments.py, docx_validate.py | pptx_render.py (slide PNGs) | xlsx_recalc.py, xlsx_to_csv.py |
The per-format reference has the full flag table.
Procedure
- Identify the format from the file extension or the ask, and read its
reference (
references/<format>.md). - Set
PYwith the Prerequisites block once per session. - Create, edit, or read with that format's helpers; pass an output path to keep the original whenever the helper supports one.
- Verify the result as the reference's Verification section says, then give the user the exact output path.
Converting to PDF
When LibreOffice is installed, convert headlessly:
soffice --headless --convert-to pdf --outdir out/ file.docx # also .pptx, .xlsx
soffice --headless --convert-to csv --outdir out/ report.xlsx # first sheet onlyCheck first with command -v soffice || command -v libreoffice. Fonts not on
the host are substituted, so render-check decks before shipping. There is no
pure-Python path to PDF for any of these formats: if soffice is missing, say
so rather than approximating. For other sheets use
xlsx_to_csv.py --sheet NAME.
Pitfalls
- Never unzip-and-edit the XML. These files are zip packages; raw text substitution corrupts them. Edit through the helpers (or the libraries) and edit only the JSON inputs with a text editor.
- Text is split into runs. Word and PowerPoint fragment text at edit boundaries; the replace helpers merge equal-format runs first, but a match across differently formatted runs takes the first run's formatting.
- Nothing computes fields or formulas. Word TOC/page fields and Excel
formulas are filled in by the office app on open (or by
xlsx_recalc.py). - Encoding. Write specs as UTF-8; the helpers read UTF-8 explicitly.
- Format-specific traps are in each reference.
Verification
- Re-read every output with the format's read helper and check the expected content is there and the old content is gone.
- Word:
docx_validate.py out.docxexits 0 after revision, comment, or field surgery. - PowerPoint: render with
pptx_render.pyand inspect each PNG with an image-capable model or viewer when the render tools exist. - Excel:
xlsx_read.py --formulaslists written formulas; runxlsx_recalc.pywhen cached values matter.
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
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.

