# DOCX conversion

> DOCX conversion is an open-source agent skill for files and documents. Lets an agent read and write Word .docx files by converting them to and from Markdown. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/docx-conversion
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** docx-conversion
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a pandoc-based route for working with Word documents. It converts an incoming .docx into Markdown so the agent can read or revise the text as ordinary Markdown, and converts edited Markdown back into a .docx when the user wants Word output. A reference .docx can be supplied so the generated file picks up consistent styling.

The workflow is short: convert first, process the content as Markdown, then convert back if a Word file is needed. The guidance asks the agent to check that pandoc is installed before converting and to point the user to a package manager install command if it is missing. It also tells the agent to leave the original .docx untouched unless the user confirms, to keep headings, lists and tables intact, and to warn when images or charts may not survive the round trip.

The skill expects pandoc available on the command line and works with local .docx files named by the user.

## When your agent uses it

> Converts Word (.docx) files to and from Markdown with pandoc. Use when the user hands you a .docx file to read or edit, or asks for the result as a .docx file.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/docx-conversion)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/docx-conversion)

## Features

- **Docx to Markdown:** Converts a Word file into Markdown so the agent can read and edit its contents.
- **Markdown to Docx:** Builds a Word document from Markdown produced or edited by the agent.
- **Reference template styling:** Applies a supplied reference .docx so output matches an existing document style.
- **Structure preservation:** Guidance to keep headings, lists and tables intact through conversion.
- **Original file safety:** Instructs the agent not to overwrite the source .docx without user confirmation.
- **Pandoc availability check:** Verifies pandoc is installed and suggests install commands when it is not.

## Good for

- Summarize a Word report that I attached
- Edit a contract draft delivered as a .docx and return the revised version
- Turn my Markdown notes into a Word document
- Apply the formatting of my template file to a new Word document
- Pull the text out of a .docx so you can review it

## Install

### Claude Code

This skill ships in the `konductor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/docx-conversion`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/docx-conversion &&
cp -R "$tmp/skills/docx-conversion" ~/.claude/skills/docx-conversion &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/docx-conversion` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/docx-conversion` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/docx-conversion &&
cp -R "$tmp/skills/docx-conversion" ~/.agents/skills/docx-conversion &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/docx-conversion` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/docx-conversion` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/docx-conversion &&
cp -R "$tmp/skills/docx-conversion" ~/.cursor/skills/docx-conversion &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/docx-conversion` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aws-solutions/konductor.git --path skills/docx-conversion
```

Or copy the folder to `~/.gemini/skills/docx-conversion` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/docx-conversion`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/docx-conversion &&
cp -R "$tmp/skills/docx-conversion" ~/.copilot/skills/docx-conversion &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/docx-conversion` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/docx-conversion` into your agent's skills folder as `docx-conversion`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It relies on pandoc being installed. If pandoc is missing, the agent is told to inform the user and suggest installing it with brew on macOS or yum on AL2.

### Will DOCX conversion change my original Word file?

The skill instructs the agent never to modify the original .docx without user confirmation.

### Does conversion keep images and charts?

The guidance tells the agent to warn the user when complex formatting such as images or charts may be lost during conversion.

### Can I control how the output Word file looks?

Yes, the skill shows how to pass a reference .docx template to pandoc so the output uses its styling.

### How do I install DOCX conversion in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/docx-conversion to use it in all your projects, or to .claude/skills/docx-conversion in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does DOCX conversion run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use DOCX conversion?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to DOCX conversion?

The closest alternatives to DOCX conversion are Convert word to md, DOCX, Md to DOCX, DOCX and Convert excel to md.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Convert word to md](https://ai-powered.com/skills/convert-word-to-md): Convert word to md is an open-source agent skill for files and documents.
- [DOCX](https://ai-powered.com/skills/docx-melandlabs): DOCX is an open-source agent skill for files and documents.
- [Md to DOCX](https://ai-powered.com/skills/md-to-docx): Md to DOCX is an open-source agent skill for files and documents.
- [DOCX](https://ai-powered.com/skills/docx-anthropics): DOCX is a free agent skill for files and documents.
- [Convert excel to md](https://ai-powered.com/skills/convert-excel-to-md): Convert excel to md is an open-source agent skill for files and documents.
- [Convert plaintext to md](https://ai-powered.com/skills/convert-plaintext-to-md): Convert plaintext to md is an open-source agent skill for files and documents.
- [Markdown to HTML](https://ai-powered.com/skills/markdown-to-html): Markdown to HTML is an open-source agent skill for files and documents.
- [Convert PDF to md](https://ai-powered.com/skills/convert-pdf-to-md): Convert PDF to md is an open-source agent skill for files and documents.

---
Source: https://ai-powered.com/skills/docx-conversion
