openai-doc — Claude Code plugin: read and edit .docx
openai-doc gives Claude a working procedure for .docx files: text and layout go through python-docx, then a bundled render script shows what the page actually looks like.
Apache-2.0 ★ 540 updated 2026-07-14
/plugin marketplace add trailofbits/skills-curated
/plugin install openai-doc@skills-curatedWhat openai-doc does
This plugin hands Claude a step-by-step routine for .docx work where formatting has to survive. The skill file covers when it should take over, the order of operations, where scratch files and finished output belong, which packages to add when they are absent, the render commands, and the last check before the file goes back to you.
Edits run through python-docx. A bundled scripts/render_docx.py then produces a view of the page, which is the only way the agent gets to see spacing and page breaks rather than guess at them. Layout bugs that survive code review usually show up on the rendered page first.
Missing dependencies are installed as part of the flow, and the environment notes sit in the same skill file. It started as a skill in OpenAI's curated catalog and was repackaged for the Trail of Bits marketplace under Apache-2.0.
What it helps with
- pull text and formatting out of a .docx written by someone else
- build a document from a template without shifting the margins
- repair styles and page breaks in an existing file
- render a draft and catch broken layout before it ships
Example prompts for the agent
- Open
report.docxand rewrite the budget table with the new numbers - Build
offer.docxfrom our template and make sure no heading jumps to the next page - Render
contract.docxwithscripts/render_docx.pyand show me where the layout breaks
How to install openai-doc
Plugin marketplace
/plugin marketplace add trailofbits/skills-curated/plugin install openai-doc@skills-curatedStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about openai-doc
How do I install Anthropic-doc in Claude Code?
Add the marketplace first: /plugin marketplace add trailofbits/skills-curated. Then install the plugin itself: /plugin install openai-doc@skills-curated.
What does openai-doc do?
It walks the agent through reading, creating and editing .docx files with python-docx, and through checking the result with a render step.
What does the plugin need to work?
python-docx and the bundled scripts/render_docx.py. Anything missing from the environment gets installed before the document work starts.
Source text
openai-doc · Apache-2.0
# Doc Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks. ## Installation ``` /plugin install trailofbits/skills-curated/plugins/openai-doc ``` ## What It Covers - When to use - Workflow - Temp and output conventions - Dependencies (install if missing) - Environment - Rendering commands - Quality expectations - Final checks ## Credits Originally from [OpenAI's curated skills catalog](https://github.com/openai/skills/tree/main/skills/.curated/doc). Converted to Claude Code plugin format for the Trail of Bits curated skills marketplace.
© OpenAI · Apache-2.0 · trailofbits/skills-curated