Resources
1Install
npx skillscat add mmcmedia/openclaw-agents/skills-pdf-master Install via the SkillsCat registry.
SKILL.md
PDF Master Skill
Generate beautifully styled PDF documents from Markdown, text, or structured data.
Available Tools
1. md-to-pdf (Primary - Best for styled reports)
# Basic usage
md-to-pdf input.md
# With custom CSS styling
md-to-pdf input.md --stylesheet styles.css
# Custom output path
md-to-pdf input.md --dest output.pdf2. Pandoc (Flexible - multiple formats)
# Markdown to PDF (requires LaTeX for direct PDF)
pandoc input.md -o output.pdf
# Markdown to styled HTML (then use browser for PDF)
pandoc input.md -o output.html --standalone --css=styles.css
# With table of contents
pandoc input.md -o output.pdf --toc3. Browser PDF (Best visual control)
For maximum visual fidelity, create HTML and use browser:
1. Create styled HTML file
2. browser open profile=clawd targetUrl=file:///path/to/file.html
3. browser screenshot targetId=<id> to verify
4. browser pdf targetId=<id>Templates
Professional Report Template
Location: /Users/mmcassistant/clawd/skills/pdf-master/templates/report.css
Brief Template
Location: /Users/mmcassistant/clawd/skills/pdf-master/templates/brief.css
Workflow for Beautiful PDFs
Option A: Quick Markdown โ PDF
md-to-pdf document.md --stylesheet /Users/mmcassistant/clawd/skills/pdf-master/templates/report.cssOption B: Maximum Control (HTML โ PDF)
- Convert markdown to styled HTML:
pandoc document.md -o document.html --standalone --css=/path/to/styles.css - Open in browser, verify with screenshot
- Generate PDF from browser
Option C: Data โ Report โ PDF
- Create report content in markdown
- Apply template styling
- Generate PDF
Style Guidelines
- Use headers for clear hierarchy (H1 for title, H2 for sections)
- Include executive summary at top
- Use tables for structured data
- Add color-coded status indicators (๐ข ๐ก ๐ด)
- Keep margins generous for readability
- Include page breaks between major sections
Common Use Cases
- QA Reports - Testing results with screenshots
- Business Briefs - Executive summaries, recommendations
- Product Roadmaps - Strategic planning documents
- Analytics Reports - Data summaries with visualizations
- Meeting Notes - Formatted meeting documentation
CRITICAL: Verification Process
ALWAYS verify before sending:
- Generate PDF
- Open/screenshot to verify content is correct
- Only then send to recipient
This prevents sending wrong files (see TOOLS.md lesson learned).