Docx logo

Docx

Organization
cubeplexai
docx

Create polished, fully-editable Word (.docx) documents end to end — research or read the source, outline the structure, pick a style set, build native editable content (cover / headings / body / lists / three-line tables / figures / quote / TOC / page numbers), then self-check before delivering. Handles English and Chinese (including 公文 / GB-T 9704 layout). Use whenever the user wants a report, paper, proposal, letter, memo, contract draft, or any Word document. Free fonts + open libraries only.

Overview

Publishercubeplexai
Repositorycubeplex
Skill namedocx
Stars
533
Forks
46
Bundled files
14
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 14 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cubeplexai on GitHub. Read the source before you install it.

Installation

Install the Docx AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cubeplexai/cubeplex/tree/main/backend/skills/preinstalled/docx
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cubeplexai/cubeplex.git /tmp/cubeplex
mkdir -p .claude/skills
cp -r /tmp/cubeplex/backend/skills/preinstalled/docx .claude/skills/docx
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Docx in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Docx on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Docx is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

docx — research, structure, and build self-checked Word documents

Don't jump straight to code. A good document is content first, structure second, formatting last. Follow the pipeline; the depth is in the reference docs — read the ones each step points to.

<skill> below = the absolute path load_skill returned. The builder is <skill>/scripts/docbuilder.py; the checker is <skill>/scripts/check_doc.py; reference docs live under <skill>/references/.

Pipeline

  1. Understand the request & inputs. Read every uploaded file in full first. Identify: language, audience, the document type (report / paper / proposal / letter / memo / 公文), any length/section requirements, and whether the user gave you a finished source, an outline, or just a topic.

  2. Choose the content mode — where the content comes from (references/content.md):

    • Summarize — user gave a complete source → distill it (don't invent).
    • Outline — user gave structure/points → follow it, enrich each section.
    • Research — user gave only a topic → research the web first.
  3. Research (if needed). Broad pass (map directions, tell the user what you'll dig into) → deep pass (read sources via the browser skill / curl, extract real data). Cite real sources; never fabricate. See content.md.

  4. Outline the document — the section structure for the chosen type (content.md has skeletons): title block → (TOC) → sections (H1) with H2/H3 → conclusions/references/appendices as the type needs. One idea per section for reference docs; flowing prose for narrative ones.

  5. Pick one style set for the whole document (references/themes.md catalog → read the chosen references/themes/<name>.md): corporate · academic · report · chinese · official (公文). See references/design.md for profile→set and references/styles.md for the system. CJK specifics: references/cjk.md.

  6. Build with docbuilder.py. One script imports Doc, calls the building blocks top to bottom, and saves to /workspace/<doc>/document.docx. Run with the sandbox python (python-docx / pillow installed). The builder handles the hard OOXML for you — East-Asian fonts, page-number fields, an updatable TOC, three-line tables, heading levels. Don't hand-edit XML; extend the builder if a block is missing. Figures: references/images.md.

  7. Self-check — mandatory. Run the checker and fix every ERROR, then re-run until it prints 0 error(s):

    bash
    python3 <skill>/scripts/check_doc.py /workspace/<doc>/document.docx

    It flags CJK without a resolvable font, tables/images past the margins, leftover placeholder text, Normal-only documents, and heading-hierarchy skips. Fix by correcting content/structure — not by hand-patching XML.

  8. Deliver the .docx as an artifact with a one-paragraph summary of the document's structure and key points. Then stop.

Building blocks (the API)

Doc(theme=..., lang="en-US") then chain: cover(title, subtitle, meta) · heading(text, level) · body(text) · bullets(items) · numbered(items) · table(headers, rows, caption) (three-line, auto-sized) · figure(image_path, caption, width_in) · quote(text, attribution) · toc(title) (updatable field — Word refreshes on open) · page_numbers() · page_break() · section_break(landscape) · save(path). Full reference: references/styles.md.

Reference docs (read on demand)

ReadFor
references/content.mdcontent modes, document-type skeletons, outline, web research
references/themes.md + references/themes/<name>.mdchoosing & using a style set
references/styles.mdthe style-set system + full builder API
references/design.mdprofile→set map, hierarchy, spacing, density
references/cjk.mdChinese typography, fonts, 公文 / GB-T 9704
references/images.mdwhen/how to source figures

Non-negotiables

  • One style set for the whole document; don't hand-format per paragraph — extend docbuilder.THEMES if you need a new look.
  • Every section uses a real style (the builder does this) — never a Normal-only document.
  • CJK always gets its East-Asian font (the builder sets it) — verify with the checker; tofu is an error, not a warning.
  • Fonts are embedded on save by default. save() subsets the fonts the document actually uses (CJK faces included) and embeds them into the .docx, so it renders identically on a machine that lacks Noto / LXGW (e.g. a stock Mac opening it in Word — no silent fallback to 宋体/PingFang, no tofu). Adds ~0.3–1.5 MB for CJK docs. Disable only if you have a reason: Doc(..., embed_fonts=False) or save(path, embed=False). Embedding is best-effort — if fonttools or a font file is missing it warns and still saves the doc.
  • Never deliver without a clean checker run. No placeholder text, no empty headings, no [TODO].
  • Output is standard editable .docx (Word / WPS / LibreOffice). This skill is built for creating documents. If the user gives you an existing .docx to fill or lightly edit, open it directly with python-docx and modify it in place (it's installed) — docbuilder/the style sets are for new documents, so don't force an edit job through them. Heavy template-application / track-changes workflows are out of scope for now.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Docx AI skill do?

Create polished, fully-editable Word (.docx) documents end to end — research or read the source, outline the structure, pick a style set, build native editable content (cover / headings / body / lists / three-line tables / figures / quote / TOC / page numbers), then self-check before delivering. Handles English and Chinese (including 公文 / GB-T 9704 layout). Use whenever the user wants a report, paper, proposal, letter, memo, contract draft, or any Word document. Free fonts + open libraries only.

Why use Docx on TypingMind?

Because you install it once and use it with any model. Docx is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Docx in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cubeplexai/cubeplex/tree/main/backend/skills/preinstalled/docx. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Docx?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Docx?

As many as you like. As long as a model supports skills, you can use Docx with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Docx AI skill free?

It is published on GitHub by cubeplexai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇