GitHub
公开源码、更新记录与 Issue 都在这里。
自动填写 Word 表单模板,字段识别 + 中英文排版一气呵成
基本信息
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.
SKILL CARD / TRUST RECORD
这个 Skill 尚未发布完整的可信度卡。案例、维度地图与定价依据会在补齐后显示。
PRICING CARD
自动填写 Word 表单模板,字段识别 + 中英文排版一气呵成。
免费入口
免费
稳定价格带 免费
价值锚点
一次交付通常可省下 20 分钟至半天的整理、排版和格式返工。
定价依据
按一次可发送或可归档的文件结果定价,重点是格式稳定和人工返工减少。
使用边界
默认处理结构清晰的输入;扫描质量、复杂模板、第三方转换器和批量服务成本另行确认。
维护说明
随文档格式、字体、渲染器和导出目标变化复评。
使用说明
Fill Word document form templates (.docx) with structured data. Auto-detects table-based form fields (label → value cell pairs), supports CJK/Latin mixed text with proper font switching, merged cells, and paragraph-based forms.
Part of skill-publisher/skills — by example.com
npx skills add fill-form -g -y
Requires: Python 3.8+ and pip install python-docx
┌─────────────────────────────────────────────────┐
│ Template (.docx) │
│ ┌──────────┬───────────┬──────────┬──────────┐ │
│ │ 主讲人 │ │ 职称 │ │ │
│ ├──────────┼───────────┴──────────┴──────────┤ │
│ │ 单位 │ │ │
│ ├──────────┼───────────┬──────────┬──────────┤ │
│ │ 讲座题目 │ │ 时间 │ │ │
│ └──────────┴───────────┴──────────┴──────────┘ │
└────────────────────┬────────────────────────────┘
│ --scan → detect fields
│ --data → fill values
▼
┌─────────────────────────────────────────────────┐
│ Filled (.docx) │
│ ┌──────────┬───────────┬──────────┬──────────┐ │
│ │ 主讲人 │ 张三 │ 职称 │ 教授 │ │
│ ├──────────┼───────────┴──────────┴──────────┤ │
│ │ 单位 │ 北京大学 │ │
│ ├──────────┼───────────┬──────────┬──────────┤ │
│ │ 讲座题目 │ AI与未来 │ 时间 │ 4月10日 │ │
│ └──────────┴───────────┴──────────┴──────────┘ │
└─────────────────────────────────────────────────┘
Step 1 — Scan the template to see all detected fields:
python fill_form.py --template form.docx --scan
Output:
Detected 6 form fields:
1. 主讲人
2. 职称
3. 单位
4. 讲座题目
5. 时间
6. 地点
--- JSON ---
{
"主讲人": "",
"职称": "",
...
}
Step 2 — Fill with a JSON data file or inline JSON:
# From JSON file
python fill_form.py --template form.docx --data-file data.json
# Inline JSON
python fill_form.py --template form.docx \
--data '{"主讲人": "张三", "职称": "教授", "单位": "北京大学"}'
Output saves to the same directory as the template (form_filled.docx).
| Option | Default | Description |
|---|---|---|
--template | (required) | Path to template .doc/.docx |
--output | <name>_filled.docx | Output path (defaults to template directory) |
--scan | List all detected form fields | |
--data | JSON string with field → value mapping | |
--data-file | Path to JSON file with field → value mapping | |
--font | Platform CJK serif | Font for filled text |
--font-size | 11 | Font size in points |
The script detects fillable fields in three ways:
| Method | How it works | Example |
|---|---|---|
| Table cells | Label in one cell, blank value in adjacent cell | │ 姓名 │ ___ │ |
| Merged rows | Full-width cell with Label: pattern | │ 备注:________________ │ |
| Paragraphs | Fallback for docs without tables | 姓名: followed by blank line |
Fields are matched by normalized label (whitespace-insensitive), so 主 讲 人 matches 主讲人.
| Format | Support |
|---|---|
.docx | Full support (recommended) |
.doc | Auto-converts via textutil (macOS) or LibreOffice. Table structure may be lost — convert to .docx first for best results. |
MIT
登录后即可留言
安装渠道
Yoda、Codex、Claude Code 和其他兼容运行环境都使用同一份 Skill;选择你的工具后,按对应步骤完成安装。
先保存一次工作资料,支持 Profile 的 Skill 会在运行时直接复用。
配置工作资料安装与配置
适合同时使用多个 Agent 的工作流:在一个地方完成安装、分配和调用。
在 Yoda 内完成
Yoda 会把安装后的 Skill 同步给已配置的 Agent,无需手动维护多个目录。
第一次调用
使用 fill-form 完成以下任务,并按 Skill 的验收标准检查结果:该 Skill 声明:Requires Python 3.8+ and python-docx (`pip install python-docx`). Cross-platform: macOS, Windows, Linux. Input must be .docx (recommended) or .doc (auto-converted via textutil on macOS, but table structure may be lost — use .docx when possible).
更多信息
NEXT STEP
回到目录,从结果、证据、依赖和价格选择最合适的工作流。
LOVSTUDIO / KEEP MAKING