| name | export-pdf |
| description | Export markdown file(s) to styled dark-theme PDF. Use for requests like "export to PDF", "convert markdown to PDF", "generate PDF", "make a PDF from markdown", or "export md".
|
| allowed-tools | Bash(node:*) Read Glob |
Export the specified markdown file(s) to a clean, dark-themed PDF.
Instructions
-
Resolve the path(s) from $ARGUMENTS. If it is a glob pattern, use the Glob tool to expand it. If no argument is provided, ask which file to export.
-
Resolve the plugin root:
- If
ATHENA_PLUGIN_ROOT is set, use it.
- Otherwise derive it as the directory two levels above the current
SKILL.md file.
-
For each markdown file, run the generation script:
node "<plugin-root>/scripts/generate-pdf.mjs" "<absolute-path-to-md-file>"
The script will:
- Auto-derive the document label from the filename (e.g.,
self-correction-report.md → "Self Correction Report")
- Output the PDF in the same directory as the source file
- Apply the dark-theme stylesheet with clean typography and spacing
-
Report the result by listing each PDF created and its path.
-
If the script reports an error about puppeteer-core not being installed, run:
cd "<plugin-root>" && npm install puppeteer-core
Then retry the export.