docx-creation-skill

docx-creation-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 51 tokens per session (5,188 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 OpenCode

Written for OpenCode: installed under .opencode/. 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: OpenCode.

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.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.svg" alt="Measured on agentmods" 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 5,188 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.00051 $0.05188
Opus 5 $0.00026 $0.02594
Sonnet 5 $0.00010 $0.01038
Haiku 4.5 $0.00005 $0.00519

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

opencode_app/.opencode/skills/docx-creation-skill/SKILL.md · 563 lines

How it starts

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

What I do

  • Create new Word documents (.docx) using docx-js with professional formatting
  • Read and analyze existing .docx files using pandoc or raw XML extraction
  • Edit existing documents by unpacking, modifying XML, and repacking
  • Handle tracked changes (insertions, deletions, comments)
  • Convert between formats (.doc to .docx, .docx to PDF, .docx to images)
  • Add images, tables, headers, footers, and hyperlinks to documents
  • Generate tables of contents with proper heading hierarchy
  • Apply page layouts, margins, and multi-column layouts

When to use me

Use this skill when:

  • User mentions "Word doc", "word document", ".docx", or "Word file"
  • Creating reports, memos, letters, or templates as Word documents
  • Extracting or reorganizing content from .docx files
  • Working with tracked changes, comments, or reviewing documents
  • Converting documents to/from .docx format
  • Adding images, tables, or professional formatting to documents
  • Creating documents with tables of contents, page numbers, or letterheads

Do NOT use for:

  • PDFs (use PDF-specific tools)
  • Spreadsheets (use Excel tools)
  • Google Docs (use Google Workspace tools)
  • General coding tasks unrelated to document generation

Prerequisites

  • pandoc: Text extraction from .docx files
  • docx: npm install -g docx (for creating new documents)
  • LibreOffice: PDF conversion (auto-configured via scripts/soffice.py)
  • Poppler: pdftoppm for converting PDFs to images

Quick Reference

Task Approach
Read/analyze content pandoc or unpack for raw XML
Create new document Use docx-js - see Creating New Documents below
Edit existing document Unpack -> edit XML -> repack - see Editing Existing Documents below

Converting .doc to .docx

Legacy .doc files must be converted before editing:

python scripts/soffice.py --headless --convert-to docx document.doc

Reading Content

# Text extraction with tracked changes
pandoc --track-changes=all document.docx -o output.md

# Raw XML access
python scripts/unpack.py document.docx unpacked/

Read the full file on GitHub · 563 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. 3d 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 today), licensed Apache-2.0. It adds 51 tokens to every session and 5,188 once invoked, about $0.0003 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-09-03.