Loading...
Loading...
Fill in Word document form templates (.docx) with user-provided data. Reads a template containing tables with label→value cell pairs, detects all fillable fields, and outputs a completed document. Handles CJK/Latin mixed text with proper font switching. Use this skill when the user wants to fill in a form template, complete an application form, populate a Word table form, or automate document filling. Also trigger when the user mentions "填表", "填写表格", "fill form", "fill template", "表格填写", "申请表", "登记表", or has a .docx template with blank fields to fill.
npx skill4agent add lovstudio/skills lovstudio-fill-form.docxpython lovstudio-fill-form/scripts/fill_form.py --template <path> --scanAskUserQuestionpython lovstudio-fill-form/scripts/fill_form.py \
--template <path> \
--data-file /tmp/form_data.json<template_dir>/<name>_filled.docx--output| Argument | Default | Description |
|---|---|---|
| (required) | Path to template .doc/.docx file |
| | Output .docx path |
| false | List all detected form fields |
| | JSON string with field→value mapping |
| | Path to JSON file with field→value mapping |
| Platform CJK serif | Font name for filled text |
| | Font size in points |
.doc.docxtextutil.docx.doclibreoffice --headless --convert-to docx file.doc--scanpip install python-docx --break-system-packages