[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72A87MXC91NQFBD5923GB2W":3,"skill-same:01M72A87MXC91NQFBD5923GB2W":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":49,"commitSha":50,"skillDirectory":5,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M72A87MXC91NQFBD5923GB2W","template-engine",null,"Auto-fill document templates with data - mail merge for any format","claude-office-skills\u002Fskills","claude-office-skills","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F258027507?v=4","01M729XQC9FBRQ54AQZS0KY3ZK","AGI Lab","01M729XQCYW6WF9GY762P9RNQJ",575,"MIT","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Ftemplate-engine\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\n# ═══════════════════════════════════════════════════════════════════════════════\n# CLAUDE OFFICE SKILL - Enhanced Metadata v2.0\n# ═══════════════════════════════════════════════════════════════════════════════\n\n# Basic Information\nname: template-engine\ndescription: \"Auto-fill document templates with data - mail merge for any format\"\nversion: \"1.0\"\nauthor: claude-office-skills\nlicense: MIT\n\n# Categorization\ncategory: template\ntags:\n  - template\n  - engine\n  - autofill\n  - docxtpl\ndepartment: All\n\n# AI Model Compatibility\nmodels:\n  recommended:\n    - claude-sonnet-4\n    - claude-opus-4\n  compatible:\n    - claude-3-5-sonnet\n    - gpt-4\n    - gpt-4o\n\n# MCP Tools Integration\nmcp:\n  server: office-mcp\n  tools:\n    - fill_docx_template\n\n# Skill Capabilities\ncapabilities:\n  - template_filling\n  - document_automation\n\n# Language Support\nlanguages:\n  - en\n  - zh\n---\n\n# Template Engine Skill\n\n## Overview\n\nThis skill enables template-based document generation - define templates with placeholders, then automatically fill them with data. Works with Word, Excel, PowerPoint, and more.\n\n## How to Use\n\n1. Describe what you want to accomplish\n2. Provide any required input data or files\n3. I'll execute the appropriate operations\n\n**Example prompts:**\n- \"Mail merge for bulk letters\u002Fcontracts\"\n- \"Generate personalized reports from data\"\n- \"Create certificates from templates\"\n- \"Auto-fill forms with user data\"\n\n## Domain Knowledge\n\n\n### Template Syntax (Jinja2-based)\n\n```\n{{ variable }}           - Simple substitution\n{% for item in list %}   - Loop\n{% if condition %}       - Conditional\n{{ date | format_date }} - Filter\n```\n\n### Word Template Example\n\n```python\nfrom docxtpl import DocxTemplate\n\n# Create template with placeholders:\n# Dear {{ name }},\n# Thank you for your order #{{ order_id }}...\n\ndef fill_template(template_path: str, data: dict, output_path: str):\n    doc = DocxTemplate(template_path)\n    doc.render(data)\n    doc.save(output_path)\n    return output_path\n\n# Usage\nfill_template(\n    \"templates\u002Forder_confirmation.docx\",\n    {\n        \"name\": \"John Smith\",\n        \"order_id\": \"ORD-12345\",\n        \"items\": [\n            {\"name\": \"Product A\", \"qty\": 2, \"price\": 29.99},\n            {\"name\": \"Product B\", \"qty\": 1, \"price\": 49.99}\n        ],\n        \"total\": 109.97\n    },\n    \"output\u002Fconfirmation_john.docx\"\n)\n```\n\n### Excel Template\n\n```python\nfrom openpyxl import load_workbook\nimport re\n\ndef fill_excel_template(template_path: str, data: dict, output_path: str):\n    wb = load_workbook(template_path)\n    ws = wb.active\n    \n    # Find and replace placeholders like {{name}}\n    for row in ws.iter_rows():\n        for cell in row:\n            if cell.value and isinstance(cell.value, str):\n                for key, value in data.items():\n                    placeholder = \"{{\" + key + \"}}\"\n                    if placeholder in cell.value:\n                        cell.value = cell.value.replace(placeholder, str(value))\n    \n    wb.save(output_path)\n    return output_path\n```\n\n### Bulk Generation (Mail Merge)\n\n```python\nimport csv\nfrom pathlib import Path\n\ndef mail_merge(template_path: str, data_csv: str, output_dir: str):\n    \"\"\"Generate documents for each row in CSV.\"\"\"\n    \n    Path(output_dir).mkdir(exist_ok=True)\n    \n    with open(data_csv) as f:\n        reader = csv.DictReader(f)\n        \n        for i, row in enumerate(reader):\n            output_path = f\"{output_dir}\u002Fdocument_{i+1}.docx\"\n            fill_template(template_path, row, output_path)\n            print(f\"Generated: {output_path}\")\n\n# Usage with contacts.csv:\n# name,email,company\n# John,john@example.com,Acme\n# Jane,jane@example.com,Corp\n\nmail_merge(\n    \"templates\u002Fwelcome_letter.docx\",\n    \"data\u002Fcontacts.csv\",\n    \"output\u002Fletters\"\n)\n```\n\n### Advanced: Conditional Content\n\n```python\nfrom docxtpl import DocxTemplate\n\n# Template with conditionals:\n# {% if vip %}\n# Thank you for being a VIP member!\n# {% else %}\n# Thank you for your purchase.\n# {% endif %}\n\ndoc = DocxTemplate(\"template.docx\")\ndoc.render({\n    \"name\": \"John\",\n    \"vip\": True,\n    \"discount\": 20\n})\ndoc.save(\"output.docx\")\n```\n\n\n## Best Practices\n\n1. **Use clear placeholder naming ({{client_name}})**\n2. **Validate data before rendering**\n3. **Handle missing data gracefully**\n4. **Keep templates version-controlled**\n\n## Installation\n\n```bash\n# Install required dependencies\npip install python-docx openpyxl python-pptx reportlab jinja2\n```\n\n## Resources\n\n- [docxtpl \u002F yumdocs Repository](https:\u002F\u002Fgithub.com\u002Felapouya\u002Fpython-docxtpl)\n- [Claude Office Skills Hub](https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills)\n","# Template Engine Skill\n\n## Overview\n\nThis skill enables template-based document generation - define templates with placeholders, then automatically fill them with data. Works with Word, Excel, PowerPoint, and more.\n\n## How to Use\n\n1. Describe what you want to accomplish\n2. Provide any required input data or files\n3. I'll execute the appropriate operations\n\n**Example prompts:**\n- \"Mail merge for bulk letters\u002Fcontracts\"\n- \"Generate personalized reports from data\"\n- \"Create certificates from templates\"\n- \"Auto-fill forms with user data\"\n\n## Domain Knowledge\n\n\n### Template Syntax (Jinja2-based)\n\n```\n{{ variable }}           - Simple substitution\n{% for item in list %}   - Loop\n{% if condition %}       - Conditional\n{{ date | format_date }} - Filter\n```\n\n### Word Template Example\n\n```python\nfrom docxtpl import DocxTemplate\n\n# Create template with placeholders:\n# Dear {{ name }},\n# Thank you for your order #{{ order_id }}...\n\ndef fill_template(template_path: str, data: dict, output_path: str):\n    doc = DocxTemplate(template_path)\n    doc.render(data)\n    doc.save(output_path)\n    return output_path\n\n# Usage\nfill_template(\n    \"templates\u002Forder_confirmation.docx\",\n    {\n        \"name\": \"John Smith\",\n        \"order_id\": \"ORD-12345\",\n        \"items\": [\n            {\"name\": \"Product A\", \"qty\": 2, \"price\": 29.99},\n            {\"name\": \"Product B\", \"qty\": 1, \"price\": 49.99}\n        ],\n        \"total\": 109.97\n    },\n    \"output\u002Fconfirmation_john.docx\"\n)\n```\n\n### Excel Template\n\n```python\nfrom openpyxl import load_workbook\nimport re\n\ndef fill_excel_template(template_path: str, data: dict, output_path: str):\n    wb = load_workbook(template_path)\n    ws = wb.active\n    \n    # Find and replace placeholders like {{name}}\n    for row in ws.iter_rows():\n        for cell in row:\n            if cell.value and isinstance(cell.value, str):\n                for key, value in data.items():\n                    placeholder = \"{{\" + key + \"}}\"\n                    if placeholder in cell.value:\n                        cell.value = cell.value.replace(placeholder, str(value))\n    \n    wb.save(output_path)\n    return output_path\n```\n\n### Bulk Generation (Mail Merge)\n\n```python\nimport csv\nfrom pathlib import Path\n\ndef mail_merge(template_path: str, data_csv: str, output_dir: str):\n    \"\"\"Generate documents for each row in CSV.\"\"\"\n    \n    Path(output_dir).mkdir(exist_ok=True)\n    \n    with open(data_csv) as f:\n        reader = csv.DictReader(f)\n        \n        for i, row in enumerate(reader):\n            output_path = f\"{output_dir}\u002Fdocument_{i+1}.docx\"\n            fill_template(template_path, row, output_path)\n            print(f\"Generated: {output_path}\")\n\n# Usage with contacts.csv:\n# name,email,company\n# John,john@example.com,Acme\n# Jane,jane@example.com,Corp\n\nmail_merge(\n    \"templates\u002Fwelcome_letter.docx\",\n    \"data\u002Fcontacts.csv\",\n    \"output\u002Fletters\"\n)\n```\n\n### Advanced: Conditional Content\n\n```python\nfrom docxtpl import DocxTemplate\n\n# Template with conditionals:\n# {% if vip %}\n# Thank you for being a VIP member!\n# {% else %}\n# Thank you for your purchase.\n# {% endif %}\n\ndoc = DocxTemplate(\"template.docx\")\ndoc.render({\n    \"name\": \"John\",\n    \"vip\": True,\n    \"discount\": 20\n})\ndoc.save(\"output.docx\")\n```\n\n\n## Best Practices\n\n1. **Use clear placeholder naming ({{client_name}})**\n2. **Validate data before rendering**\n3. **Handle missing data gracefully**\n4. **Keep templates version-controlled**\n\n## Installation\n\n```bash\n# Install required dependencies\npip install python-docx openpyxl python-pptx reportlab jinja2\n```\n\n## Resources\n\n- [docxtpl \u002F yumdocs Repository](https:\u002F\u002Fgithub.com\u002Felapouya\u002Fpython-docxtpl)\n- [Claude Office Skills Hub](https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills)\n",{"mcp":24,"name":5,"tags":28,"author":9,"models":33,"license":15,"version":41,"category":29,"languages":42,"department":45,"description":7,"capabilities":46},{"tools":25,"server":27},[26],"fill_docx_template","office-mcp",[29,30,31,32],"template","engine","autofill","docxtpl",{"compatible":34,"recommended":38},[35,36,37],"claude-3-5-sonnet","gpt-4","gpt-4o",[39,40],"claude-sonnet-4","claude-opus-4","1.0",[43,44],"en","zh","All",[47,48],"template_filling","document_automation","main","9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11",105,"https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills","2026-01-31 22:03:56",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add claude-office-skills\u002Fskills --skill template-engine",{"tool":61,"command":62},"bunx","bunx skills add claude-office-skills\u002Fskills --skill template-engine",{"tool":64,"command":65},"pnpm","pnpm dlx skills add claude-office-skills\u002Fskills --skill template-engine","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Ftemplate-engine\u002FSKILL.md",true,[],[70,77,84,91,98,105],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M72A0X7X4TWS4ZWTEK8TJEC8","devops-automation","DevOps and IT Ops automation - CI\u002FCD, monitoring, incident management, and infrastructure workflows","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Fdevops-automation\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M72A0VPXF4Q5F48TPDG6S10Q","dev-slides",">","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Fdev-slides\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M72A0Q1T0KN60CR3PAD93J6T","deep-research","Conduct comprehensive research on any topic. Synthesize information from multiple angles, provide structured analysis, and generate detailed research reports.","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Fdeep-research\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M72A0KWAYEWQJMDRGC0WTT7V","dcf-valuation","Build Discounted Cash Flow (DCF) valuation models. Calculate intrinsic value with customizable assumptions. Generate professional valuation reports.","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Fdcf-valuation\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M72A0GVWRZ3HZNXMW3RB5CF9","Database Sync","Automate database synchronization, replication, migration, and cross-platform data integration","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Fdatabase-sync\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M72A0E16K862EDP0QYEAC9HJ","data-pipeline","Data pipeline and ETL automation - extract, transform, load workflows for data integration and analytics","https:\u002F\u002Fgithub.com\u002Fclaude-office-skills\u002Fskills\u002Fblob\u002Fmain\u002Fdata-pipeline\u002FSKILL.md",[],[]]