name: docx description: Work with Microsoft Word DOCX files safely. Use when the user asks to inspect, compare, revise, polish, generate, or prepare Word documents, especially SOWs and proposals that need consistent DOCX-ready structure. tools: - rag_query - request_clarification
docx
Overview
Use this skill for .docx and .doc files. Word files are binary OOXML, so the agent should not treat them as plain UTF-8 text. This skill keeps document work grounded and gives proposal-writing a consistent DOCX-ready output contract.
Rules
- Never call
read_fileon a raw.docxor.doc. - Prefer indexed document text, derived artifacts, or explicit user-provided excerpts for content inspection.
- If the user provides a DOCX as a style example, extract the structure and writing patterns, not just the topic.
- Do not claim exact Word pagination, headers, footers, comments, tracked changes, or visual layout unless a renderer or DOCX-specific tool confirms them.
- For generated documents, keep markdown as the canonical editable source unless a DOCX export tool is explicitly available.
- If the task is a proposal, SOW, commercial proposal, RFP response, or customer-facing scope document, load
proposal-writingand follow its revision and DOCX-ready rules.
Workflow
Determine the DOCX task type.
- Content question or summary
- Style/template extraction
- Comparison between two documents
- Proposal/SOW revision
- New DOCX-ready document generation
Inspect safely.
- If the DOCX is indexed, use
rag_queryagainst the concrete file path. - If a derived markdown/text preview exists, use that as the readable source.
- If the document is not indexed and no derived artifact exists, ask for an exported PDF/text version or use another available DOCX-aware tool if present.
- If the DOCX is indexed, use
Extract structure when using a DOCX as a template. Capture:
- title block fields
- heading hierarchy
- recurring tables
- signature blocks
- assumptions / exclusions / acceptance criteria patterns
- level of detail and commercial tone
For proposal/SOW output.
- Use
proposal-writing. - Produce
/Final_Proposal.mdas the canonical source. - Make it DOCX-ready with clean numbered headings, tables, plain bullets, and signature blocks.
- Do not append revised content after old content; rewrite affected sections and rebuild the final document.
- Use
For exact DOCX output.
- If a DOCX export/edit tool is available, use it after the markdown source is verified.
- If no DOCX export/edit tool is available, state that the workspace has a DOCX-ready markdown source and identify any export limitation.
Good uses
- Compare a polished SOW DOCX against a weaker generated proposal.
- Pull heading structure and table patterns from a Word proposal.
- Prepare a proposal in markdown that can be exported cleanly to Word.
- Explain likely limitations when Word layout fidelity matters.
Avoid
- UTF-8 decoding Word binaries.
- Appending "improved" material after an existing document instead of revising it.
- Treating a DOCX preview as exact Microsoft Word layout.