moffice
Skill0 starsChanged 9 days agoMITView on GitHub
Drive Word, Excel, and PowerPoint via AppleScript: read, edit, create, export PDF. Use for Office files on this Mac. Not for Notes (apple-suite).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- trac3r00/agent-skillsword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- trac3r00/agent-skills★ 0100% same
Edited · 0
None found.
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 repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- 3d-designSkill
- anti-bsSkill
- api-testerSkill
- apple-homeSkill
- apple-suiteSkill
- apple-tvSkill
- apps-handoffSkill
- appshotSkill
- astra-initSkill
- browser-asideSkill
- changelog-genSkill
- ci-test-rebuildSkill
- claim-auditSkill
- claude-designSkill
- cleanup-worktreesSkill
- code-reviewSkill
- comment-checkerSkill
- context-budgetSkill
- create-skillsSkill
- cron-auditSkill
- cyber-bypassSkill
- dftSkill
- diff-reviewSkill
- discord-messengerSkill
- doc-readerSkill
- env-gateSkill
- ext-scaffoldSkill
- fddSkill
- finderSkill
- finish-prSkill
- game-filmSkill
- gate-graphSkill
- graph-toolsSkill
- herdrSkill
- image-genSkill
- init-readmeSkill
- init-rulesSkill
- iphone-mirroringSkill
- json-diffSkill
- kakao-messengerSkill
- karpathy-promptSkill
- loeSkill
- log-analyzerSkill
- macos-settingsSkill
- max-buildSkill
- net-probeSkill
- notionSkill
- obsidian-vaultSkill
- omo-runnerSkill
- open-loopsSkill
- optimize-omo-configSkill
- phone-facetimeSkill
- portfolio-auditSkill
- preflightSkill
- project-sessionsSkill
- prompt-builderSkill
- pro-reviewSkill
- proxmox-veSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Run python3 scripts/moffice.py from this skill's directory (or with its absolute path).
- Distinctive: line 59
Keep copies of important files before using editing commands.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Run python3 scripts/moffice.py from this skill's directory (or with its
absolute path). Append --json anywhere on the command line to receive JSON on
success. Exit-1 errors always print {"error": "..."} on stdout; exit-2 errors
print plain error: ... text on stderr.
Commands
python3 scripts/moffice.py apps --json
python3 scripts/moffice.py excel sheets FILE.xlsx
python3 scripts/moffice.py excel read FILE.xlsx [--sheet Sheet1] [--range A1:C10]
python3 scripts/moffice.py excel write FILE.xlsx --sheet Sheet1 --range A1 --values '[["a",1],["b",2]]'
python3 scripts/moffice.py excel new FILE.xlsx
python3 scripts/moffice.py excel export-pdf FILE.xlsx OUT.pdf
python3 scripts/moffice.py word read FILE.docx
python3 scripts/moffice.py word create FILE.docx --text "Hello" [--title "Heading"]
python3 scripts/moffice.py word append FILE.docx --text "More"
python3 scripts/moffice.py word replace FILE.docx --find "old" --with "new" [--all]
python3 scripts/moffice.py word export-pdf FILE.docx OUT.pdf
python3 scripts/moffice.py powerpoint read FILE.pptx
python3 scripts/moffice.py powerpoint create FILE.pptx --slides '[{"title":"One","body":"Details"}]'
python3 scripts/moffice.py powerpoint add-slide FILE.pptx --title "Two" --body "More"
python3 scripts/moffice.py powerpoint export-pdf FILE.pptx OUT.pdfExcel read defaults to the used range and returns a 2D values array plus
the actual sheet name; numbers come back as floats (1 reads as 1.0) and
empty cells as null. Word read returns the text with \n between
paragraphs; replace is exact and case-sensitive.
write starts at the specified cell and creates a missing workbook; the
--values argument is a rectangular JSON array of strings, finite numbers,
booleans, or null. PowerPoint read returns the text of every text-bearing
shape on each slide, in shape order.
Boundaries and exit codes
- macOS only. The helper uses
/usr/bin/osascript, Python's standard library, and the Office AppleScript dictionaries; no Office file-format packages or Accessibility keystrokes are needed. - Each file operation refuses a document with the same name already open in its app; this is deliberately conservative when files in different folders share a name. It closes only the document it opened, without prompting. An app already running is never quit; one launched by the helper is quit.
- The requested source must exist except for
excel new,excel write, andword/powerpoint create. New documents must not overwrite existing files. Keep copies of important files before using editing commands. - Office never touches your folders directly: each command copies the file into
a private folder inside Office's shared container
(
~/Library/Group Containers/UBF8T346G9.Office/omo-moffice/), works on the copy, and only after success replaces or creates the real file with one rename. That container needs no sandbox Grant File Access prompt, so the prompt does not appear for files anywhere on disk. The private folder is always removed, also after a failure; a failed edit leaves the original as it was. - macOS can still ask once for Automation permission. A denial (
-1743) is reported as denied; a call that does not answer within 30 seconds (-1712or a hang) is reported as "did not respond", and an app the helper launched is asked to quit. If it cannot quit (a dialog is open), the error says so. Resolve Automation under System Settings > Privacy & Security > Automation > your terminal app > Microsoft Office app. This skill never clicks a dialog; the person resolves it. See Office AppleScript notes. - For clicks, typing, or window control this helper does not cover, use the
opencuaskill (OpenCUA, formerly apple-cua; CLIopencua). Never write an ad-hoc input script or use OmO's native computer-use. word create --titleputs the title as a visible Heading 1 first line (and sets the document's Title property).word appendinserts a new paragraph at the end, so existing formatting is kept.- Exit
0: success. Exit1: document, input-data, or Office-level failure, with a JSONerroron stdout even without--json. Exit2: invalid command/options, unsupported platform, or missing Office app (stderr text). - Done when the command exits
0; report the returned result.
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.

