docx
/docx
Create, read, edit, fill, and format editable Word documents (.docx / Word文档 / 文档) using OpenXML SDK (.NET). Use for reports/报告, proposals, memos, forms, contract formatting/合同, Chinese government documents/公文 (GB/T 9704), academic papers (IEEE, ACM, APA 7 professional, MLA 9, Chicago/Turabian, Springer LNCS, Nature), theses/学位论文 and supplied university templates, business/editorial formats (Modern Corporate, Executive Brief, HBR), 排版 and 套模板. Route creation, narrow content edits, or template application without assuming a restyle. Provides document structure and presentation guidance, not gov
- Author
- okou-ai ↗
- Repository
- okou-skills ↗
- Licence
- MIT
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 87
- Scripts
- 47
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 47 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/doc_to_docx.sh, scripts/docx.sh, scripts/docx_preview.sh, scripts/dotnet/Docx.Cli/Program.cs, scripts/dotnet/Docx.Core/Commands/AnalyzeCommand.cs, scripts/dotnet/Docx.Core/Commands/ApplyTemplateCommand.cs, scripts/dotnet/Docx.Core/Commands/CreateCommand.cs, scripts/dotnet/Docx.Core/Commands/DiffCommand.cs
What it does and when to use it
Create, read, edit, fill, and format editable Word documents (.docx / Word文档 / 文档) using OpenXML SDK (.NET). Use for reports/报告, proposals, memos, forms, contract formatting/合同, Chinese government documents/公文 (GB/T 9704), academic papers (IEEE, ACM, APA 7 professional, MLA 9, Chicago/Turabian, Springer LNCS, Nature), theses/学位论文 and supplied university templates, business/editorial formats (Modern Corporate, Executive Brief, HBR), 排版 and 套模板. Route creation, narrow content edits, or template application without assuming a restyle. Provides document structure and presentation guidance, not gov
Original author description
Create, read, edit, fill, and format editable Word documents (.docx / Word文档 / 文档) using OpenXML SDK (.NET). Use for reports/报告, proposals, memos, forms, contract formatting/合同, Chinese government documents/公文 (GB/T 9704), academic papers (IEEE, ACM, APA 7 professional, MLA 9, Chicago/Turabian, Springer LNCS, Nature), theses/学位论文 and supplied university templates, business/editorial formats (Modern Corporate, Executive Brief, HBR), 排版 and 套模板. Route creation, narrow content edits, or template application without assuming a restyle. Provides document structure and presentation guidance, not gov
How it works
- Setup
- Routing order: common → applicable profile → operation
- Pipeline routing
- References by responsibility
SKILL.md preview
---
name: docx
license: MIT
metadata:
version: "1.0.0"
category: document-processing
upstream: UPSTREAM.md
sources:
- "ECMA-376 Office Open XML File Formats"
- "GB/T 9704-2012 Layout Standard for Official Documents"
- "IEEE / ACM / APA / MLA / Chicago / Turabian Style Guides"
- "Springer LNCS / Nature / HBR Document Templates"
description: >
Create, read, edit, fill, and format editable Word documents (.docx / Word文档 / 文档)
using OpenXML SDK (.NET). Use for reports/报告, proposals, memos, forms, contract
formatting/合同, Chinese government documents/公文 (GB/T 9704), academic papers
(IEEE, ACM, APA 7 professional, MLA 9, Chicago/Turabian, Springer LNCS, Nature),
theses/学位论文 and supplied university templates, business/editorial formats
(Modern Corporate, Executive Brief, HBR), 排版 and 套模板. Route creation,
narrow content edits, or template application without assuming a restyle.
Provides document structure and presentation guidance, not government-policy,
research, or legal expertise or official certification. Use ../pdf/SKILL.md
for a standalone PDF.
---
# Word documents
## Setup
Set `SKILL_DIR` to the absolute directory containing this file. All command paths
are relative to this directory, not the task's working directory.
First DOCX operation in the session:
`bash "$SKILL_DIR/scripts/env_check.sh"`. Reuse the working SDK and CLI afterward.
For permitted missing dependencies, use `scripts/setup.sh --minimal` (Windows:
`scripts/setup.ps1 -Minimal`). For PDF output, `.doc` conversion or requested
rendering, run `bash "$SKILL_DIR/scripts/env_check.sh" --with-rendering`; it probes
Writer with a real DOCX-to-PDF conversion. If needed and setup is allowed, run the
full setup script without the minimal flag. Do not equate a binary/version probe
with successful candidate rendering.
## Routing order: common → applicable profile → operation
1. For a **narrow EDIT** or **read-only** task, preserve existing presentation:
use B for edits and preview/analyze for reading; never recreate or restyle
merely because text mentions APA, 公文 or HBR.
2. Treat explicit user requirements and the supplied template as authoritative.
If they conflict, clarify rather than silently replacing either with a recipe.
3. For **new creation or explicitly requested restyling**, select an applicable
profile. Named-format rules override generic academic/business defaults, not
the user's requirements or template.
4. Select A/B/C below. New content in a supplied structured template uses C-2
Base-Replace; a simple fill remains B.
| Condition (within the authorized scope) | Read directly |
|---|---|
| Chinese government / 公文 / GB/T 9704 layout | [Government](references/domains/government.md) |
| Named paper: IEEE, ACM, APA, MLA, Chicago/Turabian, LNCS, Nature | [Academic](references/domains/academic.md) |
| Thesis/dissertation or supplied university template | [Thesis/template](references/domains/thesis-template.md) |
| Corporate report, executive brief, HBR or editorial presentation | [Business/editorial](references/domains/business-editorial.md) |
| Generic memo, letter or unspecified layout; narrow edit/read | No domain recipe required |
Profiles address structure/presentation, not research, government, legal or
business expertise or official certification. Adapt examples to the supplied
content; never copy sample findings, citations, agency identities or business
data. Samples are not CLI recipe selectors or publisher acceptance guarantees.
## Pipeline routing
| Task | Workflow |
|---|---|
| New document without a structured template | Pipeline A: [CREATE](references/operations/create.md) |
| Fill placeholders, replace text or edit authorized content | Pipeline B: [EDIT/FILL](references/operations/edit.md) |
| Authorized restyling with a pure style template | Pipeline C-1: [OVERLAY](references/operations/template.md) |
| New content within a structured cover/TOC/section template | Pipeline C-2: [BASE-REPLACE](references/operations/template.md) |
| Completed output or an affected change | [VALIDATE](references/operations/validate.md) |
For existing documents, preview and analyze before editing. Convert legacy `.doc`
only when needed; these entry points remain unchanged:
```bash
bash "$SKILL_DIR/scripts/doc_to_docx.sh" input.doc output_dir/
bash "$SKILL_DIR/scripts/docx_preview.sh" document.docx
bash "$SKILL_DIR/scripts/docx.sh" analyze --input document.docx
bash "$SKILL_DIR/scripts/docx.sh" --help
```
Simple CLI creation supports `report|letter|memo|academic`; `--type academic` is
not APA/IEEE selection. For custom styles, sections, TOC, images or complex
tables, read [authoring and sample patterns](references/implementation/authoring.md)
and the relevant actual C# sample before implementing. Compose operations only
as requested, then validate the completed file. For Word plus PDF, render that
DOCX rather than independently redesigning its companion.
## References by responsibility
Each format uses `references/common/`, `domains/`, `operations/` and
`implementation/`. Select only applicable guides; do not load the whole library.
For long guides, use their headings/contents or search for the needed element or
symptom. The operation owns the workflow, profiles own named requirements, and
implementation guides own SDK/package details. Executable and asset paths stay
under `scripts/` and `assets/`.
| Need | Direct reference |
|---|---|
| Fonts, sizes, page/table design | [Presentation](references/common/presentation.md) |
| CJK fonts, 字号, RunFonts and scoped GB/T layout | [CJK typography](references/common/cjk-typography.md) |
| Hierarchy, spacing, contrast and alignment | [Design principles](references/common/design-principles.md) |
| Visual mistakes and corrections | [Design examples](references/common/design-examples.md) |
| C# project scaffold, sample index and corruption-prevention rules | [Authoring](references/implementation/authoring.md) |
| Element ordering | [Element order](references/implementation/element-order.md) |
| DXA, EMU and half-point conversion | [Units](references/implementation/units.md) |
| XML namespace details | [Namespaces](references/implementation/namespaces.md) |
| Document creation, styles, runs and paragraphs | [OpenXML part 1](references/implementation/openxml-part-1.md) |
| Pages, tables, headers/footers and sections | [OpenXML part 2](references/implementation/openxml-part-2.md) |
| TOC, fields, revisions, comments, images, math and numbering | [OpenXML part 3](references/implementation/openxml-part-3.md) |
| Numeric thesis style IDs, zones and template preservation | [University templates](references/implementation/university-template.md) |
| Revision markup | [Track changes](references/implementation/track-changes.md) |
| Comment package parts | [Comments](references/implementation/comments.md) |
| Package/business/subset validation boundaries | [Validation details](references/implementation/validation.md) |
| Visible symptoms and targeted fixes | [Troubleshooting](references/implementation/troubleshooting.md) |
Files in this package (87)
- .gitignore 1 KB
- LICENSE 1 KB
- SKILL.md 7 KB
- UPSTREAM.md 2 KB
- assets/styles/academic_styles.xml 7 KB
- assets/styles/corporate_styles.xml 8 KB
- assets/styles/default_styles.xml 12 KB
- assets/xsd/aesthetic-rules.xsd 25 KB
- assets/xsd/business-rules.xsd 5 KB
- assets/xsd/common-types.xsd 5 KB
- assets/xsd/relationships.xsd 1 KB
- assets/xsd/wml-subset.xsd 25 KB
- assets/xsd/xml-attributes.xsd 1 KB
- references/common/cjk-typography.md 12 KB
- references/common/design-examples.md 31 KB
- references/common/design-principles.md 27 KB
- references/common/presentation.md 10 KB
- references/domains/academic.md 3 KB
- references/domains/business-editorial.md 2 KB
- references/domains/government.md 2 KB
- references/domains/thesis-template.md 2 KB
- references/implementation/authoring.md 7 KB
- references/implementation/comments.md 7 KB
- references/implementation/element-order.md 11 KB
- references/implementation/namespaces.md 5 KB
- references/implementation/openxml-part-1.md 137 KB
- references/implementation/openxml-part-2.md 92 KB
- references/implementation/openxml-part-3.md 119 KB
- references/implementation/track-changes.md 6 KB
- references/implementation/troubleshooting.md 20 KB
- references/implementation/units.md 2 KB
- references/implementation/university-template.md 8 KB
- references/implementation/validation.md 2 KB
- references/operations/create.md 9 KB
- references/operations/edit.md 8 KB
- references/operations/template.md 17 KB
- references/operations/validate.md 2 KB
- scripts/doc_to_docx.sh 1 KB
- scripts/docx.sh 1 KB
- scripts/docx_preview.sh 1 KB
- scripts/env_check.sh 7 KB
- scripts/render_docx.py 4 KB
- scripts/setup.ps1 10 KB
- scripts/setup.sh 16 KB
- scripts/dotnet/Docx.slnx 1 KB
- scripts/dotnet/Docx.Cli/Docx.Cli.csproj 1 KB
- scripts/dotnet/Docx.Cli/Program.cs 1 KB
- scripts/dotnet/Docx.Core/Docx.Core.csproj 1 KB
- scripts/dotnet/Docx.Core/Commands/AnalyzeCommand.cs 6 KB
- scripts/dotnet/Docx.Core/Commands/ApplyTemplateCommand.cs 13 KB
- scripts/dotnet/Docx.Core/Commands/CreateCommand.cs 14 KB
- scripts/dotnet/Docx.Core/Commands/DiffCommand.cs 6 KB
- scripts/dotnet/Docx.Core/Commands/EditContentCommand.cs 19 KB
- scripts/dotnet/Docx.Core/Commands/FixOrderCommand.cs 4 KB
- scripts/dotnet/Docx.Core/Commands/MergeRunsCommand.cs 5 KB
- scripts/dotnet/Docx.Core/Commands/ValidateCommand.cs 4 KB
- scripts/dotnet/Docx.Core/OpenXml/CommentSynchronizer.cs 6 KB
- scripts/dotnet/Docx.Core/OpenXml/ElementOrder.cs 4 KB
- scripts/dotnet/Docx.Core/OpenXml/NamespaceConstants.cs 3 KB
- scripts/dotnet/Docx.Core/OpenXml/RunMerger.cs 3 KB
- scripts/dotnet/Docx.Core/OpenXml/StyleAnalyzer.cs 3 KB
- scripts/dotnet/Docx.Core/OpenXml/TrackChangesHelper.cs 3 KB
- scripts/dotnet/Docx.Core/OpenXml/UnitConverter.cs 1 KB
- scripts/dotnet/Docx.Core/Samples/AestheticRecipeSamples.cs 76 KB
- scripts/dotnet/Docx.Core/Samples/AestheticRecipeSamples_Batch1.cs 38 KB
- scripts/dotnet/Docx.Core/Samples/AestheticRecipeSamples_Batch2.cs 42 KB
- scripts/dotnet/Docx.Core/Samples/AestheticRecipeSamples_Batch3.cs 44 KB
- scripts/dotnet/Docx.Core/Samples/AestheticRecipeSamples_Batch4.cs 47 KB
- scripts/dotnet/Docx.Core/Samples/CharacterFormattingSamples.cs 46 KB
- scripts/dotnet/Docx.Core/Samples/DocumentCreationSamples.cs 52 KB
- scripts/dotnet/Docx.Core/Samples/FieldAndTocSamples.cs 26 KB
- scripts/dotnet/Docx.Core/Samples/FootnoteAndCommentSamples.cs 30 KB
- scripts/dotnet/Docx.Core/Samples/HeaderFooterSamples.cs 35 KB
- scripts/dotnet/Docx.Core/Samples/ImageSamples.cs 39 KB
- scripts/dotnet/Docx.Core/Samples/ListAndNumberingSamples.cs 34 KB
- scripts/dotnet/Docx.Core/Samples/ParagraphFormattingSamples.cs 55 KB
- scripts/dotnet/Docx.Core/Samples/StyleSystemSamples.cs 64 KB
- scripts/dotnet/Docx.Core/Samples/TableSamples.cs 51 KB
- scripts/dotnet/Docx.Core/Samples/TrackChangesSamples.cs 26 KB
- scripts/dotnet/Docx.Core/Typography/CjkHelper.cs 1 KB
- scripts/dotnet/Docx.Core/Typography/FontDefaults.cs 1 KB
- scripts/dotnet/Docx.Core/Typography/PageSizes.cs 1 KB
- scripts/dotnet/Docx.Core/Validation/BusinessRuleValidator.cs 9 KB
- scripts/dotnet/Docx.Core/Validation/GateCheckValidator.cs 6 KB
- scripts/dotnet/Docx.Core/Validation/PackageValidator.cs 1 KB
- scripts/dotnet/Docx.Core/Validation/ValidationResult.cs 1 KB
- scripts/dotnet/Docx.Core/Validation/XsdValidator.cs 3 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · okou-ai/okou-skills | 100 | MIT |
| rongxinzy/rongxinai | 100 | AGPL-3.0 |
| mateaix/mateclaw | 100 | Apache-2.0 |
| neromtoobad/creator-skills | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| openbmb/pilotdeck | 100 | AGPL-3.0 |
| wrongstack/wrongstack | 100 | MIT |
| asgeirtj/system_prompts_leaks | 100 | CC0-1.0 |
| asgeirtj/system_prompts_leaks | 100 | CC0-1.0 |
Database snapshot: 13.11.2026 · package version 929d13b242d0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 5 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100minimax-docx
Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET). Three pipelines: (A) create new documents from scratch, (B) fill/edit content in existing documents, (C) apply template formatting with XSD validation gate-check. MUST use this skill whenever… - 95minimax-docx
Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET). Three pipelines: (A) create new documents from scratch, (B) fill/edit content in existing documents, (C) apply template formatting with XSD validation gate-check. MUST use this skill whenever… - 100word-read-write
Create and read Microsoft Word (.docx) documents. Use this skill when you need to generate reports/letters/templates as .docx or extract readable text from existing .docx files. - 100documents
Create, read, edit, review, comment on, sanitize, render, and validate Microsoft Word DOCX documents. Use whenever a DOCX or Word document is a primary input or deliverable, including reports, proposals, forms, templates, tracked revisions, comments, tables, images, headers,… - 100docx-official
Generating Word documents programmatically with docx library in Node.js. Use when generating .docx reports, contracts, invoices, or any structured Word document from data. - 95word-studio
Professional Word document generator. Use when user needs to create reports, papers, contracts, resumes, or any professional document. Supports docx/doc formats, charts, images, tables, TOC, and multi-language. Generates publication-ready documents. Word文档生成、专业报告、论文模板、合同制作。