Oliver Herklotz

Pandoc

辦公效率v1.0.2
作者:Oliver Herklotz更新於 2026-05-11共 3 個版本 · 最新版本釋出於 2026-03-15pandoc@clawhub_oliver-hrkltz/pandoc
檔案處理#CSV#Jira#Document#PDF

據 AlphaMoat 統計,截至 2026-10,Pandoc 累計下載 17,422 次、獲 5 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 1,620 位,在「辦公效率」分類(909 個)中排名第 194 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
1.7萬
星標
5
全站下載量排名
#1,620
全站前 15% · 「辦公效率」前 22%
平台累計下載星標評論
ClawHub ↗27052-
SkillHub ↗1.7萬5—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

輸入與輸出格式通常按副檔名自動識別,常見轉換走內建輔助指令碼。輸出 PDF 時需在 xelatex 等引擎之間選擇,Unicode 與字型支援不同;也可在不寫完整模板的情況下控制頁邊距、字型與紙張大小。

資料釋出於 2026-10-27

可以用來做什麼

  • 把一份 markdown 轉換為 docx 交付給同事。
  • 把文件匯出為 PDF 並調整字型與頁邊距。

什麼時候用

  • 需要在文件格式之間來回轉換時。
  • 要批次匯出且想固定排版引數時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

把這份 markdown 轉成 docx,保持標題層級。
把這份文件匯出成 PDF,指定字型和頁邊距。

月度資料趨勢

累計下載1.7萬
29394921.9萬2026-03 · 累計下載 15622026-05 · 累計下載 34772026-06 · 累計下載 39932026-07 · 累計下載 46482026-08 · 累計下載 52002026-09 · 累計下載 70222026-10 · 累計下載 1.7萬26-0326-0926-10
星標5
1352026-03 · 星標 12026-05 · 星標 22026-06 · 星標 32026-07 · 星標 52026-08 · 星標 52026-09 · 星標 52026-10 · 星標 526-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-101.7萬—5
2026-097022—5
2026-085200+11.9%5
2026-074648+16.4%5
2026-063993+14.8%3
2026-053477—2
2026-031562—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

7.4 KB · ClawHub v1.0.2
---
name: pandoc
description: >
  Convert documents between formats using pandoc. Supports HTML, Markdown, DOCX, PDF, EPUB, LaTeX,
  ODT, RST, Org, MediaWiki, JIRA, CSV, Jupyter notebooks, and many more — any direction pandoc supports.
  Use this skill whenever the user wants to convert, transform, or export a document from one format to
  another, even if they don't mention pandoc explicitly. Triggers include: "convert this to PDF",
  "make a Word doc from this markdown", "export as EPUB", "turn this HTML into a PDF", "transform",
  "generate PDF", "render to", or any request involving document format conversion. Also use when the
  user wants to apply custom styling, add a table of contents, use a template, or set metadata during
展開全部(共 197 行)
  conversion.
metadata:
  version: 1.0.2
  author: Oliver Herklotz (oliver-hrkltz)
  homepage: https://github.com/hrkltz/pandoc-skill
compatibility: >
  Requires: pandoc (https://pandoc.org).
  Optional PDF engines: xelatex (texlive-xetex, recommended for Unicode/fonts),
  lualatex (texlive-luatex, complex typography), tectonic (self-contained TeX workflow),
  pdflatex (texlive-latex-base, fastest for ASCII), weasyprint (CSS Paged Media, Python-based),
  wkhtmltopdf (WebKit-based HTML/CSS rendering), prince (commercial HTML/CSS renderer).
---

# Pandoc Document Converter

Convert documents between any formats pandoc supports, with full control over styling, templates,
table of contents, metadata, and PDF engine selection.

## Quick Start

For most conversions, use the helper script at `scripts/convert.sh`:

```bash
bash <skill-dir>/scripts/convert.sh <input-file> <output-file> [options...]
```

The script auto-detects formats from file extensions and applies sensible defaults (standalone
output, appropriate PDF engine, default LaTeX margins for LaTeX-based PDF engines). It also checks
that `pandoc`, the input file, the output directory, and any requested PDF engine are available.
Any extra arguments are passed through to pandoc.

## How Conversions Work

Pandoc reads a source format into an internal AST, then writes it out in the target format. This
means you can go from nearly any supported input to any supported output. The key decision points are:

1. **Input format** — usually auto-detected from the file extension
2. **Output format** — auto-detected from the output file extension
3. **PDF engine** — for PDF output, choose between `xelatex` (best Unicode/font support),
  `lualatex` (strong Unicode/fonts), `tectonic` (self-contained TeX), `pdflatex` (fastest,
  good for ASCII-heavy docs), or HTML/CSS engines like `weasyprint`, `wkhtmltopdf`, or `prince`
4. **Styling** — CSS for HTML-based outputs, LaTeX templates for PDF, reference docs for DOCX/ODT

## Common Conversion Patterns

### HTML → PDF
```bash
pandoc input.html -o output.pdf --pdf-engine=weasyprint -s
```
If the HTML uses external CSS, include it:
```bash
pandoc input.html -o output.pdf --pdf-engine=weasyprint -s --css=style.css
```

### Markdown → PDF
```bash
pandoc input.md -o output.pdf --pdf-engine=xelatex -s --toc --toc-depth=3
```

### Markdown → DOCX
```bash
pandoc input.md -o output.docx -s
```
To use a reference (template) document for styling:
```bash
pandoc input.md -o output.docx --reference-doc=template.docx
```

### Markdown → HTML
```bash
pandoc input.md -o output.html -s --css=style.css --toc
```

### DOCX → Markdown
```bash
pandoc input.docx -o output.md --extract-media=./media
```

### Markdown → EPUB
```bash
pandoc input.md -o output.epub -s --toc --epub-cover-image=cover.jpg
```

### LaTeX → PDF
```bash
pandoc input.tex -o output.pdf --pdf-engine=xelatex
```

### CSV → HTML table
```bash
pandoc input.csv -o output.html -s
```

## Styling and Appearance

### CSS for HTML-based outputs
Create or use a CSS file and pass it with `--css=path/to/style.css`. For PDF output via
`weasyprint`, `wkhtmltopdf`, or `prince`, CSS is respected directly. For PDF via LaTeX engines,
CSS is usually ignored — use LaTeX variables or templates instead.

A sensible default stylesheet is provided at `assets/default.css`. Use it when the user wants
a clean, readable output without specifying their own styles:
```bash
pandoc input.md -o output.html -s --css=<skill-dir>/assets/default.css
```

### LaTeX variables for PDF styling
Control margins, fonts, and paper size without a full template:
```bash
pandoc input.md -o output.pdf --pdf-engine=xelatex \
  -V geometry:margin=1in \
  -V fontsize=12pt \
  -V mainfont="DejaVu Serif" \
  -V documentclass=article
```

### Reference documents for DOCX/ODT
To match a corporate style, provide a reference document:
```bash
pandoc input.md -o output.docx --reference-doc=brand-template.docx
```

## Advanced Features

### Table of Contents
Add `--toc` and optionally `--toc-depth=N` (default 3):
```bash
pandoc input.md -o output.pdf --pdf-engine=xelatex -s --toc --toc-depth=2
```

### Metadata
Set title, author, date via YAML frontmatter in the source file or via `-M`:
```bash
pandoc input.md -o output.pdf --pdf-engine=xelatex -s \
  -M title="My Report" -M author="Jane Doe" -M date="2026-03-15"
```

### Filters and Lua filters
Pandoc supports filters that transform the AST. Lua filters are self-contained:
```bash
pandoc input.md -o output.pdf --lua-filter=my-filter.lua
```

### Multiple input files
Pandoc concatenates multiple inputs:
```bash
pandoc chapter1.md chapter2.md chapter3.md -o book.pdf --pdf-engine=xelatex -s --toc
```

### Extracting media from DOCX/EPUB
```bash
pandoc input.docx -o output.md --extract-media=./media
```

## Troubleshooting

| Problem | Likely cause | Fix |
|---|---|---|
| PDF has missing characters | Font doesn't support the glyphs | Use `--pdf-engine=xelatex` with `-V mainfont="DejaVu Serif"` |
| PDF conversion fails | No compatible PDF engine installed | Check `which xelatex lualatex tectonic pdflatex weasyprint wkhtmltopdf prince` and install one that matches your output needs |
| DOCX looks unstyled | No reference doc | Create a styled DOCX template and pass `--reference-doc` |
| HTML images missing | Relative paths broken | Use `--self-contained` to embed images as base64 |
| CSS has no effect on PDF | LaTeX PDF engine selected | Use `--pdf-engine=weasyprint`, `--pdf-engine=wkhtmltopdf`, or `--pdf-engine=prince` |
| Table of contents empty | No headings in source | Ensure source uses `#` headings (Markdown) or `<h1>`–`<h6>` (HTML) |

## Format Reference

For a full list of supported input and output formats, see `references/formats.md`.

## Choosing the Right Approach

When a user asks to convert a document, think about:

1. **What's the source format?** Check the file extension or ask. If it's ambiguous (e.g., a `.txt`
   that's actually Markdown), specify `-f markdown` explicitly.
2. **What's the target format?** Map the user's intent to a file extension.
3. **Does it need styling?** If the user wants it to "look nice" or "be professional," add CSS
   (for HTML) or LaTeX variables (for PDF) or a reference doc (for DOCX).
4. **Does it need structure?** TOC, numbered sections, metadata — add these when the document is
   long or formal.
5. **Are there images or media?** Use `--self-contained` for HTML, `--extract-media` when
   converting from DOCX/EPUB to text formats.

Always use the helper script `scripts/convert.sh` as the starting point — it handles the most
common gotchas automatically, picks a reasonable PDF engine, and prints recovery hints when PDF
conversion fails. Add extra pandoc flags as needed for the specific use case.

「辦公效率」分類下的熱門技能

騰訊文件 TENCENT DOCS辦公效率

透過 MCP 在騰訊文件裡新建、編輯與管理線上文件的完整操作手冊。

↓ 218.4萬★ 327u_b0de8114
WPS Office 全家桶辦公效率

WPS Office 全家桶 - 四引擎(WPS/MS Office/LibreOffice/純Python)智慧識別使用者已安裝軟體,純Python模式支援排序/篩選/圖表/公式/統計,含文件模板(程式碼生成)、最佳實踐案例、故障排除大章(20+避坑+15 FAQ+15錯誤ID 統一索引)、自動重試、硬體自適應、環境自檢、Skill更新提醒;v5.1新增:kingdoc雲端橋接(白名單探測+配置預檢+subprocess上傳+差異檢查)、條件格式/資料驗證跨引擎IO(JSON中間格式保真往返)、會議紀要三段式要素化(待辦清單+決策記錄+風險異議)+說話人標註(MFCC聚類);v5.2新增:公文一鍵排版(GB/T 9704 規則庫約束+結構識別套版+紅頭預留位+聯合行文)、批次水印與敏感資訊打碼(身份證/手機號/銀行卡/電子郵件雙軌識別+黑色矩形覆蓋+打碼清單)、跨文件知識檢索與問答(本地TF-IDF零依賴+跳轉+可選zwjh記憶橋接);刪除:與contract-review重複的輕量合同審查模組,改為文件互鏈引導;v5.2.5修復:MS Office引擎下Excel/PPT建立必然失敗(錯用Word COM物件),新增get_ms_excel/get_ms_ppt及三槽位統一釋放release_ms,MS Office路徑透傳filepath引數;v5.3.5修復:SKILL.md frontmatter 修復 tags 塊序列誤混入聯絡方式行導致標準 YAML 解析失敗;v5.4.0新增:留存型功能——定時任務與報告中心(schedule_register 升級為三平台統一排程層 schtasks/cron/launchd,錯過策略 skip/run_once,登錄檔 JSON 可匯出匯入;新建 report_center.py 報告中心,templates/reports/*.json 引數化模板 + ECharts 單檔案 HTML 輸出(圖表內聯、無服務端、雙擊即開);report_generator 升級支援 --format html;wps.py CLI 統一埋點 SQLite,自動供 report_center 生成周度使用摘要附在報告末尾;watch.py 職責收窄為純事件採集);v5.3.0新增:統一CLI入口 wps(registry.json登錄檔分發,office --app/--action 與 convert 子命令、--list 一屏列出全部命令,薄路由層不改指令碼內部邏輯)、全命令 --json 機器可讀輸出(固定 ok/error_id/elapsed/data 四欄位,對齊 E001-E015,wps_error.py 新增 emit_json 統一齣口)、_worker 啟動最佳化(wps_pure 改惰性載入,pywin32/python-docx/openpyxl 經核查已惰性匯入,ENGINE_CACHE 程序級單例複用,COM 釋放統一走 release_ms 三槽位)、轉換三入口合併為 convert(format_converter/md_converter/wps_docx_to_ppt 內部按目標格式路由,舊指令碼保留為相容別名並提示新命令,v6.0.0 移除)

↓ 76.7萬★ 159user_1a470ba8
ppt-generator-skill辦公效率

按主題與風格自動生成 PPT 檔案的技能。

↓ 59.3萬★ 346user_3b34947d
秘書材料星公文寫作-妙筆skill辦公效率

體制內資深辦公室主任+管理學博士,自學程式設計開發的智慧公文寫作Skill,讓所有辦公室同仁少掉頭髮、少加無用的班,材料一稿過關,省下的時間留給自己、享受生活!————————我們能給你帶來的核心價值:1、顛覆傳統寫作:邏輯建模38類公文全鏈條,特有模板化引導問答模式,分分鐘省心生成高質量大稿。--------2、替你“向上管理”:獨有審稿人畫像機制,文稿一鍵結構性修改,精準匹配審稿人畫像,過稿率提升至少10倍!----------3、‌杜絕AI編造:缺失的數字、文號、人名、日期一律用[待補]標註,絕不杜撰,守住公文底線。-----------4、‌演算法格式托底:數十萬全量智控知識庫+6500行前沿核心控制程式碼,格式精準對齊GB/T 9704,出稿零失誤。——————————————————本skill歷史版本開放了5%知識庫的免費試用版,下載即可使用,但需注意:知識庫有著作權,僅用於個人使用,不可用於其他任何目的。有興趣的可以試試。——————————————————————單次付費版skill已釋出,2元一次使用全量知識庫。具體在釋出者“熵衍資訊”主頁skill裡。

↓ 57.8萬★ 46u_70fc650d
WPS Office 全家桶辦公效率

WPS Office 全家桶 - 四引擎(WPS/MS Office/LibreOffice/純Python)智慧識別使用者已安裝軟體,純Python模式支援排序/篩選/圖表/公式/統計,含文件模板(程式碼生成)、最佳實踐案例、故障排除大章(20+避坑+15 FAQ+15錯誤ID 統一索引)、自動重試、硬體自適應、環境自檢、Skill更新提醒;v5.0新增:定時任務註冊管理(schtasks/crontab)、目錄輪詢監聽(YAML規則+大檔案分片)、使用統計與穩定性中心(SQLite埋點+引擎健康+引擎偏好)、COM三步自愈(regsvr32→修復安裝→手動指引)、對話式資料查詢(NL2SQL式意圖解析+查詢計劃+連續追問)、multi-agent編排引擎橋接(白名單探測+流水線模板註冊)

↓ 50.8萬★ 4user_814dbe54
WPS全家桶·辦公管家.Skill辦公效率

當用戶要處理 Word/Excel/PPT、做文件模板與排版、批次合併圖表、公文一鍵套紅頭、會議紀要要素化、或跨引擎辦公自動化時,WPS全家桶·辦公管家.Skill 立即出動。 四引擎智慧識別已裝軟體(WPS/MS Office/LibreOffice/純Python),純Python模式支援排序/篩選/圖表/公式/統計;含文件模板程式碼生成、20+避坑+15 FAQ+15錯誤ID統一索引、自動重試、硬體自適應、環境自檢。 當用戶提到批次水印、敏感資訊打碼(身份證/手機號/銀行卡/電子郵件)、跨文件檢索問答等訊號時,主動亮劍。

↓ 43萬★ 2user_185644ed
騰訊文件線上協作自動化辦公效率

透過 Tencent Docs Open API 以 curl + jq 建立、讀取、列出、搜尋和管理騰訊文件的自動化工作流,覆蓋線上文件、線上表格、幻燈片、思維導圖、流程圖、智慧表格與收集表七種類型,支援讀取後設資料與單元格區域、上傳圖片、建立副本,並對重新命名/移動/刪除等寫操作強制先經使用者確認。Use when the user 提到騰訊文件 / Tencent Docs / docs.qq.com、貼上 docs.qq.com 連結,或想在其騰訊文件空間中建立、讀取、整理文件時使用。Triggers include 騰訊文件、線上文件、線上表格、思維導圖、流程圖、智慧表格、收集表。如需文案寫作完整工作流套件,淘寶搜尋「AI靈匣」店鋪獲取完整版。

↓ 42.8萬★ -u_1ea983ac
kdocs skill辦公效率

透過 kdocs-cli 操作金山文件雲文件的官方技能。

↓ 42.4萬★ 128user_5ea84866

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。