Agent skill

Pandoc DOCX Template

by Achuan-2 in Achuan-2/pandoc_docx_template

A skill your agent uses 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…

No licenceAuto-check passedDocuments & Office

Install Pandoc DOCX Template

skills CLI
$ npx skills add Achuan-2/pandoc_docx_template --skill pandoc-docx-template -a claude-code

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

GitHub CLI
$ gh skill install Achuan-2/pandoc_docx_template pandoc-docx-template --agent claude-code

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

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

Facts

Skill name
pandoc-docx-template
GitHub stars
1.1k
Token cost
~1k tokens
SKILL.md length
359 words
Files
21 (incl. scripts)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses 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…

  • Works in 2 steps: Check that Pandoc is available → Choose the conversion direction
  • Converting Markdown to Word DOCX
  • SKILL.md covers Overview, Workflow, Markdown to DOCX and DOCX to Markdown, plus 2 more sections
  • Runs Lua and Python scripts from its folder; calls pandoc and python

What it does

Pandoc DOCX Template is an agent skill from Achuan-2/pandoc_docx_template. 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.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 24 other files, including scripts (for example `CHANGELOG.md`, `README.md` and `agents/openai.yaml`).

It sits in Documents & Office, covering Word documents and Markdown. It works with Microsoft Word, Pandoc, Lua and Obsidian. The repository describes itself as: 设置Markdown导出为docx时的样式,可控制导出docx的段落文字、标题编号等样式,适用于obsidian、typora、思源笔记等Markdown笔记软件,支持Codex、Claude Code等调用skill丨Template for exporting Markdown to docx (Word) using pandoc.

When your agent uses it

  • Converting Markdown to Word DOCX
  • DOCX back to Markdown with Pandoc
  • Especially when the output should use the bundled Chinese Word reference templates
  • Heading numbering variants

Example prompts

  • “/pandoc-docx-template”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Check that Pandoc is available
  2. Choose the conversion direction

What it can do on your machine

Read from SKILL.md and the folder at commit 8f94b99. 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

    Ships 2 files in scripts/ (Lua and Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • pandoc
    • python

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

  • Network

    No URLs in SKILL.md.

    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

Pandoc DOCX Template loads about 1k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 359 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

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

“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…”

— opening of SKILL.md by Achuan-2
name
pandoc-docx-template

Read the full SKILL.md on GitHub

Files

SKILL.md and 20 other files (scripts) in the repository root of Achuan-2/pandoc_docx_template.

  • SKILL.md
  • .gitignore
  • CHANGELOG.md
  • README.docx
  • README.md
  • agents/openai.yaml
  • lua/add-inline-code.lua
  • lua/image-title-to-caption-add-number.lua
  • lua/image-title-to-caption.lua
  • lua/markdown-html-recognition.lua
  • lua/preserve_font_color.lua
  • markdown-to-docx.lua
  • scripts/docx2md.py
  • scripts/md2docx.py
  • templates/template_sci论文-标题不编号.docx
  • templates/template_sci论文-标题编号.docx
  • templates/template_标题不编号-列表第二行缩进.docx
  • … and 4 more

Open the folder on GitHubat commit 8f94b99

Compare with similar skills

Pandoc DOCX Template 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.

Pandoc DOCX Template compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pandoc DOCX Template this skillAchuan-2/pandoc_docx_template1.1k—~1kAutomated safety check: PassNone
MineruNebutra/MinerU-Skill123—~504Automated safety check: PassMIT
Pandic OfficeTeam-Commonly/commonly1.4k—~642Automated safety check: PassApache-2.0
Doc To Markdowndaymade/claude-code-skills1.4k—~2.5kAutomated safety check: PassMIT
MineruNebutra/MinerU-Skill123—~1.4kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT

Similar skills

  • Mineru

    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.

    123 GitHub stars~504 tokensUpdated 16 days ago
    Documents & OfficeAuto-check passed
  • Pandic Office

    Team-Commonly/commonly

    Convert Markdown to PDF (or DOCX/EPUB/HTML) using the pandoc CLI.

    1.4k GitHub stars~642 tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Doc To Markdown

    daymade/claude-code-skills

    Converts DOCX/PDF/PPTX and saved HTML/HTM to high-quality Markdown with automatic post-processing.

    1.4k GitHub stars~2.5k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents.

    123 GitHub stars~1.4k tokensUpdated 16 days ago
    Documents & OfficeAuto-check passed
  • 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
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    4k GitHub stars~2.2k tokensUpdated yesterday
    Documents & OfficeAuto-check passed

Questions about Pandoc DOCX Template

What does Pandoc DOCX Template do?

A skill your agent uses 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…. Pandoc DOCX Template is an agent skill from Achuan-2/pandoc_docx_template. 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.

When should I use Pandoc DOCX Template?

Pandoc DOCX Template fits situations like: converting Markdown to Word DOCX; DOCX back to Markdown with Pandoc; especially when the output should use the bundled Chinese Word reference templates; heading numbering variants.

How do I install Pandoc DOCX Template in Claude Code?

Run `npx skills add Achuan-2/pandoc_docx_template --skill pandoc-docx-template -a claude-code`. Or copy the skill folder (the Achuan-2/pandoc_docx_template repository) into .claude/skills/pandoc-docx-template in your project. Claude Code loads it when a task matches its description.

How do I install Pandoc DOCX Template in Codex?

Run `npx skills add Achuan-2/pandoc_docx_template --skill pandoc-docx-template -a codex`. Or copy the skill folder (the Achuan-2/pandoc_docx_template repository) into .agents/skills/pandoc-docx-template in your project. Codex loads it when a task matches its description.

Can I use Pandoc DOCX Template 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 Achuan-2/pandoc_docx_template --skill pandoc-docx-template -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pandoc-docx-template, .gemini/skills/pandoc-docx-template, .github/skills/pandoc-docx-template and .opencode/skills/pandoc-docx-template in your project.

What does Pandoc DOCX Template need to run?

Going by SKILL.md and its folder, Pandoc DOCX Template needs Lua and Python for the scripts in its folder and the command-line tools its instructions call (pandoc and python). Our summary lists: Python 3.

Does Pandoc DOCX Template access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pandoc DOCX Template 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Pandoc DOCX Template use?

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

How many tokens does Pandoc DOCX Template use?

About 1k tokens (SKILL.md is roughly 4.1k 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 Pandoc DOCX Template?

Skills that share tags, products or a category with Pandoc DOCX Template: Mineru (Nebutra/MinerU-Skill, 123 stars), Pandic Office (Team-Commonly/commonly, 1.4k stars), Doc To Markdown (daymade/claude-code-skills, 1.4k stars) and Mineru (Nebutra/MinerU-Skill, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pandoc DOCX Template?

Achuan-2 (a GitHub user) maintains it in Achuan-2/pandoc_docx_template, which has 1,089 GitHub stars. The repository was last updated on July 9, 2026.

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