documents
Skill by AstrBotDevs
The documents skill helps an AI assistant create, read, edit, review, comment on, sanitize, render and validate Microsoft Word DOCX files. It is for people who work with Word reports, proposals, forms and templates.
Install documents
Built from the published package, never by AI.
git clone --depth 1 https://github.com/AstrBotDevs/AstrBot /tmp/AstrBot && mkdir -p ~/.claude/skills && cp -r /tmp/AstrBot/astrbot/builtin_stars/astrbot/skills/documents ~/.claude/skills/documentsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/AstrBotDevs/AstrBot /tmp/AstrBot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AstrBot/astrbot/builtin_stars/astrbot/skills/documents ~/.gemini/antigravity-cli/skills/documentsAntigravity 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 documents skill helps an AI assistant create, read, edit, review, comment on, sanitize, render and validate Microsoft Word DOCX files. It uses python-docx for ordinary work and direct OOXML patches for features python-docx cannot represent safely. Edits keep the source document unless the user asks for an in-place change.
The skill includes bundled scripts to inspect a DOCX, scrub metadata on request, validate the OOXML package, and render pages when LibreOffice and a PDF renderer are available. It covers Word styles, lists, tables, fonts and Chinese text, comments, tracked changes and fields. It is aimed at people working with reports, proposals, forms, templates and tracked revisions in Word.
Written from the project's SKILL.md and checked against it.
What it can do
- Inspect DOCX structureRuns a bundled inspector to read text, styles, tables, comments, fields and tracked changes before edits.
- Create and edit documentsUses python-docx with real Word styles, list definitions and tables, keeping the source design for edits.
- Preserve advanced featuresUses targeted OOXML patches for tracked revisions, fields, content controls and document relationships.
- Handle fonts and Chinese textSets Word font mappings for eastAsia and checks that chosen fonts exist in the render environment.
- Add review commentsPlaces comments at the relevant text rather than collecting all notes at the end of the document.
- Scrub metadataRuns a bundled scrubber to remove document metadata when the user requests it.
- Validate OOXML packageRuns a bundled validator after every create or edit operation to check package structure.
- Render pagesRenders the document with LibreOffice and a PDF renderer so each page can be inspected.
What you need
- Python
- python-docx
- LibreOffice and a PDF renderer for visual rendering
Try asking
- Edit this Word report and keep its existing styles and headings.
- Scrub the author and metadata from this DOCX before I send it.
- Add review comments to contract.docx at the relevant clauses.
Good to know
- Tracked changes are not a safe first-class editing surface and need targeted OOXML patches.
- Editing a digitally signed document invalidates its signature.
- Metadata scrubbing is not content redaction.
- Without a renderer, visual QA is skipped and only structural validation is done.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: astrbot/builtin_stars/astrbot/skills/documents/SKILL.md, astrbot/builtin_stars/astrbot/skills/documents/scripts/docx_table_to_csv.py, astrbot/builtin_stars/astrbot/skills/documents/scripts/inspect_docx.py, astrbot/builtin_stars/astrbot/skills/documents/scripts/privacy_scrub.py, astrbot/builtin_stars/astrbot/skills/documents/scripts/render_docx.py, astrbot/builtin_stars/astrbot/skills/documents/scripts/validate_docx.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/advanced-ooxml.md3 KB -
references/styling.md3 KB -
scripts/docx_table_to_csv.py2 KB -
scripts/inspect_docx.py6 KB
Show all 8 files
-
scripts/privacy_scrub.py5 KB -
scripts/render_docx.py6 KB -
scripts/validate_docx.py6 KB
Alternatives to documents
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
documents: common questions
Can this remove sensitive content from a Word file?
No. The source says metadata scrubbing is not content redaction, so visible text, headers, comments, fields and embedded objects must be searched separately.
Does it handle macros in Word files?
Macros are preserved only when working with a macro-enabled format. The source says not to rename DOCM to DOCX or claim macros are safe.
Are comments and tracked changes checked after editing?
Structural validation covers them, but the source says rendering is not sufficient proof for comments, field instructions, content controls or tracked-change structure.
How do I install documents?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is documents free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is documents safe to use?
It scores 90 of 100. Grades: maintenance A, licence C, 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 documents?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
