staskh/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.
npx skills add https://github.com/staskh/trading_skills --skill markdown-to-pdf
Converts a markdown file to a professionally formatted PDF. Pure Python — no system tools required.
Requires two Python packages (already in pyproject.toml):
mistune>=3.2
reportlab>=4.0
Install with: uv sync (or pip install mistune reportlab)
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)The script returns JSON with:
success — true or falseinput — resolved absolute path of the input fileoutput — resolved absolute path of the generated PDFerror — error message if success is falsegenerated_at — NY timezone timestampdata_delay — always "real-time"After conversion, tell the user the output PDF path.
# 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
Take staskh/markdown-to-pdf from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.