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 skills add darellchua2/opencode-config-template --skill docx-creation-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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/darellchua2/opencode-config-template/docx-creation-skill)<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>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.1 | $0.00051 | $0.05188 |
| Opus 5 | $0.00026 | $0.02594 |
| Sonnet 5 | $0.00010 | $0.01038 |
| Haiku 4.5 | $0.00005 | $0.00519 |
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.
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.
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:
pdftoppmfor 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/
What ships with it
13 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.
- scripts/accept_changes.py 4.0 KB runs code
- scripts/comment.py 10 KB runs code
- scripts/helpers/merge_runs.py 5.4 KB runs code
- scripts/helpers/simplify_redlines.py 5.6 KB runs code
- scripts/pack.py 4.9 KB runs code
- scripts/soffice.py 5.0 KB runs code
- scripts/unpack.py 3.9 KB runs code
- scripts/validate.py 3.7 KB runs code
- scripts/validators/__init__.py 338 B runs code
- scripts/validators/base.py 20 KB runs code
- scripts/validators/docx.py 909 B runs code
- scripts/validators/pptx.py 1018 B runs code
- scripts/validators/redlining.py 1.6 KB runs code
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.
- 3d ago First seen · 563 lines · 51 tokens per session scan A 65fc2b6abab7
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.
Other skills, from other repositories
csv-workbench
Analyze CSV files in /mnt/data and return concise numeric summaries.
pdf-processing
Process and extract information from PDF documents. Use this skill when the user asks to read, analyze, or extract data from PDF files.
data-analysis
DuckDB-powered analytical engine for large data dumps (JSON, CSV, Parquet). Ingest → Profile → Query → File insights.
cite-sources
How to attribute every factual claim to a corpus document.
google-workspace
Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration via gws CLI (googleworkspace/cli). Uses OAuth2 with automatic token refresh via bridge script. Requires gws binary.
notion
Notion API for creating and managing pages, databases, and blocks via curl. Search, create, update, and query Notion workspaces directly from the terminal.