Skip to content

Commit db2b9d6

Browse files
committed
docs: explain skill extends original Anthropic docx skill
1 parent 159757f commit db2b9d6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ with Document.open("contract.docx") as doc:
4848
doc.save()
4949
```
5050

51+
## Claude Code Skill
52+
53+
This repo includes a skill for [Claude Code](https://claude.ai/claude-code) that enables AI-assisted Word document editing.
54+
55+
This skill extends the [original Anthropic docx skill](https://github.com/anthropics/claude-code/tree/main/.claude/skills/docx) which requires Claude to manually manipulate OOXML. Instead, this skill provides an interface (`docx-editor`) that handles all the complexity—Claude just calls simple Python methods like `doc.replace()` or `doc.add_comment()`, making document editing significantly faster and less error-prone.
56+
57+
### Install the skill
58+
59+
```bash
60+
# Install dependencies
61+
pip install docx-editor python-docx
62+
63+
# Copy skill to Claude Code skills directory
64+
git clone https://github.com/pablospe/docx-editor /tmp/docx-editor
65+
mkdir -p ~/.claude/skills
66+
cp -r /tmp/docx-editor/skills/docx ~/.claude/skills/
67+
rm -rf /tmp/docx-editor
68+
```
69+
70+
Once installed, Claude Code can help you edit Word documents with track changes, comments, and revisions.
71+
5172
---
5273

5374
Repository initiated with [fpgmaas/cookiecutter-uv](https://github.com/fpgmaas/cookiecutter-uv).

0 commit comments

Comments
 (0)