word-format-from-content-template
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "word-format-from-content-template" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-147d8fc0e6be4660b97137b99df39106ec81bb458d35652ca3fcd47d9346c494. Verify the upstream source and version against https://github.com/Tang1206cc/codex-skill-paper-formatting-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Format a Word document using the user-provided document content, formatting rules, and Word template while strictly preserving the original text unchanged. Intended for cases where the user supplies formatting specification files, the source manuscript, and a .doc/.docx template, or requests applying institutional thesis/report rules to produce a DOCX layout without rewriting the content.
Introduction source: third_party · Tang1206cc · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
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
-
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.
-
Extract source truth
- Read the full specification with suitable tools:
textutilfor.doc/.docxon 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.
- Read the full specification with suitable tools:
-
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.
-
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.
-
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
.docxcreation, editing, and render-to-PNG verification. - Use
python-docxfor 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.docand.docxtext extraction. - Use LibreOffice/
sofficeconversion 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.
Version history
-
v1.0.0
GitHub ↗
Original release notes
发布论文排版工具 Codex skill V1.0.0。 本压缩包包含 `word-format-from-content-template` skill,用于按格式规范和 Word 模板排版论文、课程报告、毕业设计说明书等文档,同时默认保持原稿内容不被改写。 包内包含:`SKILL.md`、OpenAI agent 配置、详细工作流、质量检查清单,以及文本一致性辅助脚本 `compare_text.py`。
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向学术/企业文档标准化排版刚需场景
- 严格保留原始内容的同时实现精确格式控制
- 解决用户手动排版易错、耗时的核心痛点
Highlights
- 触发词覆盖全面,包含中英文关键场景描述
- 边界清晰,能有效区分于通用文档生成工具
Highlights
- 五步工作流结构清晰,含明确出口条件
- Non-Negotiables 与中文契约双重保障执行标准
- frontmatter 完整,文档长度适中
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 references/workflow.md、references/quality-checklists.md 和 scripts/compare_text.py,但这些文件未包含在 Skill 包中
Recommendation: 请补充被引用的参考文件和脚本,或移除相关引用说明以确保执行完整性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.