md-to-pdf

Installation
SKILL.md

MD to PDF

Converts Markdown to PDF with the reportlab or weasyprint engine.

Prompt contract

$ARGUMENTS is one free-form RU/EN prompt; the file path, the --engine <name> flag, the styles/test tokens and the quoted LLM-preprocessing prompt may sit anywhere in it.

  1. Mode: a literal mode token (styles, config, test, help) wins outright; else the most distinct whole-word keyword hits (table below). Empty -> help (documented default, read-only, asks nothing).
  2. Scope: the prompt may be a full sentence, not just tokens. Take md_file from any path-shaped token or a filename explicitly named in prose (e.g. "convert my notes.md to pdf" -> md_file = notes.md, resolved against cwd). Never guess a file and never silently fall through to HELP.
  3. Ask: a sentence that implies CONVERT with no resolvable file -> ONE AskUserQuestion for the file path; outcome-changing ambiguity (missing engine deps, no saved engine preference) -> ONE AskUserQuestion.

Print once, before Step 1 (labels literal, values in the conversation language):

Installs
6
GitHub Stars
41
First Seen
Aug 14, 2026