bisheng-docx
Skill by dataelement
Creates and edits Word (.docx) files with python-docx, covering formal documents, tables, headings, tables of contents and page numbers. Built for users who need official layouts or to follow a template.
Install bisheng-docx
Built from the published package, never by AI.
git clone --depth 1 https://github.com/dataelement/bisheng /tmp/bisheng && mkdir -p ~/.claude/skills && cp -r /tmp/bisheng/src/backend/bisheng/linsight/builtin_skills/bisheng-docx ~/.claude/skills/bisheng-docxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/dataelement/bisheng /tmp/bisheng && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/bisheng/src/backend/bisheng/linsight/builtin_skills/bisheng-docx ~/.gemini/antigravity-cli/skills/bisheng-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
bisheng-docx is an agent skill for making and changing Word (.docx) files. It covers formal documents such as work reports, plans, meeting minutes, official notices, contract drafts and resumes. The source says it builds files with python-docx, since that is the only usable path in the code executor, and it sets Chinese fonts through the eastAsia attribute. The default layout follows GB/T 9704-2012 for official documents, and a second profile suits non-official documents such as resumes.
The skill can also read uploaded .docx files and build a document that follows a user's template or sample. It includes an inspection script that reports page setup, styles and tables, and a reference for table of contents and page number code. It is aimed at users who need headings, tables of contents, page numbers or fixed layouts. The source says plain Markdown, Excel and PowerPoint requests should not use it.
Written from the project's SKILL.md and checked against it.
What it can do
- Formal document writingDrafts reports, plans, minutes, notices, official documents, contract drafts and resumes.
- Headings, TOC and page numbersBuilds heading levels, a table of contents and page number footers using add_toc and add_page_number_footer.
- Tables and figuresCreates tables with set column widths and repeated headers, and places images with captions.
- Edit uploaded .docxReads an uploaded Word file with inspect_docx.py and edits runs without rebuilding the whole document.
- Template matchingBuilds a document that follows a user's template or sample, with the template layout taking priority.
- GB/T 9704-2012 layoutDefault official document profile with set fonts, sizes and line spacing for headings and body text.
- Modern layout profileA second profile for non-official documents such as resumes and proposals, set with profile="modern".
- Chinese font handlingSets the eastAsia font attribute so Chinese font names take effect in Word.
- Pre-delivery checkRuns inspect_docx.py to report page setup, styles and table issues before delivery.
What you need
- Code executor (bisheng_code_interpreter) enabled in the tool settings
- Python runtime with python-docx available
Try asking
- Write a work report in Word with a table of contents and page numbers.
- Reformat this uploaded .docx to match my company template.
- Draft an official notice in Word using the GB/T 9704-2012 layout.
Good to know
- Requires the code executor to be enabled, otherwise no .docx can be generated.
- Not for Excel, PowerPoint or plain Markdown output.
- In the E2B sandbox, bundled scripts under skills/ may not be visible.
- LibreOffice (soffice) is optional and only needed for rendering previews.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/backend/bisheng/linsight/builtin_skills/bisheng-docx/SKILL.md, src/backend/bisheng/linsight/builtin_skills/bisheng-docx/scripts/docx_helpers.py, src/backend/bisheng/linsight/builtin_skills/bisheng-docx/scripts/inspect_docx.py, src/backend/bisheng/linsight/builtin_skills/bisheng-docx/scripts/render_docx.py, src/backend/bisheng/linsight/builtin_skills/bisheng-docx/scripts/style_profiles.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md24 KB -
references/design-zh.md4 KB -
references/gongwen-gbt9704.md5 KB -
references/python-docx-cookbook.md8 KB -
scripts/docx_helpers.py27 KB
Show all 8 files
-
scripts/inspect_docx.py37 KB -
scripts/render_docx.py6 KB -
scripts/style_profiles.py7 KB
Alternatives to bisheng-docx
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
bisheng-docx: common questions
Does this skill need Node.js or docx-js?
No. The source says the code executor has python-docx only, and Node, npm and docx-js are not available there.
When should I use export_docx instead?
The source says to use export_docx when the user only wants an existing answer saved as Word, without a table of contents, page numbers or specific table layout.
Why does it set the eastAsia font attribute?
The source says setting run.font.name only affects Western text, so Chinese text needs w:eastAsia to display the chosen font.
How do I install bisheng-docx?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is bisheng-docx free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is bisheng-docx safe to use?
It scores 89 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 bisheng-docx?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
