pandoc-docx-template

A skill to convert Markdown to Word and back through Pandoc with ready styling templates and Lua filters

Skill

Medium risk

We rate an entry medium when the tool runs code, makes network calls or reads project files. Check what exactly it does before installing.

Why this level

  • Runs Pandoc and conversion scripts over project files
All reasons and checks

achuan-2/pandoc_docx_template

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/pandoc-docx-template

Detects the agents on your machine, checks the risk and pins the version.

Other ways to install

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a claude-code -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a cursor -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a github-copilot -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a codex -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a gemini-cli -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a cline -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a roo -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

A fork of Roo Code, same .roo folders.

Run in a terminal in the project folder

npx skills add achuan-2/pandoc_docx_template --skill pandoc-docx-template -a opencode -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

You will need: Node.js

Checked against the repository on Sep 25, 2026, commit 8f94b99.

Text for your agent

Copy the repository into the agent's skills directory, for example ~/.claude/skills/pandoc-docx-template or %USERPROFILE%\.codex\skills\pandoc-docx-template, and make sure Pandoc is installed.

This is third-party code. Review the repository files before installing.

What it does

The skill gives the agent a ready toolkit for converting between Markdown and docx with Pandoc. It bundles Word reference templates with different heading numbering and list indentation variants, templates for scientific papers, and Lua filters for HTML tags, figure captions, font color and inline code styling. It ships md2docx and docx2md scripts for repeatable conversions, and the agent can call Pandoc directly when no shell is available. It targets note apps such as Obsidian, Typora and Siyuan.

Who it is for. For people who write in Markdown but deliver documents in Word with clean formatting.

Good fit when

  • You need to export Markdown to docx with a ready style
  • You need to turn a docx back into Markdown
  • You need consistent Word templates for reports or papers

Not a fit when

  • Pandoc is not and cannot be installed on the machine
  • You need a complex layout Pandoc cannot reproduce

Example request

Build a docx from this Markdown using the template without heading numbering

Limitations

Pandoc must be installed, and some filters and scripts need Python and Lua. The templates target Chinese typography first; for other languages you adjust the styles by hand.

How to disable. Remove the pandoc-docx-template skill folder from the agent's skills directory.

Security check

  • Runs Pandoc and conversion scripts over project files

README in short

The README describes a toolkit for converting Markdown and docx via Pandoc with Word reference templates, heading numbering and list indentation variants, paper templates and Lua filters. It offers md2docx and docx2md scripts for repeatable work and shows installing the skill in Claude Code, Codex and OpenClaw. It also covers calling Pandoc directly when the scripts cannot run.

SKILL.md

---
name: pandoc-docx-template
description: "Use this skill when converting Markdown to Word DOCX or DOCX back to Markdown with Pandoc, especially when the output should use the bundled Chinese Word reference templates, heading numbering variants, list indentation variants, SCI paper templates, and Lua filters for HTML tags, image captions, font color, and inline code styles."
---

# Pandoc DOCX Template

## Overview

Use this skill to convert Markdown and DOCX files with Pandoc while applying the bundled Word reference templates in `templates/` and Lua filters in this folder. Prefer the scripts in `scripts/` for repeatable conversions, and call Pandoc directly when the local shell cannot run Bash scripts.

FAQ

Which conversion directions are supported?

Markdown to docx via md2docx and docx to Markdown via docx2md, both in the scripts folder.

Are the scripts required?

No. When no shell is available, the agent calls Pandoc directly with the chosen template.

Official

Microsoft's utility and MCP server that turn PDF, Word, Excel, PowerPoint, HTML and other files into Markdown for models

MCP serverMedium riskNo VPN needed187.4KRepository stars
Editors’ pick

Anthropic's official skill examples: docx, pdf, pptx and xlsx documents, design, MCP builder and the Agent Skills spec

SkillMedium risk178.8KRepository stars
Editors’ pick

A skill that builds editable PPTX decks from PDF, DOCX, URLs and Markdown with native shapes, charts and animations

SkillMedium risk56.8KRepository stars
Editors’ pick

A skill that draws editorial diagrams as standalone HTML and SVG files: architecture, flowcharts, ER, funnels and about forty more types

SkillMedium riskNo VPN needed42.6KRepository stars
Foxx AIpandoc-docx-template

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.