fill-template

Generate bulk .docx documents from a .xlsx data table and template.

15|3|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/moonlight-lupin/agent-skills --skill fill-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fill-template
Source: https://github.com/moonlight-lupin/agent-skills/tree/main/productivity/fill-template
Command: npx skills add https://github.com/moonlight-lupin/agent-skills --skill fill-template

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, openpyxl, and includes scripts (resource) and references (resource) and examples (resource) components.

What problem does it solve?

This Skill automates the process of generating multiple documents from a master template and a data table, significantly reducing the time spent on manual mail merge operations.

Core Features & Use Cases

  • Bulk Document Generation: Create multiple copies of a master document from a data table.
  • Template Customization: Supports Word (.docx) and Excel (.xlsx) templates with dynamic tokens.
  • Use Case: Suppose you have a list of recipients and a letter template. This Skill can fill in the recipients' details and generate a personalized letter for each one, saving you the time and effort of manual mail merge.

Quick Start

Run the fill-template skill with the master template 'Letter_master.docx' and the data table 'recipients.xlsx'.

Frequently Asked Questions about fill-template

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate mail merge to generate bulk Word documents from an Excel data table?

No, no network access is required. All bulk document generation and template filling operations are performed locally on your machine, requiring only python-docx and openpyxl for document manipulation.

Does bulk document generation work with both Excel and Word templates?

Yes, bulk document generation supports both Word (.docx) and Excel (.xlsx) file formats for templates. You can customize the master template with dynamic tokens to populate data from your table.

Do I need python-docx and openpyxl installed for local template filling?

Yes, you need python-docx and openpyxl installed. These libraries handle the local document manipulation required to parse dynamic tokens and fill templates using your data table.

What is the best way to create multiple personalized letters from a recipient list?

The best way to create personalized letters is bulk document generation using a master template and a data table. This automates manual mail merge operations, generating a customized letter for each recipient locally.