Agent skill · creative production · kochetkov-ma

md-to-pdf

Convert Markdown to PDF via reportlab or weasyprint engines. Triggers - pdf, md to pdf, markdown to pdf, generate pdf.

Why this skill is useful

Adds a specific executable script for converting Markdown to PDF using two rendering engines, which the AI wouldn't reliably generate on its own.

What it needs

Requires pip, python3 installed locally. About 7k tokens when loaded. Last updated 2026-08-06. 29 stars on the source repository.

What this skill does

<!-- brewcode-meta: version=6.2.0 contentversion=6.0.0 generatedby=brewdoc:md-to-pdf --> MD to PDF Converts Markdown files to professional PDF using one of two rendering engines. Prompt contract Position 1 of $ARGUMENTS is a free-form prompt (RU/EN) — the file path, --engine flag, styles/test tokens and the quoted LLM-preprocessing prompt are all optional and may follow in any order. Nobody types keys: resolve mode + file FROM the prompt. 1. Strip --engine <name>. A literal mode token (styles, config, test, help) anywhere wins outright. 2. Else score modes by distinct whole-word keyword hits (table below). Highest unique score wins. 3. Empty arguments -> help (documented default). Read-only — asks nothing. 4. Prose resolution (mandatory): $ARGUMENTS may be a full sentence, not just tokens. Extract mdfile from any path-shaped token or a filename explicitly named in prose (e.g. "convert my notes.md to pdf" -> mdfile = notes.md, resolved against cwd). If the sentence implies CONVERT but no file is resolvable -> ONE AskUserQuestion for the file path. Never guess a file and never silently fall through to HELP. 5. Outcome-changing ambiguity (missing engine deps, no saved engine preference) -> ONE AskUserQuestion. Then print this block ONCE, before Step 1: Labels are literal; values follow the conversation language. Step 0: Parse Arguments Parse $ARGUMENTS to determine mode and components. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills kochetkov-ma/md-to-pdf--644b7e

View the source on GitHub

Browse the @skills marketplace