word-format-from-content-template

根据用户提供的文档内容、格式规范和 Word 模板,对 Word 文档进行排版,严格保留原始稿件中的文本内容不变。适用于用户提供格式规范文件、原始稿件和 .doc/.docx 模板,或要求按学校/公司论文与报告排版规则套用模板并生成 DOCX 布局的场景。

仓库最近推送
GitHub Stars
172
Forks
11
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "word-format-from-content-template":https://skillpi.com/zh/skills/deepskill-147d8fc0e6be4660b97137b99df39106ec81bb458d35652ca3fcd47d9346c494。安装前核对上游来源和版本:https://github.com/Tang1206cc/codex-skill-paper-formatting-skill。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

根据用户提供的文档内容、格式规范和 Word 模板,对 Word 文档进行排版,严格保留原始稿件中的文本内容不变。适用于用户提供格式规范文件、原始稿件和 .doc/.docx 模板,或要求按学校/公司论文与报告排版规则套用模板并生成 DOCX 布局的场景。

0 下载

介绍来源: third_party · Tang1206cc · 0.0.1 参考来源

SkillPi 解读

能完成的任务
Format Word documents from user-provided content, formatting specifications, and Word templates while preserving the draft text exactly. Use when the user provides or references a 格式规范文件, 原始稿件, Word模板, .doc/.docx template, school/company document standard, thesis/report formatting rules, or asks Codex to 按规范排版 Word 文件, 套模板, 严格排版, 保持内容不变, or perform DOCX layout production without rewriting the supplied content.
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: word-format-from-content-template
description: Format Word documents from user-provided content, formatting specifications, and Word templates while preserving the draft text exactly. Use when the user provides or references a 格式规范文件, 原始稿件, Word模板, .doc/.docx template, school/company document standard, thesis/report formatting rules, or asks Codex to 按规范排版 Word 文件, 套模板, 严格排版, 保持内容不变, or perform DOCX layout production without rewriting the supplied content.

Word Format From Content Template

Non-Negotiables

  • Read the full formatting specification before writing the final document.
  • Preserve the user-provided draft content exactly. Do not polish, summarize, expand, translate, delete, or rewrite content unless the user explicitly asks for content editing.
  • Treat the Word template as a layout carrier. Remove or replace template sample text so it cannot leak into the final document.
  • Convert every applicable rule in the specification into a checkable formatting checklist before final delivery.
  • Verify both dimensions before delivery: the output follows the specification, and the output contains the user's original content with no unintended text changes.
  • Render the final DOCX to visual pages when tooling permits. Inspect pages for clipping, overlap, table breaks, missing headers/footers, bad page numbers, and stale fields.

中文硬性契约

  • 必须先完整阅读规范文件,建立完整排版和写入思路,再开始写入模板。
  • 内容不得改写:原稿件的正文、标题、表格文字、注释、参考文献等均不得润色、删减、扩写、换写或自行补充。
  • 只允许处理排版层事项,包括样式、段落、页边距、页眉页脚、页码、目录、题注、表格版式、分页和字段更新。
  • 模板旧内容不得混入最终稿;所有示例文字、占位文字、旧题目、旧作者信息和旧正文都要清理或替换。
  • 每条规范都要形成可执行清单,并在交付前逐条自查。
  • 必须完成内容一致性检查和渲染视觉检查;若工具失败,要说明失败原因并采用可行替代检查。

Workflow

  1. Collect and identify inputs

    • Identify the formatting specification file, source draft file, and Word template file.
    • If multiple candidates exist, inspect filenames and nearby context before asking.
    • Preserve original files; create a clearly named output file.
  2. Extract source truth

    • Read the full specification with suitable tools: textutil for .doc/.docx on macOS, PDF extraction/rendering for PDFs, and OOXML inspection when formatting details matter.
    • Extract the draft content separately and mark it as immutable content.
    • Inspect the template for reusable styles, page setup, headers, footers, cover blocks, sample text, fields, and section breaks.
  3. Build the formatting contract

    • Write a concise checklist covering page setup, margins, fonts, line spacing, paragraph indents, heading hierarchy, page breaks, headers/footers, page numbering, TOC behavior, tables, figures, captions, footnotes, references, appendices, and any school/company-specific rules.
    • Decide which parts are copied from the template and which are reconstructed through explicit DOCX styles or OOXML.
  4. Format without rewriting

    • Insert the draft content into the template structure.
    • Apply styles, numbering, tables, captions, page breaks, sections, headers/footers, and fields according to the checklist.
    • Keep content changes limited to mechanical layout needs such as paragraph splitting, heading style assignment, whitespace normalization required by Word, and field generation.
  5. Verify

    • Run a content-consistency check between extracted draft text and final text.
    • Search final text for template residue and unrelated old sample content.
    • Render pages with the Documents skill renderer or LibreOffice/soffice; if rendering fails, use the best available fallback and disclose the limitation.
    • Iterate until both the formatting checklist and content-consistency checklist pass.

See references/workflow.md for the detailed operating procedure and references/quality-checklists.md for reusable QA checklists. Use scripts/compare_text.py to support source-vs-final text comparison.

Tool Guidance

  • Prefer the existing Documents skill for .docx creation, editing, and render-to-PNG verification.
  • Use python-docx for deterministic style, paragraph, table, header/footer, and section work when it is sufficient.
  • Use OOXML inspection or patching when field codes, numbering definitions, page numbering, section properties, or table geometry cannot be controlled reliably through high-level APIs.
  • On macOS, textutil -convert txt -stdout <file> is a practical first pass for .doc and .docx text extraction.
  • Use LibreOffice/soffice conversion plus page PNG inspection for final visual QA. If Chinese or spaced paths cause conversion issues, copy the DOCX to a temporary ASCII path for rendering only, leaving the final deliverable path unchanged.

Delivery Standard

Return the final Word file path and briefly state:

  • which specification/template/draft were used,
  • that the original source content was not intentionally rewritten,
  • which checks passed,
  • any rendering or field-update limitation that remains.

版本历史

  1. v1.0.0 GitHub ↗
    原版更新说明

    发布论文排版工具 Codex skill V1.0.0。 本压缩包包含 `word-format-from-content-template` skill,用于按格式规范和 Word 模板排版论文、课程报告、毕业设计说明书等文档,同时默认保持原稿内容不被改写。 包内包含:`SKILL.md`、OpenAI agent 配置、详细工作流、质量检查清单,以及文本一致性辅助脚本 `compare_text.py`。

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 面向学术/企业文档标准化排版刚需场景
  • 严格保留原始内容的同时实现精确格式控制
  • 解决用户手动排版易错、耗时的核心痛点
触发精准95/100

亮点

  • 触发词覆盖全面,包含中英文关键场景描述
  • 边界清晰,能有效区分于通用文档生成工具
结构规范90/100

亮点

  • 五步工作流结构清晰,含明确出口条件
  • Non-Negotiables 与中文契约双重保障执行标准
  • frontmatter 完整,文档长度适中
执行可靠70/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    SKILL.md 引用了 references/workflow.md、references/quality-checklists.md 和 scripts/compare_text.py,但这些文件未包含在 Skill 包中

    改进建议:请补充被引用的参考文件和脚本,或移除相关引用说明以确保执行完整性

证据可验 (前四项均值)87/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。