LovStudio Skill / Office Automation·FREE · OPEN SOURCE

表单代笔

自动填写 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.

适用场景
Office Automation
当前版本
v1.1.2

SKILL CARD / TRUST RECORD

先看证据,再决定是否使用

这个 Skill 尚未发布完整的可信度卡。案例、维度地图与定价依据会在补齐后显示。

这是一条旧目录记录:Skill Card 尚未补齐。网站不会把缺少案例、维度或定价证据的条目包装成已验证能力。

PRICING CARD

价格与交付边界

自动填写 Word 表单模板,字段识别 + 中英文排版一气呵成。

免费入口

免费

稳定价格带 免费

价值锚点

一次交付通常可省下 20 分钟至半天的整理、排版和格式返工。

定价依据

按一次可发送或可归档的文件结果定价,重点是格式稳定和人工返工减少。

使用边界

默认处理结构清晰的输入;扫描质量、复杂模板、第三方转换器和批量服务成本另行确认。

维护说明

随文档格式、字体、渲染器和导出目标变化复评。

证据状态:开放入口,持续收集证据版本变化、连续 10 次真实使用或支持成本明显变化时复评。

使用说明

按这套方法完成任务

Version

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

Install

npx skills add fill-form -g -y

Requires: Python 3.8+ and pip install python-docx

How It Works

┌─────────────────────────────────────────────────┐
│  Template (.docx)                               │
│  ┌──────────┬───────────┬──────────┬──────────┐ │
│  │ 主讲人   │           │ 职称     │          │ │
│  ├──────────┼───────────┴──────────┴──────────┤ │
│  │ 单位     │                                 │ │
│  ├──────────┼───────────┬──────────┬──────────┤ │
│  │ 讲座题目 │           │ 时间     │          │ │
│  └──────────┴───────────┴──────────┴──────────┘ │
└────────────────────┬────────────────────────────┘
                     │ --scan → detect fields
                     │ --data → fill values
                     ▼
┌─────────────────────────────────────────────────┐
│  Filled (.docx)                                 │
│  ┌──────────┬───────────┬──────────┬──────────┐ │
│  │ 主讲人   │ 张三      │ 职称     │ 教授     │ │
│  ├──────────┼───────────┴──────────┴──────────┤ │
│  │ 单位     │ 北京大学                        │ │
│  ├──────────┼───────────┬──────────┬──────────┤ │
│  │ 讲座题目 │ AI与未来  │ 时间     │ 4月10日  │ │
│  └──────────┴───────────┴──────────┴──────────┘ │
└─────────────────────────────────────────────────┘

Usage

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).

Options

OptionDefaultDescription
--template(required)Path to template .doc/.docx
--output<name>_filled.docxOutput path (defaults to template directory)
--scanList all detected form fields
--dataJSON string with field → value mapping
--data-filePath to JSON file with field → value mapping
--fontPlatform CJK serifFont for filled text
--font-size11Font size in points

Field Detection

The script detects fillable fields in three ways:

MethodHow it worksExample
Table cellsLabel in one cell, blank value in adjacent cell│ 姓名 │ ___ │
Merged rowsFull-width cell with Label: pattern│ 备注:________________ │
ParagraphsFallback for docs without tables姓名: followed by blank line

Fields are matched by normalized label (whitespace-insensitive), so 主 讲 人 matches 主讲人.

Supported Formats

FormatSupport
.docxFull support (recommended)
.docAuto-converts via textutil (macOS) or LibreOffice. Table structure may be lost — convert to .docx first for best results.

License

MIT

用户评价与留言

登录后即可留言

分发渠道

在哪里可以获得它

这里标注这个 Skill 在各个平台的真实发布状态;有单品页时,入口会直接打开对应页面。

已发布

GitHub

公开源码、更新记录与 Issue 都在这里。

查看 GitHub
LS已发布

LovStudio 官网

在 LovStudio 获取、安装并查看使用说明。

你正在浏览此页面

WB暂未发布

WorkBuddy

该平台的单品页尚未发布。

单品页发布后会在这里出现。

SP已发布

支付宝 SkillPay

在 SkillPay 的单品页查看此 Skill。

商品编号 · P0806000200847227

打开商品页

安装渠道

装到你正在使用的 AI

Yoda、Codex、Claude Code 和其他兼容运行环境都使用同一份 Skill;选择你的工具后,按对应步骤完成安装。

先保存一次工作资料,支持 Profile 的 Skill 会在运行时直接复用。

配置工作资料

安装与配置

Yoda

适合同时使用多个 Agent 的工作流:在一个地方完成安装、分配和调用。

  1. 01打开 Yoda 的 Skills,搜索「fill-form」,进入详情后点击“安装”。
  2. 02在目标 Agent 的配置中,把该 Skill 设为“自动”“仅手动”或“关闭”。
  3. 03重新加载当前会话,再从输入框的 Skill 菜单选择它;Yoda 会按当前 Runtime 插入对应调用命令。
打开 Yoda

在 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).

更多信息

兼容性、权限与许可

源码可见性
公开仓库,可检查源码、Issue 与更新记录。
兼容性
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).
数据与权限
不同 Skill 可能读取本地文件、访问网络或调用第三方模型。执行前请检查完整手册中的具体步骤与命令。
许可
MIT

NEXT STEP

继续比较,再决定。

回到目录,从结果、证据、依赖和价格选择最合适的工作流。

返回当前 Skills 结果

LOVSTUDIO / KEEP MAKING

生命的意义,
在于创作

LovStudio