docx-template-fill

docx-template-fill is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 93 tokens per session (1,077 once invoked), scanned A, original, Apache-2.0.

A tool that fills named placeholders in an existing Word document template with values from JSON. A placeholder is a marker such as {{name}} that identifies where a value belongs.

In plain words
What is it for?
Use it to populate DOCX templates, identify missing values, and optionally add one review note to the generated document. It is for existing templates, not writing a new document from scratch.
Why use it?
It avoids manually copying the same data into repeated contracts, reports, or notices and keeps the original template unchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/fill_template.py --template assets/sample-template.docx --data assets/sample-data.json.

Good fit Use it to populate DOCX templates, identify missing values, and optionally add one review note to the generated document. It is for existing templates, not writing a new document from scratch.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/docx-template-fill

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-template-fill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/docx-template-fill"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/docx-template-fill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 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.00093 $0.01077
Opus 5.5 $0.00037 $0.00431
Sonnet 5.5 $0.00019 $0.00215
Haiku 4.5 $0.00009 $0.00108

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

Security

Grade A, and why

docx-template-fill 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.

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.

site/skills/office/docx-template-fill/SKILL.md · 99 lines

How it starts

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

DOCX Template Fill (Word Template Filling and Annotations)

Fill {{placeholders}} in an existing Word template with JSON data, and optionally append a revision comment. Core judgment: use this skill only when the template already exists and only data is missing; to create a document from nothing, use docx-writer.

Red lines (SKILL-STANDARD-v2): default dry-run only prints what would be filled, no file written; add --apply to write to a new file, source template is never modified; zero network, zero copying.

Input Checklist

Input Required Notes
Template .docx yes Contains {{name}}-style placeholders
Data JSON yes Keys match placeholder names exactly; missing keys are left blank and warned
Output filename required with apply Defaults to filled.docx
Comment author/text no --note-author / --note-text

When inputs are missing, ask all at once: template path + data file path + whether to add a comment.

Pre-flight Checks

  1. Does python3 -c "import docx" work? If not → prompt pip install python-docx, or run --list-only first to see placeholders (list-only also needs docx parsing; without docx the script degrades to printing data keys).
  2. Are placeholders all UPPER_SNAKE_CASE (EMP_NAME) or lowercase (emp_name)? JSON keys must exactly match.

Workflow

# 1. Dry run: see what will be filled and which placeholders lack data
python3 scripts/fill_template.py --template assets/sample-template.docx --data assets/sample-data.json

# 2. Real write (output to new file, template untouched)
python3 scripts/fill_template.py --template assets/sample-template.docx --data assets/sample-data.json \
  --apply -o ./out.docx

# 3. Add a revision comment
python3 scripts/fill_template.py --template assets/sample-template.docx --data assets/sample-data.json \
  --apply -o ./out.docx --note-author Reviewer Zhang --note-text "Please recheck the amount in item 3"

# 4. List placeholders only
python3 scripts/fill_template.py --template assets/sample-template.docx --data assets/sample-data.json --list-only

Read the full file on GitHub · 99 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 · +7 lines · -3 tokens per session b9510647fd51
  2. 2mo ago First seen · 92 lines · 96 tokens per session scan A a91c5b607110

Subscribe to this mod's changes

docx-template-fill is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,077 once invoked, about $0.0004 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-23.

Related

docx-template-fill compared with skills from other repositories

docx-template-fill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docx-template-fillMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A93Claude Code, Codex
dcf-modelNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
boxNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
pptxmudler/LocalAISkill51ktodayMITA40Claude Code, Codex
mantis-reportgoogle/mantisSkill2.9ktodayApache-2.0A44Claude Code, Codex
pdf-toolkitopensquilla/opensquillaSkill7.2k4d agoApache-2.0A127Claude Code, Codex
structuring-radiology-reportsmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A195Claude Code