Skip to content
Agentmart
Submit a tool

document-export

将 Markdown 报告稳定导出为 PDF 并登记到产物区;用户要求 PDF、文档导出、可打印报告或把 Markdown 转为 PDF 时使用。

Skill by gmnoah

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/gmnoah-document-export

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

将 Markdown 报告稳定导出为 PDF 并登记到产物区;用户要求 PDF、文档导出、可打印报告或把 Markdown 转为 PDF 时使用。

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/document-export

What's inside

Skill name
document-export
Description
将 Markdown 报告稳定导出为 PDF 并登记到产物区;用户要求 PDF、文档导出、可打印报告或把 Markdown 转为 PDF 时使用。
License
MIT
Instructions
26 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# 文档导出

使用 DeskForge 内置渲染器生成可验证的 PDF,不通过 Shell 试探系统转换器。

## 工作流

1. 确认 Markdown 主文档已经落盘并完成回读验证。
2. 检查文档引用的本地图片是否位于当前授权范围。远程图片不会在导出时联网下载。
3. 调用 `capability_load({ toolIds: ["document_render"] })` 加载渲染工具。
4. 调用 `document_render({ inputPath, outputPath?, format: "pdf", title? })`。工具会执行路径校验、图片嵌入、PDF Header 和页数检查,并自动登记最终产物。
5. 使用返回的 `sha256`、`size`、`pages` 和产物引用作为完成证据。

## 约束

- 不为文档转换安装 Homebrew、Python 包或全局命令。
- 不依次尝试 LibreOffice、WeasyPrint、cupsfilter、FPDF、Playwright 等替代方案。
- 不把 HTML 中的脚本或远程内容带入渲染器。
- 渲染失败最多重试一次;仍失败时返回具体错误和 Markdown 原产物,不进行无边界探索。

## 完成标准

- PDF 具有有效 `%PDF-` Header、至少一页且不超过 50 MB。
- 更新已有 PDF 时已通过 hash 防止 stale write,并保存修改前快照。
- PDF 已作为 `final_output` 出现在产物区。

From gmnoah/DeskForge, MIT.

More from gmnoah/DeskForge

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 6, 2026 (23 days ago)
Last release
Oct 7, 2026 (21 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from gmnoah

Cite this page

document-export skill. Agent Mart. https://agentmart.dev/skills/gmnoah-document-export (last updated 2026-10-24)