markdown-to-pdf
>-
Supply asset profile
Coding and developer agents
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
Maintenance
fresh
Pushed today
Risk
Needs review
Permission surface may require sandboxing
GitHub quality
47
63/100 Quality · 68/100 Trust
Coverage tags
Review notes
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 adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Human review before install
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
47 GitHub stars
Repo activity
47 stars, 0 forks
Maintenance
Pushed today
License
MIT
Install
npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
Install safety
standard package or runtime install path
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Review before production
- 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
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- Document processing workflows
- Claude Code teams
- builders willing to evaluate younger projects
- Read uploaded files
Suited agents
Install decision
- Command
- npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdf
- Policy
- review
- Human review
- yes
Trust and risk
- Trust
- 60/100
- Audit
- 75/100
- Risk level
- Needs review
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Install command
npx skills add kennethkhoocy/applied-micro-skills --skill markdown-to-pdfDo not use when
- teams that need a vendor-supported 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.
- No OpenAgentSkill engagement data yet
Agent safety v2
43/100 · Avoid automatic install
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Shell or command execution
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Browser automation
Skill may drive a browser or interact with web pages.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
- High-risk permission hints: Shell or command execution
- Permission surface may require sandboxing
Install targets
Install this skill in your agent workflow
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this 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 resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20markdown-to-pdf%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20markdown-to-pdf%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/kennethkhoocy-markdown-to-pdf/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
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 handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/kennethkhoocy-markdown-to-pdf/install
LLM text format
/api/skills/kennethkhoocy-markdown-to-pdf/install?format=text
Find alternatives
/api/skills/search?q=markdown-to-pdf&limit=3
Agent prompt
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 metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/kennethkhoocy-markdown-to-pdf
LLM text
/api/registry/manifest/kennethkhoocy-markdown-to-pdf?format=text
Install alias
/api/registry/install/kennethkhoocy-markdown-to-pdf
Recommend
/api/registry/recommend?task=Use%20markdown-to-pdf%20in%20an%20agent%20workflow&limit=3
Agent fit
Document processing
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
Needs review · 75/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Fallback candidate for Document processing
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Document processing
Trust label
Prototype first
Install path
Command ready
Use when
- Document processing workflows
- Claude Code teams
- builders willing to evaluate younger projects
Evidence
- recent repository activity
- install command or GitHub repo available
- 63/100 quality profile
review first
- 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.
- No OpenAgentSkill engagement data yet
Implementation path
- 1Install it in a sandbox agent and run one Document processing task end to end.
- 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.
Trust profile
Sandbox only
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
CHECK47 GitHub stars
Stars/forks activity
CHECK47 stars, 0 forks; issue activity unavailable in current metadata
Recent maintenance
PASSPushed today
License clarity
PASSMIT
Good signals
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- 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
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Promising candidate for agent workflows
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Use this skill in these scenarios
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.
Workflow fit
Add it to a complete workflow
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.
Alternative shortlist
Compare before you install
Similar skills that may fit this task.
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).
Overview
--- 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
Technical details
- Version
- 1.0.0
- License
- MIT
- Last updated
- Aug 24, 2026
- Published
- Aug 24, 2026
Decision snapshot
Fallback candidate
recent repository activity
Audit
Install review
Install and adoption review
- Security
- 74/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for markdown-to-pdf, ready for a manual X post.
A practical pick for source-backed research: markdown-to-pdf: >- 47 stars https://www.openagentskill.com/skills/kennethkhoocy-markdown-to-pdf?ref=x
Optional reply with install command
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
Listing source
Registry indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- kennethkhoocy
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Registry indexed listing is attributed to kennethkhoocy but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](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)Author
kennethkhoocy
@kennethkhoocy
Tags
Platform fit
Health signals
- GitHub stars
- 47
- Quality score
- 35/100
- Last GitHub push
- Aug 24, 2026
- Framework hints
- Unknown
- OpenAgentSkill views
- 0
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Sandbox only
- GitHub adoption47 GitHub starsCHECK
- Stars/forks activity47 stars, 0 forks; issue activity unavailable in current metadataCHECK
- Recent maintenancePushed todayPASS
- License clarityMITPASS
- README/SKILL.md completenessPublic metadata needs stronger README/SKILL.md contextINFO
- Dependency/runtime riskcommand execution surface, network or browser surfaceINFO
Related skills
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