docx
Skill by pipeshub-ai
Creates, edits and reads Word (.docx) files for AI assistants. New documents are built with docx-js in TypeScript, and existing files are edited through the office-utils workflow.
Install docx
Built from the published package, never by AI.
git clone --depth 1 https://github.com/pipeshub-ai/pipeshub-ai /tmp/pipeshub-ai && mkdir -p ~/.claude/skills && cp -r /tmp/pipeshub-ai/backend/python/app/agents/agent_loop/skills/builtin_packs/docx ~/.claude/skills/docxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/pipeshub-ai/pipeshub-ai /tmp/pipeshub-ai && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pipeshub-ai/backend/python/app/agents/agent_loop/skills/builtin_packs/docx ~/.gemini/antigravity-cli/skills/docxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The docx skill tells an AI assistant how to create, edit and read Word (.docx) files. New documents are built as TypeScript programs with the docx-js library, not python-docx, which is kept for reading existing files. Edits to an existing file follow an unpack, edit XML and repack cycle from the office-utils skill, which helps keep original formatting. Reading uses python-docx or docx2python.
It covers page layout, headings, tables, numbered and bulleted lists, page breaks and a table of contents. The skill is aimed at users who ask for a Word document, or a report, memo, letter or proposal delivered as .docx. It does not cover .docx to PDF or .doc to .docx conversion, which need LibreOffice and are not installed in the sandbox yet.
Written from the project's SKILL.md and checked against it.
What it can do
- Create new documentsBuilds .docx files from scratch with docx-js in TypeScript.
- Edit existing documentsChanges paragraphs or tables through the office-utils unpack, edit and pack cycle.
- Read documentsExtracts text and structure from .docx files using python-docx or docx2python.
- Page layoutSets page size and margins explicitly, in DXA units.
- TablesUses explicit DXA column widths for predictable rendering across viewers.
- ListsCreates numbered and bulleted lists through a LevelFormat numbering config.
- Table of contentsAdds a table of contents built from heading-styled paragraphs.
What you need
- office-utils skill, a required dependency
- TypeScript program run with the docx npm package
- python-docx or docx2python for reading, preinstalled in the sandbox
Try asking
- Create a Word report on Q3 results with headings and a table of contents.
- Edit the second paragraph of this .docx file and keep the original styles.
- Summarize the contents of this Word document I uploaded.
Good to know
- .doc to .docx conversion and .docx to PDF rendering are not supported in this environment.
- Table of contents page numbers must be refreshed with Update Field in Word.
- Regenerating a whole document with docx-js can lose formatting from the original, so small edits use XML editing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: backend/python/app/agents/agent_loop/skills/builtin_packs/docx/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to docx
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
docx: common questions
Can this skill convert a Word file to PDF?
No. The source says .docx to PDF rendering and .doc to .docx conversion need LibreOffice, which is not installed in the sandbox yet.
Why does the skill use docx-js instead of python-docx to create files?
The source says new documents must be created with docx-js in TypeScript. python-docx is in the environment for reading existing documents only.
Why does a table of contents show no page numbers after creation?
docx-js writes the table of contents field code but cannot compute page numbers without a layout engine. The user must right-click the table and choose Update Field.
How do I install docx?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is docx free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is docx safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to docx?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
