Agent skill

Docx4j

by plutext in plutext/docx4j

A skill your agent uses when writing Java code that creates, reads or edits Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) files with docx4j — including generating documents, editing existing…

No licenceAuto-check passedDocuments & Office

Install Docx4j

skills CLI
$ npx skills add plutext/docx4j --skill docx4j -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install plutext/docx4j docx4j --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/plutext/docx4j.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/docx4j .claude/skills/docx4j && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docx4j
GitHub stars
2.4k
Token cost
~2.5k tokens
SKILL.md length
1,171 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when writing Java code that creates, reads or edits Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) files with docx4j — including generating documents, editing existing…

  • Works in 8 steps: Get the dependency and imports right first → Orientation: three layers → The recipes worth knowing → …
  • Writing Java code that creates
  • SKILL.md covers 1. Get the dependency and…, 2. Orientation: three layers, 3. The recipes worth knowing and 4. Editing someone else's…, plus 4 more sections
  • Calls soffice; reaches schemas.openxmlformats.org

What it does

Docx4j is an agent skill from plutext/docx4j. Use when writing Java code that creates, reads or edits Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) files with docx4j — including generating documents, editing existing ones, tracked changes, styles, numbering, mail-merge-like content, and docx→PDF/HTML conversion. Also use when the user asks how to merge or concatenate docx/pptx, embed OLE objects, or asks which docx4j artifact or JAXB runtime to depend on.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering Word documents, PowerPoint presentations and Excel spreadsheets. It works with Microsoft PowerPoint, Microsoft Excel, Microsoft Word and Java. The repository describes itself as: JAXB-based Java library for Word docx, Powerpoint pptx, and Excel xlsx files.

When your agent uses it

  • Writing Java code that creates
  • Edits Word (.docx)
  • PowerPoint (.pptx)
  • Excel (.xlsx) files with docx4j — including generating documents

Example prompts

  • “/docx4j”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Get the dependency and imports right first
  2. Orientation: three layers
  3. The recipes worth knowing
  4. Editing someone else's document: decide before you code
  5. Tracked changes
  6. Verify before declaring success
  7. What is not in open-source docx4j
  8. Frequent wrong answers

What it can do on your machine

Read from SKILL.md and the folder at commit 0e8e763. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • soffice

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • schemas.openxmlformats.org

    Also links to:

    • plutext.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Docx4j loads about 2.5k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 1,171 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~106
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,171 words (~2,518 tokens).

“This skill is for writing code that uses docx4j as a library. If you are working on docx4j itself, read CLAUDE.md in the repository root instead — it covers the module map, build, and internal architecture, and is the authority…”

— opening of SKILL.md by plutext
name
docx4j

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/docx4j of plutext/docx4j.

Open the folder on GitHubat commit 0e8e763

Compare with similar skills

Docx4j next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Docx4j compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docx4j this skillplutext/docx4j2.4k—~2.5kAutomated safety check: PassNone
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Cyber Pptcrazyykhllc-bit/CyberPPT1.8k—~10kAutomated safety check: PassMIT
Markitshift-labs-ai/markit1.3k—~299Automated safety check: PassMIT
Markitdownjimmc414/Kosmos5942 repos~1.7kAutomated safety check: PassNone
Liteparsebastani-inc/atomic846—~1.4kAutomated safety check: PassMIT

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Cyber Ppt

    crazyykhllc-bit/CyberPPT

    当用户需要把 DOCX、PDF、TXT、XLSX、研究报告、业务材料或原始数据转成高密度、可编辑、咨询风格 PPTX 时使用;也适用于需要 SCR 论证、视觉风格探索、详细图表和渲染质检的 PPT。

    1.8k GitHub stars~10k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Markit

    shift-labs-ai/markit

    Convert files and URLs to Markdown. An agent skill from shift-labs-ai/markit.

    1.3k GitHub stars~299 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Markitdown

    jimmc414/Kosmos

    Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing.

    594 GitHub starsUsed in 2 repos~1.7k tokens
    Documents & OfficeAuto-check passed
  • Liteparse

    bastani-inc/atomic

    A skill your agent uses whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out of it — to answer a question…

    846 GitHub stars~1.4k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Document

    ZimoLiao/scholaraio

    A skill your agent uses when the user wants to create or inspect DOCX, PPTX, or XLSX files, generate a downloadable Office deliverable, or verify its structure and layout warnings with scholaraio…

    576 GitHub stars~674 tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed

Questions about Docx4j

What does Docx4j do?

A skill your agent uses when writing Java code that creates, reads or edits Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) files with docx4j — including generating documents, editing existing…. Docx4j is an agent skill from plutext/docx4j.xlsx) files with docx4j — including generating documents, editing existing ones, tracked changes, styles, numbering, mail-merge-like content, and docx→PDF/HTML conversion.

When should I use Docx4j?

Docx4j fits situations like: writing Java code that creates; edits Word (.docx); powerPoint (.pptx); excel (.xlsx) files with docx4j — including generating documents.

How do I install Docx4j in Claude Code?

Run `npx skills add plutext/docx4j --skill docx4j -a claude-code`. Or copy the skill folder (.claude/skills/docx4j in plutext/docx4j) into .claude/skills/docx4j in your project. Claude Code loads it when a task matches its description.

How do I install Docx4j in Codex?

Run `npx skills add plutext/docx4j --skill docx4j -a codex`. Or copy the skill folder (.claude/skills/docx4j in plutext/docx4j) into .agents/skills/docx4j in your project. Codex loads it when a task matches its description.

Can I use Docx4j in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add plutext/docx4j --skill docx4j -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx4j, .gemini/skills/docx4j, .github/skills/docx4j and .opencode/skills/docx4j in your project.

What does Docx4j need to run?

Going by SKILL.md and its folder, Docx4j needs the command-line tools its instructions call (soffice).

Does Docx4j access the network?

SKILL.md names 2 domains. In commands or code: schemas.openxmlformats.org; the agent is likely to contact it when it follows the instructions. As links in the text: plutext.com. This is read from the text; nothing was executed.

Is Docx4j safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Docx4j use?

No licence was found for Docx4j or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Docx4j use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Docx4j?

Skills that share tags, products or a category with Docx4j: Markitdown (ImCa0/just-laws, 781 stars), Cyber Ppt (crazyykhllc-bit/CyberPPT, 1.8k stars), Markit (shift-labs-ai/markit, 1.3k stars) and Markitdown (jimmc414/Kosmos, 594 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docx4j?

plutext (a GitHub user) maintains it in plutext/docx4j, which has 2,386 GitHub stars. The repository was last updated on October 7, 2026.

Source: plutext/docx4j on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.