Markitdown
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
Reads, edits, converts and reviews Word documents through three dedicated tools, covering tracked changes, comments, tables, images and format conversion.
$ npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OpenLoaf/OpenLoaf docx-skill --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OpenLoaf/OpenLoaf.git skills-src && mkdir -p .claude/skills && cp -r skills-src/apps/server/src/ai/builtin-skills/docx/en .claude/skills/docx-skill && rm -rf skills-srcUse ~/.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/
Install the "docx-skill" agent skill from https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/en into .claude/skills/docx-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docx-skill", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/enType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OpenLoaf/OpenLoaf docx-skill --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLoaf/OpenLoaf.git skills-src && mkdir -p .agents/skills && cp -r skills-src/apps/server/src/ai/builtin-skills/docx/en .agents/skills/docx-skill && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "docx-skill" agent skill from https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/en into .agents/skills/docx-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docx-skill", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OpenLoaf/OpenLoaf docx-skill --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLoaf/OpenLoaf.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/apps/server/src/ai/builtin-skills/docx/en .cursor/skills/docx-skill && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "docx-skill" agent skill from https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/en into .cursor/skills/docx-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docx-skill", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OpenLoaf/OpenLoaf.git --path apps/server/src/ai/builtin-skills/docx/en--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OpenLoaf/OpenLoaf docx-skill --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLoaf/OpenLoaf.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/apps/server/src/ai/builtin-skills/docx/en .gemini/skills/docx-skill && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "docx-skill" agent skill from https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/en into .gemini/skills/docx-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docx-skill", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OpenLoaf/OpenLoaf docx-skillInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OpenLoaf/OpenLoaf.git skills-src && mkdir -p .github/skills && cp -r skills-src/apps/server/src/ai/builtin-skills/docx/en .github/skills/docx-skill && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "docx-skill" agent skill from https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/en into .github/skills/docx-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docx-skill", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OpenLoaf/OpenLoaf docx-skill --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLoaf/OpenLoaf.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/apps/server/src/ai/builtin-skills/docx/en .opencode/skills/docx-skill && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "docx-skill" agent skill from https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx/en into .opencode/skills/docx-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docx-skill", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
docx-skillReads, edits, converts and reviews Word documents through three dedicated tools, covering tracked changes, comments, tables, images and format conversion.
Reading goes through WordInspect, which returns a summary of page count, word count, heading count and flags for tracked changes, comments or protection, then drills into outline, text, tables, images, comments, tracked changes or raw XML. Every write, including creating a document, replacing text, inserting images, adding comments or resolving tracked changes, goes through JsSandbox, which runs Node scripts built on the docx npm package plus adm-zip. A separate DocConvert tool handles docx conversion to and from PDF, HTML, Markdown and plain text, and CloudImageUnderstand provides OCR for scanned documents.
The skill is explicit that reading a .docx with a generic file-preview tool only returns Markdown-level text and loses run and paragraph formatting, table merges, tracked changes and comments, so any analyze, summarize, edit, create or review task must go through WordInspect and JsSandbox instead. For protected documents, writes are not supported until DocConvert produces an unprotected copy. Demos shown include generating a meeting-notes document with headings and a table, and replacing `{{placeholder}}` tokens, with a note that Word can split a placeholder across multiple runs, checked via the XML view.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f7eccf6. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
docx.js.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Word Document Read, Write and Convert loads about 1.9k tokens when it runs. Until then it costs about 192 tokens; SKILL.md has 365 words of instructions outside code blocks.
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.
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.
The full file from OpenLoaf/OpenLoaf at commit f7eccf6, republished under its AGPL-3.0 licence (© OpenLoaf). 365 words, ~1,902 tokens.
.claude/skills/docx-skill/SKILL.md (or your agent's skills folder).Read with WordInspect; all write / modify / create operations use JsSandbox to run Node scripts (preferred library: docx); format conversion uses DocConvert.
| Tool | Responsibility | Read-only |
|---|---|---|
WordInspect | Read: summary / outline / text / tables / images / comments / tracked-changes / xml / render | Yes |
JsSandbox | All writes: create / replace-text / add-image / comment / resolve-changes… implemented with docx + adm-zip | No |
DocConvert | docx ↔ pdf / html / md / txt | No |
CloudImageUnderstand | OCR entry point for scanned docx files | No |
Loading (two steps):
LoadSkill docx-skillToolSearch(query: "select:WordInspect,JsSandbox,DocConvert")
Read/DocPreviewon a .docx returns only Markdown-level body text (losing rPr / pPr / table merges / tracked changes / comments); any "analyze / summarize / edit / create / review Word" task must go throughWordInspect+JsSandbox.
WordInspect(summary)WordInspect { action: "summary", filePath: "…" }Returns pageCount / wordCount / headingCount / hasTrackedChanges / hasComments / isProtected / availableStyles. Branch accordingly:
| Signal | Next step |
|---|---|
isProtected: true | Writes not supported; use DocConvert to produce an unprotected copy first |
hasTrackedChanges | WordInspect(tracked-changes) → resolve with the script in §2.4 |
hasComments | WordInspect(comments) to get the parent/reply tree |
wordCount === 0 && pageCount >= 1 | Likely scanned; WordInspect(render) + CloudImageUnderstand |
JsSandbox + docxUse the docx npm package (flumens/docx) to programmatically build docx OOXML. Broadest coverage for styles / tracked changes / comments.
import {
Document, Packer, Paragraph, TextRun, HeadingLevel, Table, TableRow, TableCell,
WidthType, AlignmentType, PageOrientation,
} from 'docx'
import fs from 'node:fs/promises'
const title = new Paragraph({
heading: HeadingLevel.HEADING_1,
alignment: AlignmentType.CENTER,
children: [new TextRun({ text: 'Q2 Product Planning — Meeting Notes', bold: true, size: 36 })],
})
const meta = new Paragraph({
children: [new TextRun({ text: 'Date: 2026-04-20 Attendees: Alice / Bob / Carol', size: 22 })],
})
const decisions = [
['Alice', 'Q2 feature schedule', '2026-05-10'],
['Bob', 'API documentation', '2026-04-30'],
]
const tbl = new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
new TableRow({
tableHeader: true,
children: ['Owner', 'Item', 'Due Date'].map(
t => new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: t, bold: true })] })],
}),
),
}),
...decisions.map(row => new TableRow({
children: row.map(v => new TableCell({ children: [new Paragraph(v)] })),
})),
],
})
const doc = new Document({
creator: 'OpenLoaf',
styles: {
default: {
document: { run: { font: 'Calibri' } },
},
},
sections: [{
properties: { page: { orientation: PageOrientation.PORTRAIT } },
children: [title, meta, new Paragraph({ text: '' }), tbl],
}],
})
await fs.writeFile('meeting_notes.docx', await Packer.toBuffer(doc))
console.log('meeting_notes.docx written')CJK font: set
styles.default.document.run.fontto'Microsoft YaHei'/'SimSun'/'Noto Sans CJK SC'to avoid rendering squares in Word.
In docx, {{placeholder}} tokens may be split across multiple w:r runs by Word. Use WordInspect(xml) to check the structure. When the placeholder lives in a single run:
import AdmZip from 'adm-zip'
import fs from 'node:fs/promises'
const zip = new AdmZip(await fs.readFile('in.docx'))
let xml = zip.readAsText('word/document.xml')
xml = xml
.replace(/\{\{date\}\}/g, '2026-04-20')
.replace(/\{\{name\}\}/g, 'John Smith')
zip.updateFile('word/document.xml', Buffer.from(xml, 'utf-8'))
await fs.writeFile('out.docx', zip.toBuffer())
console.log('replaced')When runs are split, rewriting the whole new Document({...}) is more reliable.
import {
Document, Packer, Paragraph, ImageRun, Header, AlignmentType,
} from 'docx'
import fs from 'node:fs/promises'
const logo = await fs.readFile('logo.png')
const doc = new Document({
sections: [{
headers: {
default: new Header({
children: [new Paragraph({
alignment: AlignmentType.RIGHT,
children: [new ImageRun({
data: logo,
transformation: { width: 80, height: 24 },
})],
})],
}),
},
children: [
new Paragraph({ text: 'Report body...' }),
new Paragraph({
children: [new ImageRun({
data: await fs.readFile('chart.png'),
transformation: { width: 500, height: 300 },
})],
}),
],
}],
})
await fs.writeFile('report.docx', await Packer.toBuffer(doc))No direct API; use adm-zip to edit document.xml:
import AdmZip from 'adm-zip'
import fs from 'node:fs/promises'
const zip = new AdmZip(await fs.readFile('in.docx'))
let xml = zip.readAsText('word/document.xml')
// 1) Accept all w:ins (keep content, remove tags)
xml = xml.replace(/<w:ins [^>]*>([\s\S]*?)<\/w:ins>/g, '$1')
// 2) Accept all w:del (remove the deleted content)
xml = xml.replace(/<w:del [^>]*>[\s\S]*?<\/w:del>/g, '')
zip.updateFile('word/document.xml', Buffer.from(xml, 'utf-8'))
await fs.writeFile('out.docx', zip.toBuffer())
console.log('tracked changes accepted')DocConvertDocConvert(from="docx", to="pdf", sourcePath="…")
DocConvert(from="docx", to="md", sourcePath="…")
DocConvert(from="docx", to="html", sourcePath="…")Backed by LibreOffice headless; layout fidelity is superior to hand-coded conversion.
| Symptom | Cause | Fix |
|---|---|---|
| Chinese shows as squares | CJK font not set | styles.default.document.run.font = 'Microsoft YaHei' |
| Find-replace fails | Placeholder split across multiple runs | Use WordInspect(xml) to inspect structure, or rewrite with docx |
ImageRun image distorted | transformation.width/height not provided | Always pass pixel dimensions |
| Word reports "document repaired" on open | Invalid XML / hand-edited OOXML | Use docx package to generate; don't manually edit OOXML |
To patch a script: JsSandbox(action="edit-and-run", scriptPath=<previous path>, edits=[{find,replace}]) — only pass the diff.
© OpenLoaf, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in apps/server/src/ai/builtin-skills/docx/en of OpenLoaf/OpenLoaf.
Open the folder on GitHubat commit f7eccf6
Word Document Read, Write and Convert 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Word Document Read, Write and Convert this skillOpenLoaf/OpenLoaf | 107 | — | ~1.9k | Automated safety check: Pass | AGPL-3.0 | |
| MarkitdownImCa0/just-laws | 781 | 14 repos | ~3.2k | Automated safety check: Notes | MIT | |
| DOCX ToolkitXiaomiMiMo/MiMo-Code | 14k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Markitdownjimmc414/Kosmos | 594 | 2 repos | ~1.7k | Automated safety check: Pass | None | |
| Liteparsebastani-inc/atomic | 846 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Industry Bid Document WriterGet00/BiaoShu-SKILL | 167 | — | ~4.6k | Automated safety check: Pass | Apache-2.0 |
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
XiaomiMiMo/MiMo-Code
Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.
jimmc414/Kosmos
Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing.
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…
Get00/BiaoShu-SKILL
Converts a tender document into Markdown, extracts scoring criteria and requirements, then drafts an industry-formatted technical bid as a Word file.
Nebutra/MinerU-Skill
An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.
OpenLoaf/OpenLoaf
Triggers when the master Agent faces a multi-step complex task and is deciding whether / how to outsource sub-tasks to built-in subagents (browser / doc-editor / data-analyst / extractor /…
OpenLoaf/OpenLoaf
Triggered when the user asks for page-level interaction with a specific webpage: login, form filling, button clicks, pagination scraping, screenshots, downloading page images, handling CAPTCHAs or…
OpenLoaf/OpenLoaf
Triggered when the user wants lifecycle management of OpenLoaf canvases / whiteboards: create, open, filter, duplicate, delete, rename, or change ownership.
OpenLoaf/OpenLoaf
Handles a real email account through query and mutate tools: check the inbox, read, search, reply, forward, compose and organize, with sending always confirmed first.
OpenLoaf/OpenLoaf
Guides an agent to operate native macOS apps by surveying an app first, acting through intents, menus or keystrokes, and verifying each step, in OpenLoaf Desktop only.
OpenLoaf/OpenLoaf
All-in-one PDF read / write / convert / OCR. An agent skill from OpenLoaf/OpenLoaf.
Works with
Categories
Reads, edits, converts and reviews Word documents through three dedicated tools, covering tracked changes, comments, tables, images and format conversion. Reading goes through WordInspect, which returns a summary of page count, word count, heading count and flags for tracked changes, comments or protection, then drills into outline, text, tables, images, comments, tracked changes or raw XML. Every write, including creating a document, replacing text, inserting images, adding comments or resolving tracked changes, goes through JsSandbox, which runs Node scripts built on the docx npm package plus adm-zip.
Word Document Read, Write and Convert fits situations like: summarizing or reading the structure of a Word document, including tracked changes and comments; replacing text or inserting images into an existing .docx file; converting a Word document to PDF, HTML, Markdown or plain text; generating a new Word document such as a report or meeting notes from bullet points.
Run `npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a claude-code`. Or copy the skill folder (apps/server/src/ai/builtin-skills/docx/en in OpenLoaf/OpenLoaf) into .claude/skills/docx-skill in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a codex`. Or copy the skill folder (apps/server/src/ai/builtin-skills/docx/en in OpenLoaf/OpenLoaf) into .agents/skills/docx-skill in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenLoaf/OpenLoaf --skill docx-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx-skill, .gemini/skills/docx-skill, .github/skills/docx-skill and .opencode/skills/docx-skill in your project.
SKILL.md names no scripts, command-line tools or credentials: Word Document Read, Write and Convert is instructions for the agent only. Our summary lists: Node.js with the docx and adm-zip packages for write operations.
SKILL.md names 1 domain. As links in the text: docx.js.org. This is read from the text; nothing was executed.
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.
Word Document Read, Write and Convert is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Word Document Read, Write and Convert: Markitdown (ImCa0/just-laws, 781 stars), DOCX Toolkit (XiaomiMiMo/MiMo-Code, 14k stars), Markitdown (jimmc414/Kosmos, 594 stars) and Liteparse (bastani-inc/atomic, 846 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OpenLoaf (a GitHub organization) maintains it in OpenLoaf/OpenLoaf, which has 107 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on May 14, 2026.
Source: OpenLoaf/OpenLoaf on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.