模板套用助手

SKILL效率
效率 未标注权限 许可证不明确
安装这个技能

一句话介绍 上传「模板」和「内容」两个文件,本技能会把内容文件按照模板的格式、表格布局或内容要求重新整理,输出一份与模板同格式的新文件。 能解决什么 把零散内容(聊天记录、会议纪要、网页摘录、草稿)套进固定模板; 把内容填进带 {{占位符}} 或「表头 + 示例行」的 Word / Excel 模板; 在模板里直接写明"要改成什么样",让 AI 按指示做改写、抽取、汇总,而不只是机械填表; 当内容不全(缺板块、缺字段)时,先询问你再决定补充方式,绝不擅自编造或丢弃。 支持格式 模板与内容均可为:Word(.docx)、Excel(.xlsx / .csv); 输出格式永远跟随模板(docx→docx,xlsx→xlsx/csv)。 怎么用(三步) 上传两个文件,并说明哪个是模板(如"文件 1 是模板"); (可选但推荐)在模板里写明内容要求; 说一句"按模板格式改一下",技能自动解析模板结构、读取内容、套用并输出新文件——不会改动你的原文件。 模板怎么写 占位符:用 {{标题}}、{{日期}} 标出要填的位置; 表格:第一行写表头(如「姓名|成绩」),第二行放一行示例,技能按表头生成对应行数; 纯结构:只用标题层级搭骨架、正文留空,技能把内容重写进各小节。 进阶:在模板里写「内容要求」(强烈推荐) 当内容文件与模板字段不一一对应时,在模板里加一段要求即可: 显式标记:【要求】把口语改成书面语;缺失填"无";每条不超 30 字。【/要求】 (也支持 [[要求]]…[[/要求]] 或 <<<要求>>>…<<</要求>>>) 关键词标题:用一个含「要求 / 说明 / 规范 / 改写 / 转换 / 注意」的标题,下面写具体要求。 要求块里的指令优先于默认推断。 内容不够时:先问后补(关键能力) 如果内容文件无法满足模板或「内容要求」的必填项(例如模板有「下周计划」小节、内容里却没有),技能会: 检测缺口——对比模板结构 + 内容要求,找出缺失的板块 / 列; 弹窗询问——每个缺口给你三个选项: ① 我自己补充:你接着输入文字,技能收到后并入再生成; ② 由 AI 生成:依据上下文补全,并明确标注「AI 生成·待你复核」; ③ 留空 / 跳过:按模板或要求填「无 / 待补充」后继续; 缺口解决后才生成,不会在缺口未处理时就产出。 示例:模板要求「本周进展 / 风险与问题 / 下周计划」三节,内容只提了前两项。技能检测到缺「下周计划」→ 弹窗询问 → 你选「由 AI 生成」→ 它依据"监控方案还没定"等线索生成一段下周计划,并逐条标注 [AI生成·待你复核],最终输出新建文件。 注意事项 原文件不会被改动,结果永远是新建文件; 列名 / 占位符要和模板完全一致(含空格、标点),否则该列会空着; 内容比模板多 → 自动精简归纳;内容比模板少 → 触发"先问后补"流程; 中文 CSV 已做防乱码(utf-8-sig)处理。

一句话选型结论

按资料字段整理

模板套用助手是效率类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类效率 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_ceb89c8a/reformat-to-template
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

效率
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_ceb89c8a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791625595
正文体量9.5 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
整理待办与日程

把零散任务收进清单,排出优先级。

批量处理重复任务

把固定动作做成模板,重复执行。

把流程写成清单

把口头流程整理成可复用的步骤。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在效率场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
模板套用助手当前 未标注权限 未标注 未标注 未标注 有
Nano PDF 文档 联网访问 ClawHub 市场 424.9 万 OpenClaw 有
自动更新程序 浏览器控制 ClawHub 市场 296.4 万 OpenClaw 有
Gemini 助手 联网访问 ClawHub 市场 254.7 万 OpenClaw 有
word DOCX 文档 联网访问 ClawHub 市场 239.6 万 OpenClaw 有
Excel XLSX 前端 联网访问 ClawHub 市场 227.0 万 OpenClaw 有

SKILL.md 全文

9.5 KB
模型实际读到的说明书原文,来自技能仓库

Reformat to Template

Take a template (file 1) and a content file (file 2). Reshape file 2's
content so it follows file 1's format, table layout, and content requirements,
then save the result as a new file in the template's format.

When to use

  • User uploads two files and says "把文件2按文件1的格式改一下 / 套用模板 /
    改成模板的格式 / 转成表格形式 / 按这个模板排版".
  • User provides a template and asks to convert some content into that template's shape.
  • Both files may be .docx, .xlsx, .csv, or plain text — the output always
    matches the template's format.

在模板中写「内容要求」(强烈推荐)

除了定格式,模板还能直接写明「内容要改成什么样」。这样即使文件 2 与模板字段不完全对应,skill 也能按你的指示做改写 / 抽取 / 汇总,而不只是机械填表。

两种写法都支持:
1. 显式标记块(最稳定),放在模板任意位置:
【要求】把文件2的口语化描述改写成第三人称客观叙述;成绩保留整数;缺失项填&quot;无&quot;。【/要求】
也支持 [[要求]]…[[/要求]] 或 &lt;&lt;&lt;要求&gt;&gt;&gt;…&lt;&lt;&lt;/要求&gt;&gt;&gt;。
2. 带关键词的标题 + 其下段落:标题含「要求 / 说明 / 规范 / 改写 / 转换 / 注意」等词,下方段落即视为要求。例如一个标题「内容要求」下面写:「将文件2的要点提炼为每条不超过20字;按"问题—原因—对策"三栏组织。」

提取命令(模型会自动读取并作为改写依据):

&quot;%PY%&quot; scripts/docx_utils.py requirements &quot;template.docx&quot;
&quot;%PY%&quot; scripts/xlsx_utils.py requirements &quot;template.xlsx&quot;

若模板没有要求块,则仅按结构套用。

Environment setup

The bundled scripts need python-docx and openpyxl. Run them with the managed
Python venv that already has these installed:

PY=&quot;C:\Users\54183\.workbuddy\binaries\python\envs\default\Scripts\python.exe&quot;

If a script fails to import, install once:

&quot;%PY%&quot; -m pip install python-docx openpyxl

(Adjust the venv path if the managed Python location differs on the user's machine.)

Workflow

1. Identify the two files

Confirm which upload is the template and which is the content. If the user
did not label them, ask which is the template before proceeding. Treat file 1 as
template unless told otherwise.

2. Inspect the template structure

Run the matching structure command and read its JSON output:

# Word template
&quot;%PY%&quot; scripts/docx_utils.py structure &quot;template.docx&quot;

# Excel / CSV template
&quot;%PY%&quot; scripts/xlsx_utils.py structure &quot;template.xlsx&quot;
&quot;%PY%&quot; scripts/xlsx_utils.py structure &quot;template.csv&quot;

Note the paragraph styles, detected {{placeholders}}, table indices + headers,
and sheet names. This JSON is the schema the content must fit into.

2.5 Extract the template's "内容要求" block (if any)

Run the requirements subcommand. If the output is not "(未检测到内容要求块)", treat
that text as the rewrite / extract / summarize instructions for file 2 and carry
them into later steps. These instructions take priority over generic inference —
e.g. "rewrite spoken text into objective third-person", "fill missing with 无",
"organize into three columns" must all be honored.

&quot;%PY%&quot; scripts/docx_utils.py requirements &quot;template.docx&quot;
&quot;%PY%&quot; scripts/xlsx_utils.py requirements &quot;template.xlsx&quot;

3. Read the content file

  • If content is .docx/.xlsx/.csv, use the matching read subcommand
    (docx_utils.py read / xlsx_utils.py read) or the structure command.
  • If content is .txt/.md/.pdf, read it with the normal file-reading tools.
    Extract the actual data points, records, and sections the template needs.

3.5 Detect content gaps and ask the user

After reading the content, compare it against everything the template and its
"内容要求" block actually require. Identify any required but missing parts, such as:
- a template section/heading (e.g. "下周计划") with no corresponding information in the content;
- a column or {{placeholder}} the template needs but the content cannot supply;
- a "内容要求" instruction expecting certain sub-items (e.g. "三栏:问题—原因—对策") where one is absent.

When gaps exist, do NOT silently fill them or skip them. Use AskUserQuestion to
confirm how to handle each gap. Batch up to 4 gaps into a single call (one question
per gap). For every gap offer these options:
1. 我自己补充 — the user will type the missing content next; wait for their input,
merge it into the content, then continue to mapping.
2. 由 AI 生成 — generate reasonable content from the template context and the
"内容要求" instructions; clearly mark AI-generated parts and ask the user to verify.
3. 留空 / 跳过 — leave the section blank or fill a neutral value (e.g. "无" / "待补充")
per the template or requirements, then continue.

Proceed to step 4 only after every gap is resolved (user input received, AI content
generated, or explicitly skipped).

4. Decide the mapping pattern

Map content → template using the patterns in references/format_patterns.md:
- Word placeholder template → placeholders map (模式 A)
- Word table template → tables map keyed by header text (模式 B)
- Word pure-structure template → rewrite section paragraphs on a template copy (模式 C)
- Excel column table → records keyed by header text per sheet (模式 D / E)
- Content requirements block present → follow its instructions for semantic
rewriting / extraction / summarization, then fit the result into the structure
(see references/usage_tips.md for examples).

Keep keys exactly equal to the template's placeholder text or header text
(spaces and punctuation included).

5. Build the output

For Word:

&quot;%PY%&quot; scripts/docx_utils.py fill &quot;template.docx&quot; &quot;output.docx&quot; --mapping mapping.json

mapping.json example:

{
  &quot;placeholders&quot;: { &quot;title&quot;: &quot;期中成绩表&quot;, &quot;date&quot;: &quot;2026-08-14&quot; },
  &quot;tables&quot;: { &quot;0&quot;: [ {&quot;姓名&quot;: &quot;Alice&quot;, &quot;成绩&quot;: &quot;90&quot;}, {&quot;姓名&quot;: &quot;Bob&quot;, &quot;成绩&quot;: &quot;85&quot;} ] }
}

For Excel / CSV:

&quot;%PY%&quot; scripts/xlsx_utils.py fill &quot;template.xlsx&quot; &quot;output.xlsx&quot; --mapping mapping.json

mapping.json example (xlsx, keyed by sheet):

{ &quot;Sheet1&quot;: [ {&quot;姓名&quot;: &quot;Alice&quot;, &quot;成绩&quot;: &quot;90&quot;}, {&quot;姓名&quot;: &quot;Bob&quot;, &quot;成绩&quot;: &quot;85&quot;} ] }

For CSV the mapping is a top-level list of records. Generate mapping.json with
the Write tool, then run the fill command.

If the template is a pure-structure Word doc with no placeholders (模式 C), clone
the template and rewrite its paragraphs directly with python-docx (or have the
model produce the new section text and write it into the clone).

6. Validate and present

Re-run structure/read on the output and check:
- No leftover {{...}} placeholders.
- Table row count equals record count; columns line up with headers.
- Excel header row intact and not overwritten.
- Chinese renders without mojibake.
Then present the output file to the user via present_files.

Notes

  • Never modify the user's original template or content files; always write a new output file.
  • Record keys must match template headers/placeholders exactly.
  • The "内容要求" block's instructions take priority over default inference; when they
    conflict with the bare structure, follow the requirements.
  • When content is richer than the template, extra material should be summarized or
    placed in an appropriate section rather than dropped silently — confirm with the
    user if significant content would be omitted.
  • When content is thinner than the template (missing required sections/columns), the
    gap MUST be surfaced to the user via AskUserQuestion before proceeding — never invent
    or drop required content without confirmation. AI-generated fill-ins must be clearly
    marked and offered for the user to verify.

使用提示(给使用者的速查)

  • 最省事:直接给一个带 {{占位符}} 或「表头+示例行」的模板,再给内容,说一句"按模板格式改"。
  • 要指定改法:在模板里加一句要求,例如「【要求】把口语改成书面语;缺失填'无';每条不超过30字。【/要求】」,skill 会照做。
  • 模板即内容:内容文件可以很乱(聊天记录、会议纪要、网页摘录),只要模板写清"要抽成什么结构",skill 会抽取重组。
  • 格式以模板为准:无论内容是什么格式,输出都和模板同格式(docx→docx,xlsx→xlsx/csv)。
  • 不确定哪个是模板:主动说明"文件1是模板",避免套反。
  • 内容不够怎么办:若内容缺了模板要求的板块/列,skill 会弹窗问你——可自己补写、让 AI 生成,或留空跳过,不会擅自编造或丢弃。
  • 更多示例见 references/usage_tips.md。

常见问题

5 问
答案由本站依据条目字段整理
模板套用助手怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_ceb89c8a/reformat-to-template。安装方式为未标注。装完刷新技能列表或重开客户端。

模板套用助手支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

模板套用助手权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

模板套用助手收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

模板套用助手用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。