| name | create-pdf |
| description | Convert markdown files into a styled PDF. Use when creating a PDF from existing markdown files, combining markdown into a report, or converting .md to .pdf. |
| argument-hint | <file paths, glob pattern, or directory containing .md files> |
Overview
Combine one or more markdown files into a single styled PDF. Pipeline: Markdown → HTML → PDF via a headless browser.
This skill handles concatenation, page breaks, styling, and conversion. It does NOT generate content — use the research skill or other content-generation workflows first, then pipe the resulting markdown files into this skill.
Input
The user provides one of:
- Explicit file paths:
/path/to/file1.md /path/to/file2.md ...
- A glob pattern:
/path/to/report/*.md
- A directory:
/path/to/report/ (all .md files inside, sorted alphabetically)
If no output filename is specified, derive it from the directory name or first file: <name>.pdf in the same directory as the input files.
Workflow
Step 1: Resolve Input Files
Determine the list of markdown files and their order:
- If explicit paths: use as given
- If glob/directory: list and sort alphabetically (files prefixed with
00_ come first naturally)
- Confirm the file list and order with the user if more than 5 files
Step 2: Combine (only if multiple files)
For a single input file, skip this step and pass it directly to the tool in Step 3.