What problem does it solve? Legal aid caseworkers must repeatedly fill the same case data into many Word closure documents (结案报告, 阅卷笔录, 代理意见, etc.), which is error-prone and time-consuming. This Skill batch-fills multiple .docx templates from a single element file while keeping the original document formatting intact. ## Core Features & Use Cases - Batch Template Filling: Reads an element file (元素_*.txt) with key::value pairs and fills every matching .docx template in a directory, producing *_已填充.docx outputs. - Format Preservation: Uses python-docx with character-level format tracking, XML-level font handling, and checkbox (□/☑) protection so the original layout is unchanged. - Multi Case-Type Support: Auto-detects civil, criminal, administrative, state compensation, and labor arbitration cases, with required-field validation per type. - Advanced Placeholders: Supports {key}, {{key}}, 【key】, [key] and more, plus default values, format specs, incremental fill, backups, logging, and rollback. - Use Case: A legal aid center prepares 元素_民事.txt for a labor dispute case, then runs one command to generate filled versions of 法援结案.docx, 阅卷笔录.docx, and 承办情况小结.docx in a single batch. ## Quick Start Place your 元素_民事.txt and .docx templates in one folder, then ask the assistant to run fill_docx_pro.py to batch-fill all legal aid templates with the case data.