docx
Skill1 starsChanged 2 months agoMITView on GitHub
Comprehensive Word document (.docx/.dotx) engine for creating, editing, styling, and reviewing documents. Covers: (1) On-brand corporate document generation and template extraction via the Brand Engine (extract, comprehend, verify, generate from .dotx/.docx templates and IntermediateDocuments), (2) Layout, margins, typography, and visual image blur/DPI linting via audit_layout.py (Indonesian Skripsi 4-4-3-3 cm, JIKI SINTA 2 2-column, APA 7th, or auto-extracted template profiles), (3) Academic papers with LaTeX math equations and Zotero/BibTeX citations via Pandoc, (4) Editorial document generation from scratch via docx-js, (5) Data science tabular injection via python-docx, (6) Legal redlining with Tracked Changes and native comments via OpenXML surgery, (7) Live Zotero CSL field code inspection and injection, and (8) Automated citation verification against CrossRef, arXiv, and PubMed. Trigger on any mention of Word documents, reports, proposals, memos, templates, thesis/skripsi formatting, brand kits, matching templates, or DOCX manipulation.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- instrument-org/skillstheir own version, first seen Oct 6, 2026
- invergent-ai/surogatestheir own version, first seen Oct 5, 2026
- magicpro97/vibeflowtheir own version, first seen Oct 4, 2026
- holon-run/holontheir own version, first seen Oct 4, 2026
- mperaltajr/skillstheir own version, first seen Oct 3, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
Used with
Projects with it also use context7-efficient, file-reading and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hfzarslanSkillcontext7-efficient
Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.
Also in 5 projects that use this
SeifBenayedSkillfile-reading
Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.
Also in 6 projects that use this
SeifBenayedSkillpdf-reading
Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.
Also in 6 projects that use this
jjyaoaoSkillgift-evaluator
The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.
Also in 4 projects that use this
jjyaoaoSkillPodcast Generate
Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).
Also in 4 projects that use this
unicorn-pluginsSkillproduct-self-knowledge
Anthropic 제품 지식 — Claude Code, Claude API, Claude.ai 관련 정확한 정보 제공
Also in 7 projects that use this
- +2 more from jjyaoao
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- anthropics/skills★ 199ksame name
- jjyaoao/HelloAgents★ 3.2ksame name
- anthropics/claude-agent-sdk-demos★ 2.8ksame name
- K-Dense-AI/claude-scientific-writer★ 2.4ksame name
- OpenCoworkAI/open-cowork★ 2.2ksame name
- melandlabs/openloomi★ 1ksame name
- freestylefly/wesight★ 941same name
- LeonChaoX/qinyan-academic-skills★ 932same name
- LeastBit/Claude_skills_zh-CN★ 586same name
- tomascupr/sandstorm★ 447same name
185 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- citation-verifierSkill
- pptxSkill
- research-reviewerSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 1 is distinctive, and 10 are very specific to this project.
0
Common
Most of the 189 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Use this pathway when the user provides or references a company template (.dotx / .docx) or asks to "match our template", "use our brand …
- Very specific: line 45
Run preflight (python scripts/cli.py doctor) before extraction or generation to verify system readiness.
- Very specific: line 48
Author role-first, not style-first: Do not put font names, pt sizes, hex colors, or raw style names in an IntermediateDocument (idoc.json).
- Very specific: line 131
Never flatten Zotero citations into static text.
- Very specific: line 152
After modifying citations, the human author simply opens the document in Microsoft Word and clicks Zotero → Refresh in the Ribbon.
- Very specific: line 173
Page size: Default is A4. For US Letter: page: { size: { width: 12240, height: 15840 } } (DXA).
- Very specific: line 175
Shading: Use ShadingType.CLEAR, never SOLID.
- Very specific: line 176
Lists: Use a numbering configuration with LevelFormat.BULLET, never literal bullets.
- Very specific: line 178
Dot-leader tabs: Use PositionalTab with leader: PositionalTabLeader.DOT.
- Very specific: line 195
Comments: Use python scripts/comment.py unpacked/ "Komentar hukum..." to manage the six cross-linked XML comment files cleanly.
- Distinctive: line 201
Every output document must pass verification before returning to the user:
“Common” is measured: kept by at least 6 in 10 of the 189 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unified DOCX Creation, Editing, Brand & Analysis Suite
The definitive Microsoft Word (.docx / .dotx) engine for AI coding agents. Choose the optimal execution pathway based on user requirements:
| Task / Domain | Engine / Approach | When to Choose |
| On-Brand Corporate | scripts/brandkit/ (scripts/cli.py) | Preserving company brand profiles, official fonts, colors, and layout shells fail-closed from templates. |
| Layout & Visual Linter | scripts/audit_layout.py | Auditing margins (4-4-3-3 cm skripsi / 3-3-3-3 cm journal), fonts, line spacing, image DPI (<150 DPI), Laplacian blur, caption positions, and TOC. |
| Academic & Math | scripts/pandoc/compile_academic.py | Papers with LaTeX math formulas ($$...$$), footnotes, and linked Zotero/BibTeX bibliographies. |
| Citation Verification | scripts/citations/verify_citations.py | Auditing documents for fake/hallucinated DOIs, broken URLs, and metadata mismatches against CrossRef/arXiv/PubMed. |
| Zotero Citations | scripts/zotero/ | Inspecting, injecting, or validating live dynamic ADDIN ZOTERO_ITEM CSL_CITATION fields without unlinking. |
| Data Science Tables | scripts/data/dataframe_to_word.py | Injecting CSV, Excel, or JSON data into styled, zebra-striped Word tables with right-aligned numbers. |
| Editorial Scratch | docx-js (Node.js script) | New documents from scratch requiring bespoke visual layouts, cover pages, and automated TOCs. |
| Legal Redline | Raw OpenXML (<w:ins>, <w:del>) | Contract reviews, tracked revisions, and multi-file comments (scripts/comment.py). |
Detailed decision logic and routing criteria are in
references/router-matrix.md.
1. On-Brand Corporate Governance & Generation (Brand Engine)
Use this pathway when the user provides or references a company template (.dotx / .docx) or asks to "match our template", "use our brand kit", or generate an on-brand document from variable content.
The Seven Verbs
The engine implements three deterministic core verbs plus four model-assisted learning verbs:
| Verb | Input | Output | CLI Command |
| extract | A company .docx or .dotx template | A reusable Brand Profile (brand-kit/<name>/) | python scripts/cli.py extract --name <brand> --template <template.docx> |
| comprehend (optional) | Saved profile + model-authored comprehension.json | Profile with validated, cached comprehension block | python scripts/cli.py comprehend --name <brand> --input comprehension.json |
| verify | Saved Brand Profile | QA findings + deterministic verdict | python scripts/cli.py verify --name <brand> |
| generate | Content (IntermediateDocument) + profile | New on-brand .docx | python scripts/cli.py generate --name <brand> --input idoc.json -o out.docx |
| learn | Profile's cross-run history | Recurring findings distilled to shell-frozen overrides | python scripts/cli.py learn --name <brand> --accept |
| propose-overrides | Residual issues + proposal | Shell-backed corrections fail-closed | python scripts/cli.py propose-overrides --name <brand> --input overrides.json --accept |
| refine | User feedback delta | Comprehension overlaid for future generations | python scripts/cli.py refine --name <brand> --input refinement.json --accept |
Hard Rules for Brand Generation
scripts/cli.py(orscripts/brand_cli.py) is the launcher. It automatically resolves the engine root.- Run preflight (
python scripts/cli.py doctor) before extraction or generation to verify system readiness. - Extract opens the template read-only and saves
brand-kit/<name>/template/shell.docxbyte-for-byte. - Generate opens the saved shell and resolves every semantic block through
profile.json. - Author role-first, not style-first: Do not put font names, pt sizes, hex colors, or raw style names in an
IntermediateDocument(idoc.json). Consultbrand-kit/<name>/PROFILE.mdfor role vocabulary (heading,paragraph,list,table,caption,callout). - See
references/comprehension.md,references/profile-schema.md, andexamples/intermediate-document.example.jsonfor full schemas.
2. Comprehensive Layout, Typography & Visual Linter
Audits Word documents against publication guidelines, institutional templates, or thesis guidelines:
# 1. Audit Indonesian thesis / skripsi format (UI: 4-4-3-3 cm margins, 1.5/2.0 spacing, 300 DPI images)
python scripts/audit_layout.py manuscript.docx --profile skripsi-id
# 2. Audit academic journal format (JIKI UI / SINTA 2: 2 columns, 3-3-3-3 cm margins, single space)
python scripts/audit_layout.py manuscript.docx --profile jiki-journal
# 3. Auto-extract layout criteria directly from any reference template (.docx/.dotx)
python scripts/audit_layout.py manuscript.docx --template AuthorGuideline_JIKI.docx
# 4. Explicit CLI overrides for custom guidelines
python scripts/audit_layout.py manuscript.docx \
--margins 4.0 4.0 3.0 3.0 \
--font "Times New Roman" \
--line-spacing 1.5 \
--columns 1 \
--table-caption above \
--figure-caption below \
--require-toc \
--min-dpi 300
# 5. Export structured JSON for automated pipelines
python scripts/audit_layout.py manuscript.docx --format json -o layout_audit.jsonChecked Dimensions & Standards:
- Layout & Page Setup: Margins (Top, Bottom, Left, Right in cm), Paper Size (A4 vs Letter), Orientation, Columns (1 vs 2 columns), Section Breaks, Hyphenation.
- Typography & Font Integrity: Font family consistency, size hierarchy, accidental non-black text (#000000 check), lingering highlight markers.
- Paragraph & Line Spacing: Alignment (Justify /
both), line spacing (Single vs 1.5 vs Double), paragraph spacing before/after. - Headings & Structure: Proper
Heading 1/2/3styles vs raw unstyled bold text ("Fake Headings" that break Navigation Pane and TOC). - Captions & TOC: Table captions ABOVE table (
Tabel X.Y...), Figure captions BELOW figure (Gambar X.Y...), Table of Contents (TOC), List of Tables, List of Figures. - Math Equations: Native OMML / LaTeX (
<m:oMath>) vs formulas pasted as raster pictures or screenshots. - Image Quality & Blurriness: Effective DPI calculation (<150 DPI critical failure), Laplacian blur variance, aspect ratio distortion (squished/stretched images).
- Table Formatting: Column overflow beyond printable margin width, academic three-line tables (no vertical borders), header repeat.
- Header & Footer: Page numbering configuration.
3. Academic & LaTeX Math Pathway (Pandoc)
Converts Markdown with LaTeX math syntax ($...$ and $$...$$) directly to native Word OMML Equations and resolves citations:
# Basic compile with native Word equations
python scripts/pandoc/compile_academic.py draft.md -o paper.docx
# Academic compile with Zotero/BibTeX citations and journal CSL style
python scripts/pandoc/compile_academic.py draft.md -o paper.docx \
--bibliography references.bib \
--csl ieee.csl \
--reference-doc template.docx4. Citation & Reference Verification (Anti-Hallucination)
Detects fake, broken, or mismatched citations in Word documents, BibTeX files, and Markdown drafts against CrossRef, arXiv, PubMed, and Open Library:
# 1. Audit a Word document (checks Zotero CSL XML and body references)
python scripts/citations/verify_citations.py manuscript.docx
# 2. Generate a clean Markdown audit report for peer review
python scripts/citations/verify_citations.py draft.md --format markdown -o audit_report.md
# 3. Export machine-readable JSON for CI/CD checks
python scripts/citations/verify_citations.py references.bib --format json -o audit.json5. Dynamic Zotero CSL Field Code Management
Never flatten Zotero citations into static text. Manage dynamic OpenXML field codes (ADDIN ZOTERO_ITEM CSL_CITATION) directly:
# 1. Inspect existing citations in a document
python scripts/zotero/inspect_zotero.py manuscript.docx
# 2. Inject a new Zotero CSL citation with metadata
python scripts/zotero/inject_zotero.py manuscript.docx \
--after "MobileNetV3" \
--citation-text "[39]" \
--title "Searching for MobileNetV3" \
--authors "Howard, Andrew; Sandler, Mark" \
--year 2019 \
--venue "ICCV" \
--doi "10.1109/ICCV.2019.00140" \
-o updated_manuscript.docx
# 3. Validate XML integrity
python scripts/zotero/validate_zotero.py updated_manuscript.docxAfter modifying citations, the human author simply opens the document in Microsoft Word and clicks Zotero → Refresh in the Ribbon. Detailed guide in references/zotero.md.
6. Data Science Tabular Pathway (python-docx)
Injects structured data into professionally styled tables with auto-fitted column widths and number alignment:
# Append a styled table from CSV or Excel into a document
python scripts/data/dataframe_to_word.py results.csv -o report.docx \
--title "Tabel 1: Ringkasan Hasil Evaluasi" \
--header-color "1E2761"7. Editorial Creation with docx-js
For bespoke documents created from scratch, write a Node.js script using docx:
- Page size: Default is A4. For US Letter:
page: { size: { width: 12240, height: 15840 } }(DXA). - Tables: Set
columnWidthson the table ANDwidthon every cell inWidthType.DXA. - Shading: Use
ShadingType.CLEAR, neverSOLID. - Lists: Use a
numberingconfiguration withLevelFormat.BULLET, never literal bullets. - TOC: Headings must use built-in
HeadingLevel.*or setoutlineLevel. - Dot-leader tabs: Use
PositionalTabwithleader: PositionalTabLeader.DOT.
8. Legal Redlining & Document Surgery (Raw OpenXML)
For contract reviews and deep XML modifications:
unzip -q doc.docx -d unpacked/
python scripts/merge_runs.py unpacked/ # coalesce fragmented text runs
# edit unpacked/word/document.xml in place
(cd unpacked && rm -f ../out.docx && zip -Xr ../out.docx .)
python scripts/office/validate.py out.docx --original doc.docx- Tracked changes: Wrap modified text in
<w:ins>/<w:del>withw:id,w:author, andw:date. - Comments: Use
python scripts/comment.py unpacked/ "Komentar hukum..."to manage the six cross-linked XML comment files cleanly.
9. Unified Verification Gate
Every output document must pass verification before returning to the user:
- Schema Integrity:
python scripts/office/validate.py out.docx - Layout & Standards Linting:
python scripts/audit_layout.py out.docx --profile skripsi-id(or--template guideline.docx) - Citation Authenticity:
python scripts/citations/verify_citations.py out.docx(zero hallucinated citations) - Zotero Integrity (if citations present):
python scripts/zotero/validate_zotero.py out.docx - Visual Layout QA: Render to PDF via
soffice.pyand inspect images viapdftoppm.
Dependencies
docx (npm) · pandoc · python-docx · openpyxl · Pillow · numpy · LibreOffice (soffice) · pdftoppm (Poppler)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

