docx-creation-skill

docx-creation-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 51 tokens per session (1,057 once invoked), scanned A, original, Apache-2.0.

A toolkit for creating, reading, editing, and converting Microsoft Word documents in the .docx format. It supports document structure and features such as headings, tables, images, comments, and tracked changes.

In plain words
What is it for?
Use it to create reports, letters, templates, and tables of contents, or to inspect and revise existing Word files.
Why use it?
It handles Word-specific formatting and review data that plain text tools may lose. It also supports turning documents into other formats such as PDF.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to create reports, letters, templates, and tables of contents, or to inspect and revise existing Word files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/docx-creation-skill
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 darellchua2/opencode-config-template --skill docx-creation-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

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 docx-creation-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docx-creation-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/docx-creation-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/docx-creation-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docx-creation-skill/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-creation-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/docx-creation-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docx-creation-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 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.00051 $0.01057
Opus 5.5 $0.00020 $0.00423
Sonnet 5.5 $0.00010 $0.00211
Haiku 4.5 $0.00005 $0.00106

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

Security

Grade A, and why

docx-creation-skill 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 2mo ago.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/accept_changes.py, scripts/comment.py, scripts/helpers/merge_runs.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-creation-skill/SKILL.md · 69 lines

How it starts

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

What I do

  • Create new .docx via docx-js; read via pandoc or raw XML; edit by unpack → modify XML → repack
  • Tracked changes (insertions/deletions), comments, images, tables, TOCs, letterheads
  • Convert .doc→.docx, .docx→PDF, .docx→images

Use for: "Word doc" / .docx mentions; reports, memos, letters, templates; tracked-changes review. NOT for: PDFs, spreadsheets, Google Docs, unrelated coding.

Prerequisites

pandoc (extraction) · npm install -g docx (creation) · LibreOffice via scripts/soffice.py (PDF) · Poppler pdftoppm (images)

House scripts

python scripts/soffice.py --headless --convert-to docx document.doc   # legacy .doc → .docx
pandoc --track-changes=all document.docx -o output.md                 # read incl. tracked changes
python scripts/unpack.py document.docx unpacked/                      # raw XML access
python scripts/accept_changes.py input.docx output.docx               # accept all tracked changes
python scripts/soffice.py --headless --convert-to pdf document.docx && pdftoppm -jpeg -r 150 document.pdf page

Creating new documents (docx-js) — critical rules

Full code patterns: reference.md (setup, styles, numbering, tables, images, hyperlinks, TOC, headers/footers).

  • Set page size explicitly — docx-js defaults to A4; US Letter = 12240 × 15840 DXA (1440 DXA = 1″)
  • Never \n — separate Paragraph elements
  • Never unicode bullets — numbering.config with LevelFormat.BULLET; same reference continues numbering, different reference restarts
  • PageBreak must sit inside a Paragraph — standalone is invalid XML
  • ImageRun requires type (png/jpg/…) and altText with title+description+name
  • Tables: dual widths — columnWidths array AND per-cell width, both DXA, summing to table width; WidthType.DXA only (percentages break in Google Docs)
  • ShadingType.CLEAR, never SOLID (black backgrounds)
  • TOC requires HeadingLevel only — override built-in styles by exact ID ("Heading1") and include outlineLevel (0 for H1), else TOC won't generate

Read the full file on GitHub · 69 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. 2mo ago Changed · -494 lines 6439db08e745
  2. 3mo ago First seen · 563 lines · 51 tokens per session scan A 65fc2b6abab7

Subscribe to this mod's changes

docx-creation-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,057 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-09-03.

Related

docx-creation-skill compared with skills from other repositories

docx-creation-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docx-creation-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A51Claude Code, Codex
csv-workbenchopenai/openai-agents-pythonSkill31ktodayMITA17Claude Code, Codex
pdf-processingMervinPraison/PraisonAISkill9.9kyesterdayMITA30Claude Code, Codex
google_workspaceericwang915/PythonClawSkill486d agoMITA67Claude Code, Codex
notionericwang915/PythonClawSkill486d agoMITA78Claude Code, Codex
obsidianericwang915/PythonClawSkill486d agoMITA63Claude Code, Codex
csv_analyzerericwang915/PythonClawSkill486d agoMITA64Claude Code, Codex