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.
npx agentmods add skills/phodal/routa/docxnpx skills add phodal/routa --skill docxgit clone --depth 1 https://github.com/phodal/routaWrote 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.
[](https://agentmods.dev/skills/phodal/routa/docx)<a href="https://agentmods.dev/skills/phodal/routa/docx"><img src="https://agentmods.dev/badge/skills/phodal/routa/docx.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00044 | $0.05668 |
| Opus 5 | $0.00022 | $0.02834 |
| Sonnet 5 | $0.00009 | $0.01134 |
| Haiku 4.5 | $0.00004 | $0.00567 |
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 4d 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.
Copies of this mod
3 near-identical copies found in the catalogue:
- Word DOCX Builder — 92% identical, 106 lines differ
- documents — 89% identical, 782 lines differ
- documents — 88% identical, 163 lines differ
How it starts
The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DOCX Skill (Read • Create • Edit • Redline • Comment)
Use this skill when you need to create or modify .docx files in this container environment and verify them visually.
Non-negotiable: render → inspect PNGs → iterate
You do not “know” a DOCX is satisfactory until you’ve rendered it and visually inspected page images.
DOCX text extraction (or reading XML) will miss layout defects: clipping, overlap, missing glyphs, broken tables, spacing drift, and header/footer issues.
Shipping gate: before delivering any DOCX, you must:
- Run
render_docx.pyto producepage-<N>.pngimages (optionally also a PDF with--emit_pdf) - Open the PNGs (100% zoom) and confirm every page is clean
- If anything looks off, fix the DOCX and re-render (repeat until flawless)
If rendering fails, fix rendering first (LibreOffice profile/HOME) rather than guessing.
Deliverable discipline: Rendered artifacts (PNGs and optional PDFs) are for internal QA only. Unless the user explicitly asks for intermediates, return only the requested final deliverable (e.g., when the task asks for a DOCX, deliver the DOCX — not page images or PDFs).
Design standards for document generation
For generating new documents or major rewrite/repackages, follow the design standards below unless the user explicitly requests otherwise. The user's instructions always take precedence; otherwise, adhere to these standards.
When creating the document design, do not compromise on the content and make factual/technical errors. Do not produce something that looks polished but not actually what the user requested.
It is very important that the document is professional and aesthetically pleasing. As such, you should follow this general workflow to make your final delivered document:
- Before you make the DOCX, please first think about the high-level design of the DOCX:
- Before creating the document, decide what kind of document it is (for example, a memo, report, SOP, workflow, form, proposal, or manual) and design accordingly. In general, you shall create documents which are professional, visually polished, and aesthetically pleasing. However, you should also calibrate the level of styling to the document's purpose: for formal, serious, or highly utilitarian documents, visual appeal should come mainly from strong typography, spacing, hierarchy, and overall polish rather than expressive styling. The goal is for the document's visual character to feel appropriate to its real-world use case, with readability and usability always taking priority.
- You should make documents that feel visually natural. If a human looks at your document, they should find the design natural and smooth. This is very important; please think carefully about how to achieve this.
- Think about how you would like the first page to be organized. How about subsequent pages? What about the placement of the title? What does the heading ladder look like? Should there be a clear hierarchy? etc
- Would you like to include visual components, such as tables, callouts, checklists, images, etc? If yes, then plan out the design for each component.
- Think about the general spacing and layout. What will be the default body spacing? What page budget is allocated between packaging and substance? How will page breaks behave around tables and figures, since we must make sure to avoid large blank gaps, keep captions and their visuals together when possible, and keep content from becoming too wide by maintaining generous side margins so the page feels balanced and natural.
- Think about font, type scale, consistent accent treatment, etc. Try to avoid forcing large chunks of small text into narrow areas. When space is tight, adjust font size, line breaks, alignment, or layout instead of cramming in more text.
- Once you have a working DOCX, continue iterating until the entire document is polished and correct. After every change or edit, render the DOCX and review it carefully to evaluate the result. The plan from (1) should guide you, but it is only a flexible draft; you should update your decisions as needed throughout the revision process. Important: each time you render and reflect, you should check for both:
- Design aesthetics: the document should be aesthetically pleasing and easy to skim. Ask yourself: if a human were to look at my document, would they find it aesthetically nice? It should feel natural, smooth, and visually cohesive.
- Formatting issues that need to be fixed: e.g. text overlap, overflow, cramped spacing between adjacent elements, awkward spacing in tables/charts, awkward page breaks, etc. This is super important. Do not stop revising until all formatting issues are fixed.
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.
- examples/end_to_end_smoke_test.md 930 B
- LICENSE.txt 1.4 KB
- ooxml/comments.md 1.8 KB
- ooxml/hyperlinks_and_fields.md 2.4 KB
- ooxml/rels_and_content_types.md 1.3 KB
- ooxml/tracked_changes.md 1.6 KB
- render_docx.py 14 KB runs code
- scripts/a11y_audit.py 12 KB runs code
- scripts/accept_tracked_changes.py 5.4 KB runs code
- scripts/add_tracked_replacements.py 5.7 KB runs code
- scripts/apply_template_styles.py 3.9 KB runs code
- scripts/captions_and_crossrefs.py 9.4 KB runs code
- scripts/comments_add.py 8.4 KB runs code
- scripts/comments_apply_patch.py 4.7 KB runs code
- scripts/comments_extract.py 5.2 KB runs code
- scripts/comments_strip.py 4.7 KB runs code
- scripts/content_controls.py 11 KB runs code
- scripts/docx_ooxml_patch.py 21 KB runs code
- scripts/docx_table_to_csv.py 2.1 KB runs code
- scripts/fields_materialize.py 10 KB runs code
- scripts/fields_report.py 5.5 KB runs code
- scripts/flatten_ref_fields.py 4.6 KB runs code
- scripts/footnotes_report.py 2.7 KB runs code
- scripts/heading_audit.py 3.1 KB runs code
- scripts/images_audit.py 5.7 KB runs code
- scripts/insert_note.py 8.8 KB runs code
- scripts/insert_ref_fields.py 6.9 KB runs code
- scripts/insert_toc.py 5.0 KB runs code
- scripts/internal_nav.py 12 KB runs code
- scripts/make_fixtures.py 8.4 KB runs code
- scripts/merge_docx_append.py 3.8 KB runs code
- scripts/privacy_scrub.py 5.5 KB runs code
- scripts/redact_docx.py 9.3 KB runs code
- scripts/render_and_diff.py 4.7 KB runs code
- scripts/section_audit.py 2.6 KB runs code
- scripts/set_protection.py 4.8 KB runs code
- scripts/style_lint.py 5.0 KB runs code
- scripts/style_normalize.py 5.5 KB runs code
- scripts/watermark_add.py 5.2 KB runs code
- scripts/watermark_audit_remove.py 4.6 KB runs code
- scripts/xlsx_to_docx_table.py 5.5 KB runs code
- tasks/accessibility_a11y.md 1.9 KB
- tasks/captions_crossrefs.md 3.7 KB
- tasks/clean_tracked_changes.md 1.6 KB
- tasks/comments_manage.md 2.9 KB
- tasks/compare_diff.md 1.1 KB
- tasks/create_edit.md 1.7 KB
- tasks/fields_update.md 2.3 KB
- tasks/fixtures_edge_cases.md 1.7 KB
- tasks/footnotes_endnotes.md 1.8 KB
- tasks/forms_content_controls.md 2.0 KB
- tasks/headings_numbering.md 1.8 KB
- tasks/images_figures.md 1.3 KB
- tasks/multi_doc_merge.md 1.5 KB
- tasks/navigation_internal_links.md 2.0 KB
- tasks/privacy_scrub_metadata.md 839 B
- tasks/protection_restrict_editing.md 1.2 KB
- tasks/read_review.md 2.5 KB
- tasks/redaction_anonymization.md 2.3 KB
- tasks/sections_layout.md 2.2 KB
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.
- 4d ago First seen · 326 lines · 44 tokens per session scan A 9c1e8b5e706f
docx is a skill published in the GitHub repository phodal/routa (1,807 stars, last pushed 21d ago), licensed MIT. It adds 44 tokens to every session and 5,668 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.
Other skills, from other repositories
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
exploratory-data-analysis
Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…
media-ingest
Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
read
Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…
docx-comment-reply
Reply to comments (批注) in Word .docx/.doc files: extract comment context, draft replies, write threaded replies back, and validate OOXML.