office-documents

office-documents is a skill for Claude Code, Codex from TencentCloud/Octop. It costs 44 tokens per session (879 once invoked), scanned A, original, MIT.

A tool guide for creating, editing, checking, and rendering Word documents, Excel workbooks, and PowerPoint presentations. It works with uploaded originals and validates saved files before they are handed back.

In plain words
What is it for?
It helps edit DOCX files, XLSX spreadsheets, and PPTX presentations with Python, preserve the original files, reopen outputs for validation, and render previews when LibreOffice and Poppler are available.
Why use it?
It reduces mistakes when changing office files programmatically, such as damaged formatting or files that cannot be reopened. It also checks whether the environment has the libraries and preview tools needed for the requested work.

Skill for Claude CodeCodex

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

Good fit It helps edit DOCX files, XLSX spreadsheets, and PPTX presentations with Python, preserve the original files, reopen outputs for validation, and render previews when LibreOffice and Poppler are available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tencentcloud/octop/office-documents
About the project

Octop is a self-hosted, multi-user AI assistant that runs multiple specialized agents and connects them to chat interfaces, tools, and external services. It is for individuals, families, and teams who want a locally operated assistant with shared experts and persistent capabilities. Catalogue add-ons extend its agent and assistant workflows.

TencentCloud/Octop · 12,643 stars · on GitHub · octop.cloud

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 TencentCloud/Octop --skill office-documents
Clone the repo
git clone --depth 1 https://github.com/TencentCloud/Octop

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 office-documents

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloud/octop/office-documents/github.svg)](https://agentmods.dev/skills/tencentcloud/octop/office-documents)
Your own site
<a href="https://agentmods.dev/skills/tencentcloud/octop/office-documents"><img src="https://agentmods.dev/badge/skills/tencentcloud/octop/office-documents/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 office-documents

Your own site · 80×15
<a href="https://agentmods.dev/skills/tencentcloud/octop/office-documents"><img src="https://agentmods.dev/badge/skills/tencentcloud/octop/office-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 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.
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.00044 $0.00879
Opus 5.5 $0.00018 $0.00352
Sonnet 5.5 $0.00009 $0.00176
Haiku 4.5 $0.00004 $0.00088

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

Security

Grade A, and why

office-documents 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render.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.

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.

src/octop/infra/agents/builtin_skills/office-documents/SKILL.md · 49 lines

How it starts

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

Office documents

Work inside {{OCTOP_WORKSPACE}} using the active expert's file and execution tools. Find uploaded originals under inbound/. Use a descriptive output filename and preserve the original when editing. Use the execution environment's Python with the Octop Office dependencies. Check the exact input and the intended output before reporting success.

Requirements and fallback

This skill is off by default; the expert's owner turns it on in the skills panel. Before the first task in a conversation, check what the execution environment has:

python -c "import docx, openpyxl, pptx" && echo office-python-ok
python "{{OCTOP_BUILTIN_SKILLS}}/office-documents/scripts/render.py" --check
  • Editing needs python-docx, openpyxl and python-pptx in the execution environment's Python. If the import fails, tell the user which package is missing and do not hand over a file you could not reopen.
  • Page preview also needs LibreOffice (soffice) and Poppler (pdftoppm). --check prints what is missing. Remote and sandboxed environments often lack them.
  • When preview is unavailable, still reopen and validate the saved file as described below, and say plainly that the layout was not checked visually. Never claim a page-by-page review that did not happen.
Format Create Load and edit Check before delivery
Word from docx import Document and doc = Document() Open with Document(input_path). Edit the affected paragraphs, runs or table cells and call doc.save(output_path). Editing individual runs preserves their formatting. Reopen with Document(output_path) and check headings, tables and the requested text.
Excel from openpyxl import Workbook and book = Workbook() Use openpyxl.load_workbook(input_path, data_only=False). Change the target sheets or cells, retain formulas and save to the output path. Reopen the file, verify sheet names, target cell values and formulas. Recalculate using a spreadsheet application if computed values are part of the deliverable.
PowerPoint from pptx import Presentation and deck = Presentation() Open with Presentation(input_path). Update shapes, runs or charts on the requested slides and save via deck.save(output_path). Reopen the output, check slide count, titles and target shape content.

Read the full file on GitHub · 49 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 49 lines · 44 tokens per session scan A 6927fa992255

Subscribe to this mod's changes

office-documents is a skill published in the GitHub repository TencentCloud/Octop (12,643 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 879 once invoked, about $0.0002 per session on Opus 5.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-11-28.

Related

office-documents compared with skills from other repositories

office-documents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
office-documentsTencentCloud/OctopSkill13kyesterdayMITA44Claude Code, Codex
xlsxMemTensor/memmy-agentSkill2.4ktodayMITA35Claude Code, Codex
craft-data-visualBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA71Claude Code, Codex
gridcraftBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA82Claude Code, Codex
google-sheetsOpen-Curiosity/gini-agentSkill2.4k4mo agoMITA21Claude Code, Codex
data-analysisHezaoHezao/poirotSkill2624mo agoMITA15Claude Code
xlsxjjyaoao/HelloAgentsSkill3.5k1mo agononeA97Claude Code, Codex