markdown-to-pdf
Convert a markdown file to PDF using mistune + reportlab. Use when the user wants to convert a .md file to PDF, or when another skill needs to produce a PDF from markdown output.
pinned to #cc30858updated 2 weeks ago
Ask your AI client: “install skills/markdown-to-pdf”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/markdown-to-pdfmetahub onboarded this repo on the author's behalf.
If you own github.com/staskh/trading_skills on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
288
Last commit
2 weeks ago
Latest release
published
- #ai-trading
- #claude
- #claude-skills
- #mcp-server
- #option-trading
- #options-trading
About this skill
Pulled from SKILL.md at publish time.
Converts a markdown file to a professionally formatted PDF. Pure Python — no system tools required.
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.cc30858· 2 weeks ago
Kind-specific
31Skill: SKILL.md present
found at .claude/skills/markdown-to-pdf/SKILL.md · frontmatter source: SKILL.md
Skill: body content present
187 words · 1,421 chars · 5 sections · 3 code blocks
Skill: triggers declaredwarn
No `trigger` phrases in SKILL.md frontmatter
Add `trigger:` lines so Claude knows when to activate this skill — e.g. `when building MCP servers` or `for diagram creation`.
Skill: allowed-tools scope
no allowed-tools restriction (Claude may use anything)
Release history
1- releasecurrentcc30858warn2 weeks ago
Contents
Converts a markdown file to a professionally formatted PDF. Pure Python — no system tools required.
Dependencies
Requires two Python packages (already in pyproject.toml):
mistune>=3.2
reportlab>=4.0
Install with: uv sync (or pip install mistune reportlab)
Instructions
uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py <input.md> [output.pdf]
input.md— path to the markdown file (required)output.pdf— output path (optional; defaults to same directory and basename as input)
Output
The script returns JSON with:
success—trueorfalseinput— resolved absolute path of the input fileoutput— resolved absolute path of the generated PDFerror— error message ifsuccessisfalsegenerated_at— NY timezone timestampdata_delay— always"real-time"
After conversion, tell the user the output PDF path.
Examples
# Convert sandbox/report.md → sandbox/report.pdf (default output)
uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py sandbox/report.md
# Explicit output path
uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py sandbox/report.md sandbox/AAPL_Report_2026-05-20_1430.pdf
Supported Markdown
- Headings (H1–H3)
- Paragraphs, bold, italic
- Tables (pipe syntax)
- Fenced code blocks
- Unordered and ordered lists
Reviews
No reviews yet. Be the first.
Related
Planning With Files
Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.
Frontend Slides
Create beautiful slides on the web using Claude's frontend skills
Gpt Researcher
An autonomous agent that conducts deep research on any data using any LLM providers
mh install skills/markdown-to-pdf