视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
lov-fill-form【文档与办公】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, popul…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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).
metadata:
author: contributors
version: "1.2.1"
tags: form fill template docx word table cjkThis skill fills in Word document form templates (.docx) with user-provided data. It detects table-based form fields (label in one cell, value in the adjacent cell) and populates them automatically.
.docx form template with blank fields to fillYou MUST follow these steps in order:
Discover all fillable fields:
python lov-fill-form/scripts/fill_form.py --template <path> --scan
Before asking the user, try to fill as many fields as possible from:
For content-heavy fields (e.g. "主要内容/简介/摘要"), actively compose the content by synthesizing from context files, user's known expertise, and the topic/title.
Use AskUserQuestion to collect ONLY the fields you cannot fill from context.
Write a JSON data file (avoids shell escaping issues with long text), then run:
python lov-fill-form/scripts/fill_form.py \
--template <path> \
--data-file /tmp/form_data.json
Output path rules:
<template_dir>/<name>_filled.docx (same directory as the template)--output to override explicitly| Argument | Default | Description |
|---|---|---|
--template | (required) | Path to template .doc/.docx file |
--output | <template_dir>/<name>_filled.docx | Output .docx path |
--scan | false | 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 name for filled text |
--font-size | 11 | Font size in points |
.doc files are auto-converted to .docx via macOS textutil, which loses table structure.
For best results, use .docx templates directly. If you only have .doc, convert with
LibreOffice first: libreoffice --headless --convert-to docx file.doc--scan to verify detection.python3 -m pip install python-docx
运行前读取本 Skill 包的 skill.yaml,由宿主提供 skill-runtime/v1 上下文。字段解析顺序为:当前请求、项目上下文、个人 Preferences、品牌 Profile、通用默认值。
required: true 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题;用户明确同意后再保存回答。context_id、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
task-specific(仅本次)还是 reusable(可跨任务复用)。task-specific 只修改当前任务,不改 Skill。reusable 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。reusable 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。