AgentMarketMCP / SKILL 资产档案馆

目录 / 文档处理 / Word DOCX Formatting Repair

SKILL 未评级 已上架

Word DOCX Formatting Repair

--- name: word-docx-formatting-repair-helper description: Diagnose and repair Microsoft Word DOCX formatting problems, including styles, numbering, section breaks, headers and footers, comments, tracked changes, and OOXML compatibility. Use when Codex is asked to fix or automate Word document formatting, inspect .docx internals, preserve legal or business document layout, or create a repeatable Word cleanup workflow. --- # Word DOCX Formatting Repair Use this skill when a Word document looks wrong, a DOCX automation task breaks formatting, or the user needs a reliable plan for repairing Word files without hand-editing every page. ## Workflow 1. Identify the failure mode: visual formatting drift, broken numbering, missing headers, section break chaos, tracked-change/comment problems, template mismatch, or corrupted OOXML. 2. Ask for the DOCX file only when inspection is required. If the user describes the issue clearly, start with a repair plan and note assumptions. 3. Preserve the original file. Work on a copy and avoid flattening tracked changes or comments unless the user explicitly requests it. 4. Inspect the document structure before editing: - Use ZIP/OOXML inspection for `word/document.xml`, `word/styles.xml`, `word/numbering.xml`, `word/settings.xml`, relationships, headers, and footers. - Use Word-compatible libraries such as `python-docx` only for operations it safely supports. - Use direct OOXML edits for unsupported features such as complex numbering, comments, content controls, and some tracked-change structures. 5. Build a repair map that ties each visible problem to its likely source: paragraph style, direct formatting, numbering definition, section property, relationship target, or theme/font setting. 6. Apply the smallest safe change. Prefer style corrections and numbering definitions over rewriting all paragraphs. 7. Validate by reopening or rendering the document when possible, checking page count, headings, numbering sequences, headers/footers, comments, tracked changes, and tables. ## Common Fix Patterns - **Broken multilevel numbering**: inspect `numbering.xml`, confirm `abstractNum` and `numId` mappings, then relink affected paragraphs instead of replacing visible text. - **Heading style drift**: compare `styles.xml` against the template, repair style definitions, then remove unnecessary direct formatting from affected paragraphs. - **Section break problems**: inspect `w:sectPr` placement, page orientation, margins, and header/footer references before moving content. - **Tracked changes and comments**: never strip `w:ins`, `w:del`, or comment relationships unless the user asks for a clean final copy. - **Compatibility issues**: check generated OOXML against Word expectations, especially namespaces, relationship IDs, content types, and unsupported library output. ## Outputs Provide the user with: - A diagnosis of what is likely wrong and where it lives in the DOCX package. - A precise repair plan or implemented document/code change. - A validation note describing how the repaired DOCX was checked. - Any remaining risks, especially where Word desktop behavior cannot be fully verified locally. Read `references/requirement-plan.md` only when evidence from the demand-agent run is needed.

模型生成摘要(rules/v1 · 2026-10-20 22:12):---
这是模型对公开材料的总结,不是官方声明,请以原链内容为准。

存档时间线

版本存档时间内容哈希内容
v12026-09-21 17:03a76d2380 已过保留期
v22026-10-21 06:11ea392bd5 可取

版本索引永久保留;内容副本只保留最新 1 份,更早版本仅留索引与哈希(存档时间线的证据链不会因此断裂)。

下载存档内容副本

相关资产

MCP 需 API Key

Speed Reader

Turn any article, document, or chat reply into a one-word-at-a-time RSVP reading session

Office 转换
原作者:archerionlabs 来源:Smithery 仅卡片存档
MCP 需 API Key

Document to Markdown & RAG Chunks

Convert PDF, Word, PowerPoint, Excel, HTML and EPUB files into clean Markdown for LLMs, including OCR for scanned PDFs a…

MarkdownRAGPDF 处理Office 转换ERPExcel 操作
原作者:p-d-tashev 来源:Smithery 仅卡片存档
MCP 需 API Key

pdf-toolkit

PDF Toolkit converts PDFs/images to Word, Excel, and Markdown, splits and merges PDFs, creates PDFs from images, adds te…

PDF 处理Office 转换Excel 操作Markdown
原作者:bob-rsef 来源:Smithery 仅卡片存档
MCP 需 API Key

11FGB Cleaning Tools

Free deterministic US cleaning calculators for home and office cost, crew size, job duration, and chemical usage

Office 转换
原作者:ethernity 来源:Smithery 仅卡片存档
MCP 需 API Key

word

word:提供 Arcade_ListApps: See the apps the current caller can act on … 等能力

Office 转换
原作者:arcade 来源:Smithery 仅卡片存档
纠错与举报(发现条目失效、署名有误或涉及侵权?)
提交举报 / 纠错

侵权举报经核验成立后,我们会即时下线该条目并删除已存的内容副本。