joecp17/llm-dot-files/md-to-pdf
Claude Code and agent skill by joecp17/llm-dot-files
- community
Checking that the SKILL.md file is still in the repository.
Convert Markdown files to PDF with pandoc and WeasyPrint. Use when the user wants to export a `.md` note, document, README, or Obsidian page as a PDF, preserve readable styling, or produce a PDF copy of Markdown content without manually rebuilding the conversion pipeline.
Install
npx vskill@latest install joecp17/llm-dot-files/md-to-pdfSKILL.md
The same SKILL.md was published earlier as joecp17/llm-dot-files/md-to-pdf.
Markdown To PDF
Convert one Markdown file into a PDF and save it to ~/Downloads.
Keep the workflow deterministic by using the bundled shell script instead of rewriting the conversion steps inline.
Workflow
- Validate that the user provided exactly one Markdown file path.
- Expand
~in the input path and confirm the file exists. - Confirm
pandocandweasyprintare installed. - Run
scripts/md-to-pdf.sh "<markdown-file>". - Report the final PDF path from the script output.
Behavior
- Write the PDF to
~/Downloads/<input-basename>.pdf. - If that file already exists, append a timestamp suffix before
.pdf. - Use embedded CSS for a clean document-style layout.
- Resolve standard Markdown image paths and Obsidian
![[image.png]]embeds relative to the source note. - Keep the operation single-file and local. Do not upload content anywhere.
Prerequisites
pandocweasyprint
If either command is missing, stop and tell the user exactly which install command to run:
brew install pandocpipx install weasyprint
Execution
Run:
Use the exact user-supplied path when possible. Preserve spaces in paths by quoting the argument.
Output
After conversion, tell the user the exact PDF path and whether a timestamped filename was used to avoid overwriting an existing file.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcodex/skills/md-to-pdf/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joecp17/llm-dot-files/md-to-pdf)