md-to-pdf
Skill145 starsChanged 7 months agoMITView on GitHub
Convert any markdown file to a clean PDF. Use when asked to make a PDF from a .md file, export a document, or convert markdown to PDF.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- TbusOS/sky-skillstheir own version, first seen Aug 25, 2026
- thestratcore/My-skillstheir own version, first seen Jul 10, 2026
- luochang212/skillstheir own version, first seen May 9, 2026
- loongyowl/my-skillstheir own version, first seen Apr 19, 2026
- Mspagnolo27248/claude-skilltheir own version, first seen Mar 29, 2026
- allenyan513/open-investor-skillstheir own version, first seen Mar 15, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- huangserva/servasyy_skills★ 167same name
- madebyecho/agent-skills★ 8same name
- allenyan513/open-investor-skills★ 6same name
- TbusOS/sky-skills★ 2same name
- luochang212/skills★ 1same name
- loongyowl/my-skills★ 0same name
- Mspagnolo27248/claude-skill★ 0same name
- thestratcore/My-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- beautiful-htmlSkill
- boris-planSkill
- brandkitSkill
- industrial-brutalist-uiSkill
- business-caseSkill
- changelog-writerSkill
- claude-code-deckSkill
- competitor-researchSkill
- content-repurposerSkill
- customer-personaSkill
- deploy-checklistSkill
- dockerfile-generatorSkill
- email-writerSkill
- exec-summarySkill
- feature-prioritizerSkill
- frontend-slidesSkill
- gpt-tasteSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- karpathy-reviewSkill
- launch-checklistSkill
- linkedin-postSkill
- market-sizingSkill
- meeting-analyzerSkill
- minimalist-uiSkill
- newsletter-ideatorSkill
- okr-writerSkill
- full-output-enforcementSkill
- prd-generatorSkill
- proposal-writerSkill
- redesign-existing-projectsSkill
- retro-facilitatorSkill
- seo-optimizerSkill
- sharpenSkill
- skill-evaluatorSkill
- slides-builderSkill
- high-end-visual-designSkill
- sprint-plannerSkill
- stakeholder-updateSkill
- stitch-design-tasteSkill
- design-taste-frontendSkill
- design-taste-frontend-v1Skill
- test-writerSkill
- trend-spotterSkill
- ui-ux-pro-maxSkill
- user-story-writerSkill
- verify-workSkill
- voice-dnaSkill
- youtube-deepdiveSkill
- youtube-researcherSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
When the user asks to convert a markdown file to PDF, follow these steps exactly:
- Very specific: line 10
Ask the user for the path to the .md file if not already provided.
- Distinctive: line 14
Run this command (replace INPUT and OUTPUT paths):
- Distinctive: line 52
Delete the intermediate HTML file:
- Very specific: line 68
If pandoc is not found: tell the user to run brew install pandoc
- Very specific: line 69
If Chrome is not at the expected path: check with ls /Applications/ | grep -i chrome and adjust the path
- Very specific: line 70
If the PDF is 0 bytes: the file:// URL likely has unencoded spaces — encode them as %20
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When the user asks to convert a markdown file to PDF, follow these steps exactly:
Step 1 — Confirm the input file
Ask the user for the path to the .md file if not already provided. Confirm the output PDF path (default: same folder, same name, .pdf extension).
Step 2 — Convert markdown to styled HTML
Run this command (replace INPUT and OUTPUT paths):
pandoc "INPUT.md" \
-o "OUTPUT.html" \
--standalone \
--metadata title="Document" \
--css=/dev/stdin <<'EOF'
body { font-family: "Helvetica Neue", Arial, sans-serif; max-width: 800px; margin: 40px auto; padding: 0 40px; font-size: 13px; line-height: 1.7; color: #1a1a1a; }
h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
h2 { font-size: 16px; font-weight: 700; margin-top: 32px; border-bottom: 1px solid #e0e0e0; padding-bottom: 6px; }
strong { font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 12px; }
th { background: #f5f5f5; padding: 8px; text-align: left; border: 1px solid #ddd; }
td { padding: 8px; border: 1px solid #ddd; }
hr { border: none; border-top: 1px solid #e0e0e0; margin: 24px 0; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }
EOFStep 3 — Print HTML to PDF using Chrome
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--headless \
--disable-gpu \
--no-sandbox \
--print-to-pdf="OUTPUT.pdf" \
--print-to-pdf-no-header \
--no-pdf-header-footer \
"file://OUTPUT.html"Note: encode spaces in the file path as %20 in the file:// URL.
Step 4 — Clean up and confirm
Delete the intermediate HTML file:
rm "OUTPUT.html"Tell the user the PDF is ready and give them the full path.
Requirements
pandocmust be installed (which pandocto check)- Google Chrome must be at
/Applications/Google Chrome.app/(standard Mac install) - Works on macOS only in this configuration
Error handling
- If
pandocis not found: tell the user to runbrew install pandoc - If Chrome is not at the expected path: check with
ls /Applications/ | grep -i chromeand adjust the path - If the PDF is 0 bytes: the
file://URL likely has unencoded spaces — encode them as%20
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

