template-engine
Auto-fill document templates with data - mail merge for any format
Why use this skill?
Efficiently automate document generation with the OpenClaw Template Engine. Effortlessly merge data into Word, Excel, and custom templates with Jinja2-based logic.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lijie420461340/template-engineWhat This Skill Does
The template-engine skill is a powerful automation utility for OpenClaw that automates document generation by merging structured data into predefined templates. It functions similarly to traditional mail merge software but with significantly higher flexibility, supporting complex document types like Microsoft Word, Excel, and PowerPoint. By utilizing a Jinja2-based syntax, the engine allows users to define placeholders (e.g., {{ name }}) within their files, which the skill then programmatically populates with dynamic content. It handles both simple text replacement and sophisticated logical operations, such as conditional formatting, loops for generating tables, and date filtering, making it an essential tool for high-volume document workflows.
Installation
To integrate this skill into your agent workspace, use the command:
clawhub install openclaw/skills/skills/lijie420461340/template-engine
Use Cases
- Automated Communication: Generate hundreds of personalized letters, invitations, or email drafts from a single CSV contact list.
- Business Reporting: Automatically pull database output into formatted Excel templates to produce consistent, branded internal reports.
- Operations: Create certificates of completion, invoices, or formal contracts by filling placeholders with client-specific metadata.
- Bulk Documentation: Use loops to generate dynamic table rows for inventory lists or multi-project summaries within documents.
Example Prompts
- "Mail merge my 'Project_Proposal_Template.docx' using the data in 'client_list.csv' and save the output to the /contracts folder."
- "Generate a monthly performance report by filling the 'Sales_Report.xlsx' template with data from my last three weeks of logs."
- "Create personalized certificate PDFs for every name listed in this spreadsheet using my existing company template."
Tips & Limitations
- Syntax: Ensure all placeholders match the Jinja2 format strictly, or they will be ignored by the engine.
- Data Structure: When using bulk generation, verify that your CSV headers match the variable names used in your templates exactly.
- File Security: Since this skill performs file-write operations, ensure your input data is sanitized and the target directory has appropriate write permissions.
- Complexity: While the skill supports advanced logic like conditional statements, keep templates clean to avoid rendering errors in complex layouts.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lijie420461340-template-engine": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read
Related Skills
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营
autodream-core
通用记忆整理引擎 — 基于适配器模式的跨平台记忆整理技能。自动去重、合并、删除过时条目。| Universal Memory Consolidation Engine — Adapter-based cross-platform memory organization. Auto-dedup, merge, prune stale entries.
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
Lead Radar
Every morning, scans Reddit, Hacker News, Indie Hackers, Stack Overflow, Quora, Hashnode, Dev.to, GitHub, and Lobsters for people actively asking for what you sell. Delivers the top 10 buying-intent leads to your Telegram with a pre-drafted reply. Powered by Gemini 2.5 Flash.
Phantom Browser
Undetectable browser automation for AI agents. 31/31 stealth tests passed. WindMouse physics, per-profile fingerprinting, residential IP routing. Runs headless on a $6/mo VPS.