drpedapati/sciclaw/docx-review
Claude Code and agent skill by drpedapati/sciclaw
- community
Checking that the SKILL.md file is still in the repository.
Read, edit, and diff Word documents (.docx) with tracked changes and comments using the docx-review CLI — a .NET 8 tool built on Microsoft's Open XML SDK. Ships as a single 12MB native binary (no runtime). Use when: (1) Adding tracked changes (replace, delete, insert) to a .docx, (2) Adding anchored comments to a .docx, (3) Reading/extracting text, tracked changes, comments, and metadata from a .docx, (4) Diffing two .docx files semantically, (5) Responding to peer reviewer comments with tracked revisions, (6) Proofreading or revising manuscripts with reviewable output, (7) Any task requiring valid tracked-change .docx output with proper w:del/w:ins markup that renders natively in Word.
Install
npx vskill@latest install drpedapati/sciclaw/docx-reviewSKILL.md
docx-review
CLI tool for Word document review: tracked changes, comments, read, diff, and git integration. Built on Microsoft's Open XML SDK — 100% compatible tracked changes and comments.
sciClaw-first rule
When operating inside sciClaw, prefer the typed tools for the common flows:
docx_review_readfor--read --jsondocx_review_difffor--diff --jsondocx_review_applyfor manifest validation/apply flows
Use raw docx-review CLI only as fallback or for advanced modes the typed tools do not cover yet, such as --textconv, --git-setup, --create, --template, or unusual flag combinations.
Install
Binary: /opt/homebrew/bin/docx-review (12MB, self-contained, no runtime)
Verify: docx-review --version
Workflow Choice (Critical)
Creating a NEW manuscript/docx with clean output
Use pandoc from Markdown, not docx-review edit manifests:
sciClaw auto-applies its bundled NIH reference template for DOCX output unless --reference-doc is provided.
Editing an EXISTING document with visible review markup
Use docx-review when tracked changes/comments are explicitly desired:
Inside sciClaw, the preferred mapping is:
docx_review_readbefore planning editsdocx_review_applyfor--dry-run --jsonand the final apply stepdocx_review_difffor verification/comparison
Anti-pattern to avoid
Do not use docx-review placeholder replacement manifests to create first-draft manuscripts. That workflow intentionally produces tracked changes and can make a fresh document appear as a markup-heavy revision file.
Modes
Edit: Apply tracked changes and comments
Takes a .docx + JSON manifest, produces a reviewed .docx with proper OOXML markup.
Read: Extract document content as JSON
Returns: paragraphs (with styles), tracked changes (type/text/author/date), comments (anchor text/content/author), metadata (title/author/word count/revision), and summary statistics.
Diff: Semantic comparison of two documents
Detects: text changes (word-level), formatting (bold/italic/font/color), comment modifications, tracked change differences, metadata changes, structural additions/removals.
Git: Textconv driver for meaningful Word diffs
JSON Manifest Format
This is the edit contract. Build this JSON, pass it to docx-review.
Change types
| Type | Fields | Result in Word | |
|---|---|---|---|
replace | find, replace | Red strikethrough old + blue new text | |
delete | find | Red strikethrough | |
insert_after | anchor, text | Blue inserted text after anchor | |
insert_before | anchor, text | Blue inserted text before anchor |
Critical rules for find and anchor text
- Must be exact copy-paste from the document. The tool does ordinal string matching.
- Include enough context for uniqueness — 15+ words when the phrase is common.
- First occurrence wins. The tool replaces/anchors at the first match only.
- Use
--dry-run --jsonto validate all matches before applying.
JSON Output (--json)
Exit code 0 = all succeeded. Exit code 1 = at least one failed (partial success possible).
Workflow: AI-Assisted Document Revision
Standard pattern for using docx-review with AI-generated edits:
Step 1: Extract text
Preferred inside sciClaw: docx_review_read
Or use pandoc for markdown extraction:
Step 2: Generate the manifest
Feed the extracted text + instructions to the AI. Request output as a docx-review JSON manifest.
Use this system context when prompting for manifest generation:
Step 3: Validate with dry run
Preferred inside sciClaw: docx_review_apply in validation/dry-run mode
Check for failures. If any edits fail ("success": false), fix the manifest (usually the find/anchor text doesn't match exactly) and retry.
Step 4: Apply
Preferred inside sciClaw: docx_review_apply
Step 5: Verify (optional)
Preferred inside sciClaw: docx_review_read and docx_review_diff
Workflow: Peer Review Response
For addressing reviewer comments on a manuscript:
- Extract manuscript text (
--read --jsonor pandoc) - Build manifest addressing each reviewer point — use
replacefor text changes,commentsto explain changes to the author - Dry-run validate
- Apply edits
- The output
.docxhas tracked changes the author can review in Word
Workflow: Proofreading
- Extract text
- Generate manifest with grammar/style fixes as
replacechanges and suggestions ascomments - Validate + apply
- Author opens in Word, accepts/rejects each change individually
Workflow: Template Population with Explicit Revision Trail (Advanced)
Only use this workflow when the user explicitly wants visible tracked changes during template population (for audit/review history):
- Start from a template-backed
.docx - Read it with
--read --jsonto identify exact placeholders - Build a manifest that replaces placeholders with real content
- Apply with
docx-review(tracked insertions/deletions are expected) - Review and accept/reject changes in Word
For normal first-draft generation, use pandoc manuscript.md -o manuscript.docx instead.
Key behaviors
- Comments applied first, then tracked changes. Ensures anchors resolve before XML is modified.
- Formatting preserved. RunProperties cloned from source runs onto both deleted and inserted text.
- Multi-run text matching. Text spanning multiple XML
<w:r>elements (common in previously edited documents) is found and handled correctly. - Everything untouched is preserved. Images, charts, bibliographies, footnotes, cross-references, styles, headers/footers survive intact.
Read mode output structure
For programmatic processing of --read --json output, see skill/references/read-schema.md.
Companion tools
The Open XML SDK ecosystem:
| Tool | Install | Purpose | |
|---|---|---|---|
pptx-review | brew install drpedapati/tools/pptx-review | PowerPoint read/edit | |
xlsx-review | brew install drpedapati/tools/xlsx-review | Excel read/edit |
Same architecture: .NET 8, Open XML SDK, single binary, JSON in/out.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docx-review/SKILL.md
Popularity
- Repository stars
- 87
- Repository forks
- 16
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drpedapati/sciclaw/docx-review)