microsoft-office

microsoft-office is a skill for Claude Code, Codex from NousResearch/hermes-agent. It costs 19 tokens per session (2,265 once invoked), scanned C, original, MIT.

A set of tools for creating, reading, and editing Microsoft Word, PowerPoint, and Excel files, including CSV files, through Python programs. Microsoft Office is not required, but older binary formats such as .doc and .xls are not supported directly.

In plain words
What is it for?
Use it for reports and letters, slide decks, spreadsheet formulas and charts, CSV conversion, and changes to workbook or document structure.
Why use it?
It lets you automate common office-file work without opening the desktop applications. It also makes the supported file types and format limits clear before editing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for reports and letters, slide decks, spreadsheet formulas and charts, CSV conversion, and changes to workbook or document structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nousresearch/hermes-agent/microsoft-office
About the project

Hermes Agent is an AI assistant that learns from its use by creating and improving skills, retaining knowledge, searching past conversations, and adapting to its users. It is for people who want to run an agent through a terminal or messaging platforms while connecting it to different AI models and scheduled tasks.

NousResearch/hermes-agent · 267,016 stars · on GitHub · hermes-agent.nousresearch.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NousResearch/hermes-agent --skill microsoft-office
Clone the repo
git clone --depth 1 https://github.com/NousResearch/hermes-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for microsoft-office

README.md
[![agentmods](https://agentmods.dev/badge/skills/nousresearch/hermes-agent/microsoft-office/github.svg)](https://agentmods.dev/skills/nousresearch/hermes-agent/microsoft-office)
Your own site
<a href="https://agentmods.dev/skills/nousresearch/hermes-agent/microsoft-office"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-agent/microsoft-office/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for microsoft-office

Your own site · 80×15
<a href="https://agentmods.dev/skills/nousresearch/hermes-agent/microsoft-office"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-agent/microsoft-office.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.02265
Opus 5.5 $0.00008 $0.00906
Sonnet 5.5 $0.00004 $0.00453
Haiku 4.5 $0.00002 $0.00227

Measured 26d ago against content hash 4480fab452a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

microsoft-office scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

The scan reads SKILL.md. This mod also ships 23 executable files (scripts/csv_to_xlsx.py, scripts/docx_comments.py, scripts/docx_common.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

case "$old" in hermes-docs-venv.??????) rm -rf "$old" ;; esac
Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/productivity/microsoft-office/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 with skill_view 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 with soffice --headless --convert-to docx|pptx|xlsx old-file when LibreOffice is installed.
  • Not for .odt/.odp/.ods, or WYSIWYG layout work.

Prerequisites

  • Python 3.10+ with python-docx, python-pptx, and openpyxl (import names docx, pptx, openpyxl).

  • Pick the interpreter with terminal. Use python when it already imports the libraries (the Hermes Docker image ships them). Otherwise, when hermes is on PATH, let Hermes build its shared, pinned documents environment under the Hermes home: it survives container restarts, never touches the Hermes install itself, and is safe to run from several agents at once. When it is not (the terminal runs in a Docker sandbox, which has no Hermes), the block builds a venv in the sandbox home with the same pinned versions. 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 || if command -v hermes >/dev/null 2>&1; then
      PY="$(hermes pm environment documents --extra documents --extra documents-pdf)"
    else
      PY="$HOME/.cache/hermes-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.
        mkdir -p "$HOME/.cache" && cd "$HOME/.cache" && stage="$(mktemp -d hermes-docs-venv.XXXXXX)" || exit 1
        old="$(readlink hermes-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" hermes-docs-venv
          elif [ "$(readlink hermes-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" hermes-docs-venv &&
              case "$old" in hermes-docs-venv.??????) rm -rf "$old" ;; esac
          fi 2>/dev/null
        [ "$(readlink hermes-docs-venv)" = "$stage" ] || rm -rf "$stage" "$stage.lnk"
      )
    fi
    export PY
    "$PY" scripts/docx_create.py --help
    

Read the full file on GitHub · 163 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed 4480fab452a1
  2. 29d ago Changed · +1 lines 3b626570f758
  3. 1mo ago First seen · 162 lines · 19 tokens per session scan C 52938caa6581

Subscribe to this mod's changes

microsoft-office is a skill published in the GitHub repository NousResearch/hermes-agent (267,016 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 2,265 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

microsoft-office compared with skills from other repositories

microsoft-office next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
microsoft-officeNousResearch/hermes-agentSkill267ktodayMITC19Claude Code, Codex
pptxasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A217Claude Code, Codex
libraryasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A116Claude Code, Codex
slidesasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A17Claude Code, Codex
file-readingasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A154Claude Code, Codex
save-as-pdfasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A9Claude Code
xlsxasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A206Claude Code, Codex