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.
- 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). - Scope: the prompt may be a full sentence, not just tokens. Take
md_filefrom 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. - Ask: a sentence that implies CONVERT with no resolvable file -> ONE
AskUserQuestionfor the file path; outcome-changing ambiguity (missing engine deps, no saved engine preference) -> ONEAskUserQuestion.
Print once, before Step 1 (labels literal, values in the conversation language):