Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.
Scanned 9/6/2026
Install to Claude Code
npx -y skills add joshukraine/dotfiles --skill md2pdf --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Md2pdf?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/joshukraine-md2pdf)More formats (shields.io, HTML) on the badges page.
---
name: md2pdf
description: Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.
argument-hint: "[file.md]"
---
# Markdown to PDF
Convert Markdown files to PDF with GitHub-style formatting using the `md2pdf` tool.
## Command Options
- `$ARGUMENTS`: File paths or glob patterns to convert (e.g., `docs/guide.md`, `docs/*.md`)
- `-o FILE`: Custom output path (only valid with a single input file)
## Your task
1. **Determine input files**:
- If `$ARGUMENTS` are provided, use them as the file paths
- If no arguments are provided, ask the user which files to convert
2. **Run the conversion**: Execute `md2pdf` with the specified files
3. **Report results**: Confirm which PDFs were generated
## Tool Details
The `md2pdf` tool uses pandoc + weasyprint with GitHub-style CSS. The CSS and script live in dotfiles (`~/dotfiles/bin/.local/bin/`). The `MD2PDF_CSS` environment variable can override the default CSS path.
## Example Usage
```bash
# Convert a single file
/md2pdf docs/guide.md
# Convert multiple files with a glob
/md2pdf docs/qa-handoffs/qa-guide-*.md
# Convert with a custom output name
/md2pdf -o custom-name.pdf docs/guide.md
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.