Use when the user wants to export conversation content to a professionally styled PDF for sharing
Export summaries, research, or any content from the conversation to a professionally styled PDF for sharing.
$ARGUMENTS - Optional: filename (without .pdf extension) or "last" to export the last assistant messageYou are exporting content from the current conversation to a shareable PDF document.
Determine what content the user wants to export:
Clean up the content for PDF export:
Generate appropriate names:
ai-orchestration-tools-2026)
-2026-02-05)Write the content to a temporary markdown file using a Bash heredoc (do NOT use the Write tool — it may be sandboxed to the workspace directory and reject /tmp paths), then convert to PDF:
# Write content to temp file — MUST use Bash heredoc, not the Write tool
cat << 'CONTENT_EOF' > /tmp/export_content.md
{markdown content here}
CONTENT_EOF
# Convert to PDF using the colocated script
python ~/.claude/skills/pdf/scripts/md_to_pdf.py \
--input /tmp/export_content.md \
--output ~/Downloads/{filename}.pdf \
--title "{title}"
Important: Always use the Bash tool with cat << 'CONTENT_EOF' > /tmp/... for the temp file. The Write tool is sandboxed in some environments (e.g., Conductor workspaces) and will refuse paths outside the workspace.
After creating the PDF:
open ~/Downloads/{filename}.pdfecho ~/Downloads/{filename}.pdf | pbcopyPDFs are saved to ~/Downloads/ by default for easy access and sharing.
/pdf - Export the last summary/research to PDF/pdf last - Same as above/pdf ai-tools-research - Export with custom filenamemistune + fpdf2 (pip install mistune fpdf2)scripts/md_to_pdf.py (colocated in this skill directory)