Template Engine

Auto-fill document templates with data - mail merge for any format

581 stars 105 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add claude-office-skills/skills --skill template-engine
Manual install
git clone --depth 1 https://github.com/claude-office-skills/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/template-engine ~/.claude/skills/template-engine

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Template Engine Skill

## Overview

This skill enables template-based document generation - define templates with placeholders, then automatically fill them with data. Works with Word, Excel, PowerPoint, and more.

## How to Use

1. Describe what you want to accomplish
2. Provide any required input data or files
3. I'll execute the appropriate operations

**Example prompts:**
- "Mail merge for bulk letters/contracts"
- "Generate personalized reports from data"
- "Create certificates from templates"
- "Auto-fill forms with user data"

## Domain Knowledge

### Template Syntax (Jinja2-based)

```
{{ variable }}           - Simple substitution
{% for item in list %}   - Loop
{% if condition %}       - Conditional
{{ date | format_date }} - Filter
```

### Word Template Example

```python
from docxtpl import DocxTemplate

# Create template with placeholders:
# Dear {{ name }},
# Thank you for your order #{{ order_id }}...

def fill_template(template_path: str, data: dict, output_path: str):
    doc = DocxTemplate(template_path)
    doc.render(data)
    doc.save(output_path)
    return output_path

# Usage
fill_template(
    "templates/order_confirmation.docx",
    {
        "name": "John Smith",
        "order_id": "ORD-12345",
        "items": [
            {"name": "Product A", "qty": 2, "price": 29.99},
            {"name": "Product B", "qty": 1, "price": 49.99}
        ],
        "total": 109.97
    },
    "output/confirmation_john.docx"
)
```

### Excel Template
Read the full skill on GitHub

Details

Skill name
template-engine
Path
template-engine/SKILL.md
License
MIT
Repo updated
31 January 2026

FAQ

What does the Template Engine skill do?

Auto-fill document templates with data - mail merge for any format

How do I install the Template Engine skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add claude-office-skills/skills --skill template-engine. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Template Engine popular?

It lives in claude-office-skills/skills, which has 581 GitHub stars and 105 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.