视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
pandoc【文档与办公】Convert documents between formats (Markdown, DOCX, HTML, PDF, RST, EPUB, LaTeX) via the `pandoc` CLI. Use to transform a document from one format to another.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: pandoc
description: Convert documents between formats (Markdown, DOCX, HTML, PDF, RST, EPUB, LaTeX) via the pandoc CLI. Use to transform a document from one format to another.
version: 1.0.1
requires_tools:
Convert documents between formats with the universal
pandoc CLI. Input/output formats are inferred from file
extensions; override with -f <from> / -t <to> when needed.
PDF output requires a LaTeX engine (or --pdf-engine). Markdown/HTML/DOCX/EPUB
conversions need only pandoc itself.
Verify with one solo step:
[{ "tool": "os.shell.run", "args": { "cmd": "pandoc", "args": ["--version"] } }]
Outcome map:
exit 0 + version → ready, proceed.command not found: pandoc → enter Setup playbook → "pandoc missing".pdflatex not found → enter Setup playbook → "PDF engine missing".Reply (solo reply step):
"
pandocis not installed. I can install it:brew install pandoc. Install it?"
On yes:
[{ "tool": "os.shell.run", "args": { "cmd": "brew", "args": ["install", "pandoc"] } }]
On Linux: apt-get install pandoc.
PDF output needs a TeX engine. Offer the lightweight option:
"PDF export needs a TeX engine. I can install:
brew install --cask basictex(or the lightweightbrew install tectonic). Which do you prefer?"
tectonic is simplest (pandoc in.md -o out.pdf --pdf-engine=tectonic).
os.fs.read_document.pdf skill.xlsx skill.All examples invoke os.shell.run with cmd: "pandoc". Outputs go to the
session working directory; the approval gate surfaces each write.
| Goal | args |
|---|---|
| Markdown → DOCX | ["notes.md", "-o", "notes.docx"] |
| Markdown → PDF | ["notes.md", "-o", "notes.pdf", "--pdf-engine=tectonic"] |
| Markdown → standalone HTML | ["notes.md", "-s", "-o", "notes.html"] |
| DOCX → Markdown | ["report.docx", "-o", "report.md"] |
| HTML → Markdown | ["page.html", "-f", "html", "-t", "gfm", "-o", "page.md"] |
| Many MD → one EPUB | ["ch1.md", "ch2.md", "-o", "book.epub", "--toc"] |
| With a table of contents | append ["--toc", "--toc-depth=2"] |
-o <output> path and report it to the user.--pdf-engine=tectonic if installed (fewer dependencies).os.fs.list) before claiming success.