fill-template

fill-template is a skill for Claude Code, Codex from moonlight-lupin/agent-skills. It costs 235 tokens per session (2,824 once invoked), scanned A, original, MIT.

A mail-merge tool that takes one Word letter or Excel form and a spreadsheet, then creates one filled copy for each row.

In plain words
What is it for?
Use it to generate letters or forms in bulk from a CSV or Excel table, with optional file-naming rules.
Why use it?
It removes the need to enter changing details such as names, dates, or amounts manually. The original layout and styling stay unchanged, and the files are only generated—not sent or signed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to generate letters or forms in bulk from a CSV or Excel table, with optional file-naming rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moonlight-lupin/agent-skills/fill-template
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 moonlight-lupin/agent-skills --skill fill-template
Clone the repo
git clone --depth 1 https://github.com/moonlight-lupin/agent-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/moonlight-lupin/agent-skills/fill-template"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/fill-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 235 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,824 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.00235 $0.02824
Opus 5.5 $0.00094 $0.01130
Sonnet 5.5 $0.00047 $0.00565
Haiku 4.5 $0.00023 $0.00282

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

Security

Grade A, and why

fill-template 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 20d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/fill_template.py, tests/__init__.py, tests/test_fill_template.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.

productivity/fill-template/SKILL.md · 190 lines

How it starts

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

Fill Template (mail-merge)

Turn one master template + a data table into many filled copies — one per row — swapping only the parts that vary and leaving the master's layout and styling untouched. Document generation only: nothing is sent, posted or signed.

Scope and routing

Use this skill when the user has one template and a list, and wants a filled copy per row; or when they have a filled/example .docx and want a reusable tokenised template derived from it (extract_template). Do not use it to produce a single bespoke letter (just edit one document), or where the host environment mandates a different document pipeline. Extract of .xlsx forms is out of scope this round.

Inputs the user provides

  1. The master template — a .docx letter or form, or a .xlsx form. One master per run. This is the source of truth for layout and styling.
  2. The data table — a .xlsx or .csv, one row per output, with a header row. Columns supply the values that vary (names, amounts, dates, references…).
  3. (Optional) a naming pattern — how each output file is named, e.g. Letter_{Name}. Defaults to <template>_<row-number>.

Workflow (do this, in order)

If the user hands you a filled example rather than a master, run extract first (step 0), show ext["mapping"], and wait for confirmation before generating. Otherwise start at step 1.

  1. Extract from a filled .docx (optional reverse path). extract_template(src, out_dir, name=None) writes <name>_tokenised.docx and <name>_data.csv (name defaults to the source stem) and returns a report. Varying values become {{Token}} using the same run-aware replacement as tokenise. The CSV has one row per repeating instance. Show report["mapping"] (literal → token → where) and any report["uncertain"] entries — those spans were left literal rather than guessed. Token names come only from five typed shapes: after Dear → Recipient; $… → Amount; INV-123 → InvoiceRef; dates like 12 Mar 2026 → Date; ACME-0042 → AccountRef. Collisions become Amount2, …. Untyped variation is left literal — a generic Value1/Value2 fallback is not implemented; fall back to manual tokenise for those fields. Then continue from step 3 with the extracted template and skeleton, or let the user edit the mapping and re-tokenise.
    from fill_template import (
        read_content, tokenise, tokens_in, load_rows, generate, extract_template,
    )
    
    ext = extract_template("filled_letters.docx", "extracted")
    print(ext["mapping"])       # confirm-before-reuse digest
    print(ext["uncertain"])     # left literal; do not invent
    

Read the full file on GitHub · 190 lines

Files

What ships with it

7 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.

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. 20d ago Changed · -14 lines · -1 tokens per session 2fb6863447e5
  2. 1mo ago Changed · +35 lines · +21 tokens per session 60fdc5b61888
  3. 1mo ago First seen · 169 lines · 215 tokens per session scan A 3e95648319a9

Subscribe to this mod's changes

fill-template is a skill published in the GitHub repository moonlight-lupin/agent-skills (112 stars, last pushed 4d ago), licensed MIT. It adds 235 tokens to every session and 2,824 once invoked, about $0.0009 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-08-30.