Template Engine for Openclaw

A powerful automation tool for programmatically filling document templates with structured data using Jinja2 syntax.

lijie420461340
v1.0.0
Jan 30, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install template-engine

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install template-engine using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Template Engine?

The Template Engine is a versatile skill designed to streamline document workflows by automating the population of templates. By leveraging the Jinja2 templating language, this Openclaw Skills integration allows developers and teams to define placeholders, loops, and conditional logic within standard Office formats like .docx, .xlsx, and .pptx.

Whether you are generating individual invoices or orchestrating complex mail merges, this skill bridges the gap between raw data and professional documentation. It provides a robust framework for transforming static files into dynamic assets, making it an essential component for any automated document pipeline within the Openclaw Skills ecosystem.

Template Engine Use Cases

  • Bulk generating personalized contracts or welcome letters from a CSV contact list.
  • Automating the creation of monthly performance reports using data from an analytics dashboard.
  • Producing individualized certificates or diplomas for educational programs.
  • Dynamically generating order confirmations and invoices with itemized tables.

How Template Engine Works

  1. Define a template file (Word, Excel, or PowerPoint) using Jinja2 placeholder syntax like {{ variable }} or {% for item in list %}.
  2. Provide the input data in a structured format such as a dictionary, JSON, or a CSV file.
  3. The Openclaw Skills runner executes a Python script using libraries like docxtpl or openpyxl to map the data to the template placeholders.
  4. The engine renders the content, applying logic and filters, then saves the final document to the specified output directory.

Template Engine Setup

To begin using this Template Engine within the ecosystem of Openclaw Skills, install the necessary Python dependencies:

pip install python-docx openpyxl python-pptx reportlab jinja2 docxtpl

Ensure your environment has access to the local file system to read templates and write generated documents.

Template Engine Data Schema & Taxonomy

The skill uses a flexible schema based on Jinja2 variables. Data is typically organized as follows:

Component Description Format
Template Source file with placeholders .docx, .xlsx, .pptx
Context Data Key-value pairs matching placeholders Python Dict / JSON
Bulk Data Collection of records for multiple files CSV
Output The rendered, finalized document User-defined path

Template Engine Advanced Features

  • Support for complex control structures including nested loops and conditional blocks for dynamic content.
  • Native integration with CSV readers for high-volume mail merge operations within Openclaw Skills.
  • Custom filters for formatting dates, currency, and strings during the rendering process.
  • Multi-format support allowing for consistent data injection across different Office applications.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*