Word Document Generation and Editing
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_fccf428b/docx-manipulation.
About this skill
What it solves
When converting Markdown, table data, or contract clauses into .docx, manually adjusting headings, styles, headers, and footers is error-prone. This skill narrows Word manipulation to a python-docx workflow: describe the target structure, then generate or edit the document for reports, business letters, placeholder contracts, and tabular documents.
How it works
- Structured generation: organize paragraphs by heading hierarchy, set character styles, page setup, and document styles instead of tuning each paragraph manually.
- Content writing: insert text, data tables, and images, plus layout elements such as headers and footers.
- Template editing: replace placeholders, add sections, or adjust formatting in existing Word files, similar to a
mail mergefilling workflow. - Code-first approach: translate requirements into
python-docxoperations that can be reviewed, rerun, and integrated into scripts.
Boundaries
Complex Word templates may lose some formatting; macros, VBA, SmartArt, charts, and direct PDF conversion are not supported; reading tracked changes is limited. If the task involves sending, publishing, deletion, payment, or external writes, confirm the target and impact first.
Use Cases
- Convert a Markdown weekly report into a .docx with headings and tables for peer review.
- Generate a quotation from a product parameter table with headings, a table, and header/footer.
- Replace client, amount, and term placeholders in a contract template to produce several documents.
- Append sections to an existing Word report and adjust heading hierarchy and character styles.
Best For
- Engineers writing technical weekly reports who need Markdown converted into formatted Word documents.
- Business staff handling contracts or quotations who need to batch-replace placeholders in templates.
- Operations staff maintaining product guides who need data tables inserted with headers and footers.
- Documentation engineers maintaining report templates who need to adjust headings, styles, and sections.
Related Skills
Turns files, references, or chat context into styled single-page HTML reports with built-in templates and preset themes.
An engineering-oriented email automation solution for batch sending, Jinja2 templates, attachments, scheduled sending, inbox monitoring, and rule-based auto-reply.
An engineering workflow for creating, editing, reviewing, analyzing, and image-converting .docx files using pandoc, docx-js, OOXML, and LibreOffice.
Pre-submission scanner for Word/PDF blind-bid files that checks margins, fonts, page numbers, and metadata against tender requirements and flags residual bidder identities.