markdown-to-pdf
>-
供给资产档案
编程与开发 Agent
代码审查、仓库分析、测试、CI、GitHub、DevOps 与开发工作流 Skill。
场景
编程 Agent
我需要一个能理解仓库、修改代码并审查 Pull Request 的编程 Agent。
适配 Agent
Claude Code + Browser agents + CLI
适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。
安装
就绪
npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
维护状态
新鲜
今天有推送
风险
需审查
Permission surface may require sandboxing
GitHub 质量
47
63/100 质量 · 68/100 信任
覆盖标签
审查说明
Permission surface may require sandboxing · The SKILL.md description is multi-line and may be truncated in some parsers; consider a single-line description for better compatibility.
Agent 采用评分卡
一眼查看信任、审计与安装准备度
这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。
质量
有潜力有用的候选项,但采用前应与替代方案比较。
信任
仅限沙盒有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。
审计
需审查对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。
OpenAgentSkill 信任评分 v5
安装前需人工审查
仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。
Stars
47 个 GitHub Stars
仓库活跃度
47 个 Star,0 个 Fork
维护状态
今天有推送
许可证
MIT
安装
npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
安装安全性
标准软件包或运行时安装路径
权限范围
shell or command execution, filesystem or document access
Agent 结果
暂未有 Agent 结果数据
文档
Usable metadata, review docs
风险摘要
生产前审查
- The SKILL.md description is multi-line and may be truncated in some parsers; consider a single-line description for better compatibility.
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: shell or command execution, filesystem or document access
安装准备度
安装路径可用
- 安装路径可用
- 仓库证据可用
- 已声明许可证
- 暂无 Agent 验证结果证据
Agent 可读元数据
这个 Skill 的机器可读决策数据。
使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。
适用任务
- Document processing 工作流
- Claude Code 团队
- builders willing to evaluate younger projects
- Read uploaded files
适用 Agent
安装决策
- 命令
- npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
- 策略
- 审查
- 人工审查
- 是
信任与风险
- 信任
- 60/100
- 审计
- 75/100
- 风险级别
- 需审查
结果闭环
- 端点
- /api/agent/outcome
- 事件 ID
- resolve
- 结果
- 5
安装命令
npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf不适用场景
- 需要厂商支持 SLA 的团队
- production agents without a repository review
- Low GitHub adoption signal
- The SKILL.md description is multi-line and may be truncated in some parsers; consider a single-line description for better compatibility.
- 暂未有 OpenAgentSkill 使用反馈数据
Agent 安全 v2
43/100 · 避免自动安装
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
高
Shell 或命令执行
Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。
中
Browser automation
Skill may drive a browser or interact with web pages.
中
网络访问
Skill 可能访问远程页面、API、仓库或外部服务。
中
文件系统访问
Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。
- 高风险权限提示:Shell 或命令执行
- Permission surface may require sandboxing
安装目标
在你的 Agent 工作流中安装此 Skill
通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install kennethkhoocy-markdown-to-pdfAgent 解析计划
让 Agent 在安装前验证匹配度。
Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。
打开 JSON
/api/agent/resolve?task=Use%20markdown-to-pdf%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve 文本
/api/agent/resolve?task=Use%20markdown-to-pdf%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
安装交接
/api/skills/kennethkhoocy-markdown-to-pdf/install
Agent 应检查
- 从 Resolve API 检查任务匹配与替代方案。
- 检查审计评分、信任评分和安全策略警告。
- 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。
复制提示词
Task: Use markdown-to-pdf in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20markdown-to-pdf%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/kennethkhoocy-markdown-to-pdf/install
Install command: npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent 交接
把安装路径交给 Agent,而不是再给一个目录页。
通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。
安装交接
/api/skills/kennethkhoocy-markdown-to-pdf/install
LLM 文本格式
/api/skills/kennethkhoocy-markdown-to-pdf/install?format=text
寻找替代方案
/api/skills/search?q=markdown-to-pdf&limit=3
Agent 提示词
Use markdown-to-pdf for this task. Review https://www.openagentskill.com/api/skills/kennethkhoocy-markdown-to-pdf/install, then install with: npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdfRegistry 元数据
用于自动选择 Skill 的 Agent 可读档案。
本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。
Manifest
/api/registry/manifest/kennethkhoocy-markdown-to-pdf
LLM 文本
/api/registry/manifest/kennethkhoocy-markdown-to-pdf?format=text
安装别名
/api/registry/install/kennethkhoocy-markdown-to-pdf
推荐
/api/registry/recommend?task=Use%20markdown-to-pdf%20in%20an%20agent%20workflow&limit=3
适配 Agent
Document processing
平台
Claude Code, Browser agents
Agent 决策面板
Fallback candidate for Document processing
先用此 Skill 做原型验证,并保留备选方案。
栈中角色
备选候选
主要匹配
Document processing
信任标签
先做原型验证
安装路径
命令已就绪
适用场景
- Document processing 工作流
- Claude Code 团队
- builders willing to evaluate younger projects
证据
- 仓库近期活跃
- 已提供安装命令或 GitHub 仓库
- 63/100 质量档案
先审查
- Low GitHub adoption signal
- The SKILL.md description is multi-line and may be truncated in some parsers; consider a single-line description for better compatibility.
- 暂未有 OpenAgentSkill 使用反馈数据
实施路径
- 1在沙盒 Agent 中安装它,并端到端完成一次Document processing任务。
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
信任档案
仅限沙盒
有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。
GitHub 采用度
检查47 个 GitHub Stars
Star/Fork 活跃度
检查47 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息
近期维护
通过今天有推送
许可证清晰度
通过MIT
积极信号
- AI 审查已通过
- 安装路径可用
- 仓库证据可用
- 近期维护的仓库
- 安装命令未发现明显高风险模式
- 结果闭环已就绪,但需要首次真实 Agent 运行
安装前审查
- The SKILL.md description is multi-line and may be truncated in some parsers; consider a single-line description for better compatibility.
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: shell or command execution, filesystem or document access
- GitHub adoption: 47 GitHub stars
- Stars/forks activity: 47 stars, 0 forks; issue activity unavailable in current metadata
- Permission surface: shell or command execution, filesystem or document access
- 暂未有真实 Agent 结果报告
- 无人值守安装前需要人工审查
建议操作
仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。
质量档案
有潜力 适用于 Agent 工作流的候选
有用的候选项,但采用前应与替代方案比较。
工作流匹配
在这些场景使用此 Skill
Parse messy files
Document processing
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Operate web apps
Browser automation
I need my agent to control a browser, fill forms, and verify web app workflows.
工作流匹配
加入完整工作流
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Scrape, clean, and reuse web data
Web data pipeline
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Operate and verify web apps
Browser QA agent
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
替代方案短名单
安装前对比
可能适合该任务的相近 Skill。
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
MoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
Cua
Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows).
概览
--- name: markdown-to-pdf description: >- Convert Markdown (.md) files to a polished PDF with ALL images preserved and scaled to the page. Use whenever the user asks to "save this markdown as a PDF", "convert README.md to pdf", "export the .md as a pdf", "turn these notes/docs into a PDF", or wants a PDF deliverable of any GitHub-flavored Markdown document (README, design doc, report, notes) — especially when it contains images or diagrams (remote or local), tables, code blocks, or a linked table of contents. Pipeline: pandoc (GFM → standalone HTML with embedded resources) → headless Chrome print-to-pdf with a GitHub-like print stylesheet → pypdf verification that every referenced image is embedded. Do NOT use for .tex → PDF (use a LaTeX toolchain) or for .docx work (use word-docx / tex2docx). metadata: author: Claude Code date: 2026-06-11 version: 1.1.0 ---
# Markdown → PDF (pandoc + headless Chrome)
## Problem
Converting Markdown to PDF through pandoc's default LaTeX route breaks on real-world GitHub-flavored documents: Unicode box-drawing characters in code blocks (`├──`) crash pdflatex, wide GFM tables overflow the page, remote images need manual download, and the output looks nothing like the rendered Markdown the author reviewed. Naive HTML routes drop images or paste them at native resolution so they spill off the page.
## Context / Trigger Conditions
- User asks to save/convert/export a `.md` file as PDF. - The document carries images (hosted PNGs, local figures), GFM tables, fenced code blocks, blockquotes, or `#`-anchor TOC links. - Requirements like "all images must be preserved" or "scaled appropriately".
## Solution
Render the Markdown to HTML exactly as a browser would, then print it.
**One command (preferred):**
``` python ~/.claude/skills/markdown-to-pdf/scripts/md2pdf.py <input.md> [-o out.pdf] ```
The script: (1) runs pandoc `-f gfm -t html5 --standalone --embed-resources` with `assets/print.css`, executed from the Markdown's own directory so relative image paths resolve, and with remote images fetched and inlined as data URIs; (2) prints with headless Chrome (Edge/Chromium fallback) using `--no-pdf-header-footer --virtual-time-budget=30000`; (3) verifies with pypdf that the embedded raster-image count is at least the number of image references in the source, printing each image's page and dimensions. Exit code 2 flags a missing-image warning.
**Manual equivalent** (what the script automates):
```bash pandoc input.md -f gfm -t html5 -s --embed-resources -c print.css \ --metadata pagetitle="input" -o /tmp/input.html "/c/Program Files/Google/Chrome/Application/chrome.exe" --headless \ --disable-gpu --no-pdf-header-footer --virtual-time-budget=30000 \ --print-to-pdf="out.pdf" "file:///tmp/input.html" ```
**Why this works for images.** The stylesheet constrains every image with `max-width: 100%; max-height: 240mm; width/height: auto; break-inside: avoid`, so each image scales to the printable width, a very tall diagram still fits a single page, aspect ratio is preserved, and no image is split across a page break. `--virtual-time-budget` makes Chrome wait for image loading before printing; `--embed-resources` makes the HTML self-contained so nothing depends on the network at print time.
## Verification
1. The script's pypdf pass: page count, plus one line per embedded image with its page number and pixel dimensions; compare against the source's image count. 2. Visual spot-check: the Read tool renders PDF pages as images — read the pages the verifier listed and confirm each diagram is legible and fits the page.
## Example
`style-emulation/README.md` (~800 lines: 4 hosted PNG diagrams up to 1410×2998 px, two request/command tables, a box-drawing module map, a linked TOC) → 19-page, 1.35 MB PDF; all 4 images embedded on pages 6/7/9/10, each scaled to one page; tables bordered with zebra striping; code blocks styled; TOC links live.
## Notes
- **Page-break trade-off:** `break-inside: avoid` keeps images whole, so an image that does not fit the space left on a page pushes to the next page, leaving white space behind. Acceptable for reports; mention it to the user. - **TOC anchors:** pandoc's GFM reader auto-generates GitHub-style heading ids, so existing `(#section-name)` links keep working in the PDF. - **SVG images** may be drawn as vector art rather than raster XObjects; the pypdf count then under-reports and the warning is a false positive — check visually. - **Same image referenced twice** can be embedded once; the `embedded < referenced` check is a heuristic, not an exact equality test. - **Wide code blocks** are handled by `white-space: pre-wrap` (wrap, never clip); long table cells wrap inside bordered cells at 8.5pt. - **Paper/margins** live in `assets/print.css` (`@page { size: A4; margin: 16mm 15mm; }`); pass `--css <file>` for a per-job override (e.g. letter, landscape). - **`--no-embed`** reverts to link-only HTML with Chrome fetching images at print time — useful if pandoc cannot reach a host that Chrome can. - If headless Chrome ever hangs on a remote-image page, raise `--budget`. - **Locked targets (cloud sync / open viewers):** Chrome can fail to overwrite a PDF in a Dropbox/OneDrive-synced folder — or one open in Acrobat — while still exiting 0, silently leaving the stale file in place (the byte-identical output size is the tell). The script therefore prints to its temp dir and moves the result over the target with retries; if the target stays locked (e.g. the user has the old PDF open), it saves to `<name>.new.pdf` and says so. The pypdf verification step is what catches this class of failure — keep it on.
## Related skills
- `pdf` — probing, extracting, manipulating existing PDFs (and reportlab generation from scratch). Markdown sources route here instead. - `tex2docx`, `manuscript-editing-template-latex` — LaTeX/docx conversion pipelines; use those for `.tex`/`.docx`, not this skill.
## References
- pandoc manual, `--embed-resources` / GFM reader: https://pandoc.org/MANUAL.html - Chrome headless print-to-pdf flags: https://developer.chrome.com/docs/chromium/headless
技术详情
- 版本
- 1.0.0
- 许可证
- MIT
- 最近更新
- 2026年8月24日
- 发布时间
- 2026年8月24日
决策摘要
备选候选
仓库近期活跃
Agent 验证证据
Agent 验证证据
来自解析、审查、安装和一次小范围运行后的结果报告。
- 成功率
- —
- 近期失败
- —
- 结果
- 0
- 输出质量
- —
- 失败
- 0
- 不相关
- 0
- 安装次数
- 0
- 风险拦截
- 0
- 需要配置
- 0
- 生产环境
- 0
暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。
增长闭环
分享工具包
为 markdown-to-pdf 准备的场景化草稿,可手动发布到 X。
A practical pick for source-backed research: markdown-to-pdf: >- 47 stars https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf?ref=x
可选:带安装命令的回复
Listing + install path for markdown-to-pdf: https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf?ref=x Install: npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
收录来源
Registry 收录
此列表来自公开来源,维护者认领获批前不会标记为官方。
- 收录方
- OpenAgentSkill 社区索引
归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。
认领此 Skill所有者认领
认领此 Skill 页面
这条 Registry 收录 列表归属于 kennethkhoocy,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。
创作者外链工具包
将证据徽章加入你的 README
在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。
[](https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf)
[](https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf)
[](https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf/audit)
[](https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf)作者
kennethkhoocy
@kennethkhoocy
健康信号
- GitHub Stars
- 47
- 质量评分
- 35/100
- 最近 GitHub 推送
- 2026年8月24日
- 框架提示
- 未知
- OpenAgentSkill 浏览量
- 0
- 复制安装命令
- 0
- 跳转点击
- 0
社区信号
告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。
信任与安全
仅限沙盒
- GitHub 采用度47 个 GitHub Stars检查
- Star/Fork 活跃度47 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息检查
- 近期维护今天有推送通过
- 许可证清晰度MIT通过
- README/SKILL.md 完整度公开元数据需要更完整的 README/SKILL.md 上下文信息
- 依赖与运行时风险command execution surface, network or browser surface信息
相关 Skill
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
37.0K StarsMoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
88.5K StarsCua
Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows).
21.4K Stars