用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshukraine/dotfiles --skill md2pdf命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | md2pdf |
| description | Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool. |
| argument-hint | [file.md] |
Convert Markdown files to PDF with GitHub-style formatting using the md2pdf tool.
$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)Determine input files:
$ARGUMENTS are provided, use them as the file pathsRun the conversion: Execute md2pdf with the specified files
Report results: Confirm which PDFs were generated
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.
# 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