视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
apple-pdf【文档与办公】Default PDF generator. Render markdown, notes, or reports as professionally formatted PDFs with SF typography and clean layout. Use this whenever the user asks to "generate a PDF", "create a PDF", "make a PDF", or "convert to PDF" from any text or markdown source.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Convert markdown documents into beautifully formatted PDFs with Apple's design language — SF font stack, 8px-based spacing, 1.8 line height, and restrained gray palette.
Trigger phrases: "generate pdf", "create pdf", "make pdf", "convert to pdf", "生成PDF", "apple pdf", "apple style", "render pdf", "styled pdf", "export as pdf", "pretty pdf", "格式化PDF", "苹果风格"
Use this skill when the user wants to generate, create, or convert text/markdown to PDF. This is the DEFAULT pdf generation skill. This includes:
Note: For manipulating existing PDFs (extract text, merge, split, fill forms), use the pdf skill instead.
Run the renderer script with uv run:
uv run ~/.claude/skills/apple-pdf/apple_pdf.py <input.md> [options]
| Option | Default | Description |
|---|---|---|
--output, -o | <input_stem>.pdf | Output PDF path |
--theme | light | Theme mode: light or dark |
--font-size | medium | Font size preset: small (14px), medium (16px), large (18px) |
--watermark-text | (none) | Add document watermark with this text |
--watermark-style | stamp | Watermark style: stamp, pattern, diamond |
--watermark-opacity | 0.15 | Watermark opacity (0.1 to 0.5) |
--avatar-url | (none) | URL for image avatar watermark (small circle above images) |
--page-size | A4 | Page size: A4, Letter, Legal |
--margin | 20mm | Page margins (CSS value) |
--title | (auto from H1) | Document title for PDF metadata |
--html-only | false | Output styled HTML instead of PDF |
--no-page-breaks | false | Disable automatic page breaks before H1 |
# Basic — markdown to Apple-styled PDF
uv run ~/.claude/skills/apple-pdf/apple_pdf.py doc.md
# Dark mode, large font
uv run ~/.claude/skills/apple-pdf/apple_pdf.py doc.md --theme dark --font-size large
# With confidential watermark
uv run ~/.claude/skills/apple-pdf/apple_pdf.py doc.md --watermark-text "CONFIDENTIAL" --watermark-style pattern
# Custom output path
uv run ~/.claude/skills/apple-pdf/apple_pdf.py doc.md -o ~/Downloads/styled-report.pdf
# HTML output (for clipboard/WeChat)
uv run ~/.claude/skills/apple-pdf/apple_pdf.py doc.md --html-only -o styled.html
# Batch: render all .md files in a directory
for f in docs/*.md; do uv run ~/.claude/skills/apple-pdf/apple_pdf.py "$f"; done
The renderer faithfully ports the Apple design language:
markdown library with fenced_code, tables, codehilite, toc, footnotes extensions