officecli

officecli is a skill for Claude Code, Codex from aiguicai/MCP-Gateway. It costs 74 tokens per session (7,499 once invoked), scanned A, original, MIT.

A command-line tool for creating, checking, proofreading, and editing Microsoft Word, Excel, and PowerPoint files without installing Microsoft Office.

In plain words
What is it for?
Use it to generate or modify .docx, .xlsx, and .pptx files, inspect their contents, and proofread them.
Why use it?
It lets an agent work with common Office documents through one tool and avoids needing Office or extra dependencies on the computer.

Skill for Claude CodeCodex

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

Good fit Use it to generate or modify .docx, .xlsx, and .pptx files, inspect their contents, and proofread them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiguicai/mcp-gateway/officecli
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 aiguicai/MCP-Gateway --skill officecli
Clone the repo
git clone --depth 1 https://github.com/aiguicai/MCP-Gateway

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 officecli

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiguicai/mcp-gateway/officecli.svg)](https://agentmods.dev/skills/aiguicai/mcp-gateway/officecli)
Your own site
<a href="https://agentmods.dev/skills/aiguicai/mcp-gateway/officecli"><img src="https://agentmods.dev/badge/skills/aiguicai/mcp-gateway/officecli.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 17
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
How audits are shown
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.00074 $0.07499
Opus 5 $0.00037 $0.03750
Sonnet 5 $0.00015 $0.01500
Haiku 4.5 $0.00007 $0.00750

Measured 8d ago against content hash a6c746104267, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

officecli scanned grade A with 0 findings 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 8d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mcp-gateway/crates/gateway-http/builtin-skills/officecli/SKILL.md · 532 lines

How it starts

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

officecli

AI-friendly CLI for .docx, .xlsx, .pptx. Single binary, no dependencies, no Office installation needed.

IMPORTANT: How to Use This Tool

This is a dedicated built-in tool named officecli. You MUST follow these rules:

  1. Do NOT use shell_command to run officecli commands. The gateway will block any attempt to run officecli through shell_command. Always use this officecli tool directly.

  2. Executing commands (skillToken required):

    • Every exec value MUST start with the officecli prefix.
    • You MUST include the skillToken returned from reading this skill.
    • Example: officecli({"exec": "officecli create report.docx", "skillToken": "<token>"})
  3. The exec field always requires the officecli command prefix. Do NOT omit it.

    • Correct: "exec": "officecli help"
    • Correct: "exec": "officecli create file.docx"
    • Wrong: "exec": "help"
    • Wrong: "exec": "create file.docx"
  4. Command snippets in this skill are CLI syntax. When this skill shows officecli ... in a code block, execute that command by putting the full line in the built-in tool's exec field with the required skillToken.

Prerequisites

The officecli binary must be installed and available in PATH before this tool can be enabled. Use officecli --version to verify. If not installed, enable it via the admin UI or install manually from https://github.com/iOfficeAI/OfficeCLI/releases.


Strategy

L1 (read) -> L2 (DOM edit) -> L3 (raw XML). Always prefer higher layers. Add --json for structured output.

Before document work, check Specialized Skills near the bottom of this file. Generic decks, pitch decks, Morph decks, academic papers, financial models, and dashboards need their own officecli load_skill <name> rules before creating or heavily editing the artifact. The base skill explains commands; the specialized skill explains document quality.


Help System (IMPORTANT)

When unsure about property names, value formats, or command syntax, ALWAYS run help instead of guessing. One help query beats guess-fail-retry loops.

Read the full file on GitHub · 532 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. 8d ago First seen · 532 lines · 74 tokens per session scan A a6c746104267

Subscribe to this mod's changes

officecli is a skill published in the GitHub repository aiguicai/MCP-Gateway (154 stars, last pushed 3mo ago), licensed MIT. It adds 74 tokens to every session and 7,499 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.