docx

docx is a skill for Claude Code from guanyang/open-agent-hub. It costs 184 tokens per session (1,923 once invoked), scanned A, a copy of docx, MIT.

A tool for creating, reading, editing, and formatting Microsoft Word documents and templates. Word files use the .docx extension, while Word templates use .dotx.

In plain words
What is it for?
Use it to produce or modify Word documents, templates, headings, tables of contents, and other formatted document elements.
Why use it?
It handles document work that requires Word-compatible structure and formatting rather than plain text alone.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/office/soffice.py --headless --convert-to pdf output.docx.

Part of the open-agent-hub plugin — 110 skills, 3 commands, 5 agents, 6 MCP servers shipped together

Good fit Use it to produce or modify Word documents, templates, headings, tables of contents, and other formatted document elements.

Compare 6 skills from other repositories ↓
About the project

open-agent-hub is a command-line tool for managing and activating reusable capabilities for AI coding assistants such as Claude Code, Cursor, and Trae. It links skills, agent roles, slash commands, and guidance files into project workspaces or global assistant configurations. The catalogue entries are components that the tool can activate, including skills, MCP servers, agents, commands, instructions, and a plugin.

guanyang/open-agent-hub · 1,012 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/guanyang/open-agent-hub
agentmods
npx agentmods add skills/guanyang/open-agent-hub/docx

Made for: Claude Code.

Or install open-agent-hub, the plugin that ships this one along with the rest of its 110 skills, 3 commands, 5 agents, 6 MCP servers.

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 docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/guanyang/open-agent-hub/docx/github.svg)](https://agentmods.dev/skills/guanyang/open-agent-hub/docx)
Your own site
<a href="https://agentmods.dev/skills/guanyang/open-agent-hub/docx"><img src="https://agentmods.dev/badge/skills/guanyang/open-agent-hub/docx/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 docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/guanyang/open-agent-hub/docx"><img src="https://agentmods.dev/badge/skills/guanyang/open-agent-hub/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,923 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 92% copy Near-identical to another mod 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.00184 $0.01923
Opus 5.5 $0.00074 $0.00769
Sonnet 5.5 $0.00037 $0.00385
Haiku 4.5 $0.00018 $0.00192

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

Security

Grade A, and why

docx 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 15d ago.

The scan reads SKILL.md. This mod also ships 18 executable files (ooxml/scripts/pack.py, ooxml/scripts/unpack.py, ooxml/scripts/validate.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.

Origin

This is a copy

92% identical to docx — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/docx/SKILL.md · 93 lines

How it starts

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

DOCX creation, editing, and analysis

A .docx is a ZIP archive of XML files. Choose your approach by task:

Task Approach
Create a new document Write a docx (npm) script — see gotchas below
Edit an existing document unpack → edit word/document.xml → zip (docx-js cannot open existing files)
Read content pandoc -t markdown file.docx

Script paths below are relative to this skill's directory.

Creating with docx-js — gotchas

docx is preinstalled — do not run npm install first; write the script and require('docx') directly. Only if that require fails: npm install docx. The model knows the API; these are the footguns:

  • Page size defaults to A4. For US Letter set page: { size: { width: 12240, height: 15840 } } (DXA; 1440 = 1″).
  • Landscape: pass portrait dimensions and orientation: PageOrientation.LANDSCAPE — docx-js swaps width/height internally.
  • Tables need dual widths: set columnWidths on the table AND width on every cell, both in WidthType.DXA (PERCENTAGE breaks in Google Docs). Column widths must sum to the table width.
  • Table shading: use ShadingType.CLEAR, never SOLID (renders black).
  • Lists: never insert • literally; use a numbering config with LevelFormat.BULLET.
  • ImageRun requires type: ("png", "jpg", …).
  • PageBreak must be inside a Paragraph.
  • Never use \n — use separate Paragraph elements.
  • Headings: style every level you use (title, heading1, heading2…) in styles.default: heading1: { run: { font: "Arial", size: 32, bold: true }, paragraph: { spacing: { before: 240, after: 120 }, keepNext: true } }. Every level needs its own font (even with a document default), before and after (even if 0) and keepNext: the built-in styles set none of them.
  • TOC: headings must use built-in HeadingLevel.*; custom heading styles need outlineLevel set or they won't appear.
  • Don't use a table as a horizontal rule — use a paragraph bottom border instead.
  • Dot-leader / right-aligned-on-same-line: use PositionalTab (alignment: PositionalTabAlignment.RIGHT, leader: PositionalTabLeader.DOT) inside a TextRun, not literal . or space padding.

Read the full file on GitHub · 93 lines

Files

What ships with it

60 files 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. 15d ago Changed · +1 lines 895d5aa6c4cd
  2. 26d ago Changed 9e8202e2524a
  3. 3mo ago First seen · 92 lines · 184 tokens per session scan A 8017469ea95f

Subscribe to this mod's changes

docx is a skill published in the GitHub repository guanyang/open-agent-hub (1,012 stars, last pushed today), licensed MIT. It adds 184 tokens to every session and 1,923 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to docx, differing in 4 lines, and is treated as a copy.

Related

docx compared with skills from other repositories

docx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docxguanyang/open-agent-hubSkill1.0ktodayMITA184Claude Code
readtw93/WazaSkill7.7k15d agoMITA61Claude Code
academic-latex-layoutjoshua-zyy/academic-paper-writerSkill1161mo agoMITA66Claude Code
convex-agentsmajiayu000/claude-skill-registry-dataSkill31yesterdaynoneA32Claude Code, Codex
animate-objectsHmbown/Wizards-of-the-GhostsSkill1158mo agoCC0-1.0A45Claude Code, Codex
Convex Agents Filesmajiayu000/claude-skill-registry-dataSkill31yesterdaynoneA33Claude Code, Codex
pdf-extractorguia-matthieu/clawfu-skillsSkill1512mo agoMITA42Claude Code, Codex