# Create and Review Word Documents

Manual DOCX editing is slow and can break OOXML structure. This skill guides creation, extraction, tracked changes, comments, and validation for Word documents.

## Install

```bash
npx skillstore add k-dense-ai/docx
```

## Metadata

- Status: approved
- Slug: k-dense-ai-docx
- Skillstore revision: r1
- Version status: missing
- Tree hash: fc0186f3c2f9c7b8940d1f6b9f1240082bb6cc4ed8d22db0f3010dcfc17980b4
- Author: K-Dense-AI
- GitHub username: K-Dense-AI
- License: Proprietary. LICENSE.txt has complete terms
- Repository: https://github.com/K-Dense-AI/claude-scientific-skills/tree/main/scientific-skills/document-skills/docx
- Ref: 3e4b6c31a74a3bd1a291c98cf585d720cb9fbc88
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: network, filesystem, external\_commands
- Quality score: 75
- Public page: https://skillstore.pages.dev/skills/k-dense-ai-docx
- Manifest: https://skillstore.pages.dev/api/skills/k-dense-ai-docx/manifest

## Capabilities

- Create new DOCX files with the docx-js workflow.
- Unpack DOCX files and inspect WordprocessingML package files.
- Edit document text, relationships, comments, and tracked changes.
- Convert DOCX content to Markdown for review workflows.
- Convert documents to PDF or page images for visual checks.
- Validate OOXML structure and tracked-change behavior after edits.

## Use Cases

- Prepare Technical Reports: Create structured Word reports with headings, lists, tables, and embedded images.
- Review Contracts With Changes: Apply precise edits with tracked insertions, deletions, comments, and validation steps.
- Automate Document Processing: Extract text, inspect XML, modify repeated content, and repack documents programmatically.

## Prompt Templates

### Create a Basic Document

```
Create a DOCX named project-brief.docx with a title, three section headings, and short placeholder paragraphs.
```

### Extract Review Text

```
Extract the text from proposal.docx into Markdown and preserve tracked changes for review.
```

### Apply Tracked Edits

```
Edit agreement.docx with tracked changes. Replace the notice period from 30 days to 60 days and add one reviewer comment.
```

### Validate Complex OOXML

```
Inspect contract.docx at the OOXML level, fix broken comment relationships, repack the file, and validate the result.
```

## Limitations

- Several workflows require external tools such as pandoc, LibreOffice, Poppler, or npm packages.
- Password-protected or encrypted Word documents are not supported by the documented workflows.
- Complex layout changes may require direct OOXML inspection and careful validation.
- Untrusted Office archives require safe extraction controls before use.

## Best Practices

- Use tracked changes when editing documents that other people own or review.
- Validate the document after XML edits and before sharing the final DOCX file.
- Keep a backup of the original document before unpacking or repacking it.

## Anti Patterns

- Do not edit raw OOXML without checking namespaces, relationships, and content types.
- Do not run privileged dependency installation commands without explicit user approval.
- Do not extract untrusted Office archives without validating every archive member path.

## Security Audit

- Audited at: 2026-07-21T08:03:12.387\+00:00
- Summary: The review confirmed four unsafe ZIP extraction calls that can permit Zip Slip when processing a crafted Office archive. The remaining static matches are false positives from OOXML namespaces, templates, documentation, or local document-processing operations; no prompt injection, credential theft, or network exfiltration was found. Static review was capped at 400/460 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.

## Stats

- Views: 297
- Downloads: 24
- Favorites: 1
- Popularity score: 0
