agentsclimarketplace

Html to pdf slide deck

Skill bokuwalily/claude-code-skills/skills/html-to-pdf-slide-deck

75 battle-tested Claude Code skills from shipping 20+ apps solo — macOS, Next.js, Vercel, iOS/Expo, Cloudflare, Phaser, local AI media & more

Install
npx -y skills add bokuwalily/claude-code-skills --skill html-to-pdf-slide-deck

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

HTMLから16:9スライド型PDF(提案資料・ポートフォリオ・ピッチデック)を生成するとき。「PDFで提案資料」「スライドにして」「めくって見せる資料」等で発火。file://がPlaywright/Chromeでブロックされる罠の回避込み。

SKILL.md

2.9 KB, as published. Nobody here has run it

Procedure

  1. スライドHTMLを書く(1ファイル完結)。各スライド=1ページ:
    @media print {
      @page { size: 1280px 720px; margin: 0; }   /* 96dpiで16:9。px指定が効く */
      html, body { background: #fff; }
      .slide { margin: 0; page-break-after: always; }
      .slide:last-child { page-break-after: auto; }
    }
    .slide { width: 1280px; height: 720px; padding: 70px 88px; overflow: hidden;
             display: flex; flex-direction: column; }
    @media screen { .slide { margin: 24px auto; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); } }
    
  2. ローカルサーバで配信file://はPlaywright/Chrome headlessでブロックされる):
    cd <dir> && (python3 -m http.server 8777 >/dev/null 2>&1 &) ; sleep 1
    curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8777/deck.html   # 200を確認
    
  3. headless ChromeでPDF化
    CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
    "$CHROME" --headless=new --disable-gpu --no-pdf-header-footer \
      --print-to-pdf="出力.pdf" "http://127.0.0.1:8777/deck.html"
    
  4. 必ず自己検証Read ツールでPDFを pages:"1-8" 指定して全ページ目視。はみ出し・見切れ・フッター被りを確認。
  5. 終わったら pkill -f "http.server 8777" でサーバ停止。

Pitfalls

  • file:// は使えない:Playwright MCPは Access to "file:" protocol is blocked、Chrome headlessも不安定。必ずhttp配信。
  • 縦オーバーフローが最大の敵.slideoverflow:hiddenなので超過分は無音で見切れる。グリッドが縦に伸びる系(カード2段・統計4枚)は要注意。実レンダリングで毎回確認。統計は横1列、説明文は短く。
  • --no-pdf-header-footer必須:付けないと日付・URLが各ページに焼き込まれる。
  • フォント:Google Fonts(明朝=Shippori Mincho+ゴシック=Zen Kaku Gothic New 等)はネット接続時のみ。オフライン提示があるならローカル埋め込みを検討。
  • スクショ検証時のreveal罠:IntersectionObserverのopacity:0初期値はhtml.jsでゲートし、JS無効/印刷時は表示させる(でないとPDF/フルページスクショで内容が消える)。

Verification

  • Read でPDF全ページを画像表示し、(1)見切れゼロ (2)フッターと本文が被らない (3)数字・固有名詞が実データ通り、を目視確認してから完了宣言する。

Gives 0 of the 12 instructions most pdf office docs skills give

Counted across 635 of the 690 authors here whose files we hold, read 2026-08-06

  • extract text using pdfplumberin 92 of 635, across 25 files
  • create PDFs using reportlabin 83 of 635, across 16 files
  • read FORMS.md to fill out PDF formsin 80 of 635, across 13 files
  • OCR scanned PDFs using pytesseractin 77 of 635, across 10 files
  • merge or split PDFs using qpdfin 70 of 635, across 3 files
  • use Excel formulas instead of hardcoded calculated valuesin 68 of 635, across 12 files
  • unpack edit xml and repack existing documentsin 63 of 635, across 8 files
  • document sources for hardcoded valuesin 61 of 635, across 9 files
  • write minimal python code without unnecessary commentsin 59 of 635, across 7 files
  • run the recalculation script after adding or modifying formulasin 58 of 635, across 6 files
  • fix all identified formula errors and recalculatein 58 of 635, across 6 files
  • format years as text stringsin 57 of 635, across 5 files

Said here and by no other author read

  • set page size to 1280px by 720px with zero margin
  • serve HTML via local HTTP server
  • confirm the server returns HTTP 200
  • pass the flag to disable PDF headers and footers
  • stop the local server when finished

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.