← ClaudeAtlas

md-to-pdflisted

Convert Markdown to PDF via reportlab or weasyprint engines. Triggers - pdf, md to pdf, markdown to pdf, generate pdf.
kochetkov-ma/claude-brewcode · ★ 29 · Data & Documents · score 69
Install: claude install-skill kochetkov-ma/claude-brewcode
# Markdown to PDF Convert a local Markdown file with `scripts/md_to_pdf.py`. Check dependencies with `scripts/check_deps.sh`, choose a bundled style from `styles/`, and write only to the requested output path. Store project preferences in `.codex/md-to-pdf.config.json` only after confirmation. Render and inspect the result before reporting completion. ## Complete native workflow Follow every phase below. When a phase delegates work, use Codex collaboration with only `task_name` and `message`; treat each "Codex delegation brief" block as role and message content, not executable syntax. Use `request_user_input` for the documented user gates. Resolve `<skill-directory>`, `<plugin-root>`, `<project-root>`, and `<arguments>` before running commands. # MD to PDF Converts Markdown files to professional PDF using one of two rendering engines. ## Step 0: Parse Arguments Parse `<arguments>` to determine mode and components. | Component | Required | Description | |-----------|:--------:|-------------| | `md_file` | per mode | Path to `.md` file | | `--engine` | No | `reportlab` or `weasyprint` (overrides saved config) | | `custom_prompt` | No | Last argument in double quotes = LLM preprocessing instructions | **Mode detection rules:** | Condition | Mode | |-----------|------| | Empty or `help` | HELP | | `styles` or `config` | STYLES | | `test` | TEST | | Path to `.md` file + quoted string at end | CONVERT+PROMPT | | Path to `.md` file (no quoted string) | CONVERT | Extract