docx

docx is a skill for Codex from Rylaispirit/rylai-codex-hermes-skills. It costs 35 tokens per session (573 once invoked), scanned A, original, MIT.

A workflow for creating, inspecting, editing, and checking Microsoft Word DOCX files using Python. DOCX is the standard editable document format used by Microsoft Word.

In plain words
What is it for?
Use it to create Word reports, replace text, inspect document structure and metadata, convert Markdown, and verify the readability or layout of a DOCX file.
Why use it?
It makes document changes repeatable and helps catch files that were saved incorrectly or contain structural problems. It can also convert simple Markdown into a styled Word document and optionally render it for visual checking.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to create Word reports, replace text, inspect document structure and metadata, convert Markdown, and verify the readability or layout of a DOCX file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rylaispirit/rylai-codex-hermes-skills/docx
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 Rylaispirit/rylai-codex-hermes-skills --skill docx
Clone the repo
git clone --depth 1 https://github.com/Rylaispirit/rylai-codex-hermes-skills

Made for: 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 docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/rylaispirit/rylai-codex-hermes-skills/docx/github.svg)](https://agentmods.dev/skills/rylaispirit/rylai-codex-hermes-skills/docx)
Your own site
<a href="https://agentmods.dev/skills/rylaispirit/rylai-codex-hermes-skills/docx"><img src="https://agentmods.dev/badge/skills/rylaispirit/rylai-codex-hermes-skills/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/rylaispirit/rylai-codex-hermes-skills/docx"><img src="https://agentmods.dev/badge/skills/rylaispirit/rylai-codex-hermes-skills/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 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 pass 7 Sept 2026
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.00035 $0.00573
Opus 5 $0.00017 $0.00287
Sonnet 5 $0.00007 $0.00115
Haiku 4.5 $0.00003 $0.00057

Measured 10d ago against content hash 923992ff3dd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d ago.

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

skills/docx/SKILL.md · 81 lines

How it starts

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

Rylai DOCX

This is an original Rylai Codex-Hermes-Claude workflow. Use the open-source python-docx package for document work and LibreOffice only when local rendering is useful.

Runtime

  • Required for the bundled script: Python 3 and python-docx.
  • Optional: LibreOffice (soffice) for PDF rendering.
  • Resolve scripts/docx_tool.py relative to this skill folder.
  • Do not install packages unless the user approves installation.
  • Set new or modified document author metadata to Rylai unless the user explicitly requests another author.

Workflow

  1. Inspect source files and identify the requested document structure.
  2. Keep instructions out of the final document body.
  3. Create a new output path instead of overwriting the user's source.
  4. Reopen the saved DOCX to verify that it is readable.
  5. For layout-sensitive work, render to PDF with LibreOffice and inspect the result.

Bundled CLI

Create a styled DOCX from simple Markdown:

python scripts/docx_tool.py create input.md output.docx --title "Report"

Supported Markdown includes headings, paragraphs, bullet lists, numbered lists, block quotes, simple emphasis, inline code, and pipe tables.

Inspect structure and metadata:

python scripts/docx_tool.py inspect output.docx
python scripts/docx_tool.py inspect output.docx --text

Replace text while keeping the source unchanged:

python scripts/docx_tool.py replace input.docx output.docx \
  --set "{{client}}=Rylai Studio" \
  --set "{{date}}=2026-08-09"

Render to PDF when LibreOffice is available:

python scripts/docx_tool.py render output.docx rendered

Quality Rules

  • Preserve the visual conventions of an existing document unless the user asks for a redesign.
  • Use real heading styles instead of visually enlarged body paragraphs.
  • Keep tables readable and avoid squeezing too many columns onto one page.
  • Verify metadata, paragraph count, table count, and extracted text with the inspect command.
  • Report that visual verification was skipped when LibreOffice is unavailable.

Read the full file on GitHub · 81 lines

Files

What ships with it

2 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. 10d ago First seen · 81 lines · 35 tokens per session scan A 923992ff3dd0

Subscribe to this mod's changes

docx is a skill published in the GitHub repository Rylaispirit/rylai-codex-hermes-skills (55 stars, last pushed 27d ago), licensed MIT. It adds 35 tokens to every session and 573 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

library-rag

Semantic search over a personal library using Nemotron-3-Embed-1B embeddings + sqlite-vec. Index books, documents, any text corpus; query by meaning. Includes EPUB→Markdown conversion and MCP server for auto-available search tools.

moonlight-lupin/agent-skills · 54 tokens

document-converter

Convert between document formats: Markdown↔HTML, CSV↔JSON, YAML↔TOML, JSON↔YAML, CSV↔Markdown table, HTML→plain text, JSON→CSV (flattening nested objects), Excel→CSV, Markdown→PDF. Requires pandoc for PDF and openpyxl for Excel.

moonlight-lupin/agent-skills · 72 tokens

fill-template

Bulk-fill ONE master template — a Word (.docx) letter/form or an Excel (.xlsx) form — from a data table, producing one filled file per row (mail-merge). Use whenever the user wants to "fill in this letter for each person", "mail merge", "generate letters for this list", "run this template over a spreadsheet", or hands…

moonlight-lupin/agent-skills · 215 tokens

people-enrichment

Enrich and search People Data Labs (PDL) Person and Company data, writing results to .xlsx. Five operations: enrich named PEOPLE into a profile, employment history and LinkedIn URL; IDENTIFY an ambiguous person as several scored candidates; SEARCH people by criteria (company, title, location); enrich COMPANIES into…

moonlight-lupin/agent-skills · 203 tokens

powerpoint

Create, read, edit .pptx decks, slides, notes, templates.

RobinBeraud/hermes-skills · 19 tokens

nano-pdf

Edit PDF text/typos/titles via nano-pdf CLI (NL prompts).

RobinBeraud/hermes-skills · 21 tokens