一键导入
document-exporter
Convert Markdown documents into PDF, DOCX, PPTX, or XLSX formats. Routes Office formats to OfficeCLI, PDF via Chrome.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert Markdown documents into PDF, DOCX, PPTX, or XLSX formats. Routes Office formats to OfficeCLI, PDF via Chrome.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | document-exporter |
| description | Convert Markdown documents into PDF, DOCX, PPTX, or XLSX formats. Routes Office formats to OfficeCLI, PDF via Chrome. |
Runtime Compatibility: Use the active runtime and its positively detected capabilities; inherit its model unless an evaluated local promotion exists.
Use this skill when the user requests a PDF, Word Doc, PowerPoint, Excel export, or "Export" of a markdown file.
| User Says | Action |
|---|---|
| "PDF", "print" | Use existing HTML/PDF pipeline (Steps 1-4 below) |
| "Word", "DOCX", "document" | Delegate to office-cli skill |
| "PowerPoint", "PPTX", "deck", "presentation", "slides" | Delegate to office-cli skill |
| "Excel", "XLSX", "spreadsheet", "tracker" | Delegate to office-cli skill |
| "export" (no format specified) | Ask user; default PPTX for presentations, DOCX for docs, PDF for reports |
Ensure you have the absolute path to the .md file.
Run the md_to_pdf.py script located in scripts/.
python3 .agent/skills/document-exporter/scripts/md_to_pdf.py [INPUT_MD] [OUTPUT_HTML]
Use Headless Chrome to convert the HTML to PDF.
# macOS
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless --disable-gpu --print-to-pdf="[OUTPUT_PDF]" "[OUTPUT_HTML]"
# Windows
& "C:\Program Files\Google\Chrome\Application\chrome.exe" --headless --disable-gpu --print-to-pdf="[OUTPUT_PDF]" "[OUTPUT_HTML]"
For DOCX, PPTX, or XLSX exports, load and follow the office-cli skill:
.agent/skills/office-cli/SKILL.md
The office-cli skill has complete workflows for:
# User wants a PowerPoint from a markdown outline:
# 1. Parse the markdown headings as slide titles
# 2. Parse bullet points as slide content
# 3. Use officecli batch mode for performance
officecli create output.pptx
officecli batch output.pptx --commands '[
{"command":"add","parent":"/","type":"slide","props":{"title":"Slide Title from H1"}},
{"command":"add","parent":"/slide[1]","type":"shape","props":{"text":"Content from bullets","x":"2cm","y":"5cm","w":"22cm","h":"12cm","font":"Arial","size":"18"}}
]' --json
Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop recommendations. Use when evaluating experiment results, checking if a test reached significance, interpreting split test data, or deciding whether to ship a variant.
Local-first dual-pillar agentic memory inspired by TencentDB-Agent-Memory.
Assess whether your product work is AI-first or AI-shaped. Use when evaluating AI maturity and choosing the next team capability to build.
Full autonomous execution from idea to working code
Track high-priority leadership requests.
Conducts deep-dive research to create a strategic dossier on a target company.