Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计通过

awesome-deck-pdfawesome deck PDF 搜索

Agent Skill

awesome-deck-pdf 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,387

周安装

144

GitHub Stars

1

下载量

1,187
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:awesome-deck-pdf(awesome deck PDF 搜索)
来源仓库:https://github.com/karinecsy-collab/awesome-deck-pdf
安装命令:
openclaw skills install awesome-deck-pdf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install awesome-deck-pdf

简介

将内容转换为美观 HTML 幻灯片并导出 PDF。

  • 兼容 .pptx 模板与多种媒体格式嵌入。
  • 适用于演示文稿快速生成需求。awesome-deck-pdf 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 支持自定义样式与页面布局调整。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 输出质量取决于输入素材的结构清晰度。

SKILL.md

name
awesome-deck-pdf
description
Turn any design style into a polished HTML slide deck and export it as a high-quality PDF. Triggers when users say things like "make me a nice PPT", "create slides based on X style", "build a deck", "generate presentation". Supports four input types: (1) Upload a .pptx template file — extract its colors, fonts and layout via python-pptx; (2) Share an image or screenshot of a design; (3) Provide a website URL to clone its visual style; (4) Describe a style in words (e.g. "Apple style", "Notion minimal", "Linear dark"). Output: pixel-sharp 1440×900 slides exported to PDF via Puppeteer, production-quality design.

HTML → PDF Slide Workflow

‼️ STOP — Read Before Doing Anything

Before writing a single line of code or HTML, you MUST complete these two confirmation steps in order. Do not proceed until you receive explicit user approval for each.

Confirmation 1 of 2: Design Style

Analyze the user's input (image / URL / keyword / .pptx), then show a design spec summary and ask:

Here's the design style I extracted from [source]: - Background: #000 dark / Accent: #2997FF blue - Font: SF Pro Display, oversized heading, minimal whitespace - Style: dark Keynote, glow effects Does this match what you want? Any changes before I start?

If the user provided a website URL and fetching fails (Fake IP, login wall, etc.):

  • Say exactly why it failed
  • Ask: "Could you send a few screenshots of the site? I'll analyze the design from those."
  • Do NOT assume or default to any style

Wait for explicit approval → then move to Confirmation 2.

Confirmation 2 of 2: Slide Content

Ask the user if they have existing materials:

Do you have reference materials for the content? (existing PPT, doc, data, bullet points — anything works) If yes, send them over. If not, I'll draft an outline for you to review.

Once you receive a reply, prepare a numbered list: slide title + one-line summary per slide. Show it and ask:

Here's the planned structure — does this look right? Anything to add, remove, or change?

Wait for explicit approval → only then begin generating HTML.


If either confirmation is skipped, the workflow is broken. Start over from Confirmation 1.


export_pdf.js auto-detects Chrome in this order:

  1. Puppeteer bundled Chromium (npm install puppeteer)
  2. System Chrome/Chromium (macOS: /Applications/Google Chrome.app, Linux: /usr/bin/chromium)
  3. If neither found → prints a clear error with install instructions, exits

If npm install puppeteer fails (sandbox/network restriction):

# Option A: skip Chromium download, install separately
npm install puppeteer --ignore-scripts
npx puppeteer browsers install chrome

# Option B: use puppeteer-core (no bundled Chrome download)
npm install puppeteer-core
# script will auto-find system Chrome

# Option C: install system Chrome first, then run script
# macOS: brew install --cask google-chrome
# Linux: sudo apt install chromium-browser
npm install puppeteer-core

Do NOT fall back to wkhtmltopdf, pdfkit, weasyprint, or any other tool.

For full installation instructions across OpenClaw, Claude Code, Codex, and Linux/macOS setup, see references/install.md.


Workflow Overview

User input (image / website URL / style keyword / .pptx file)
    ↓ Step 1: Extract design spec → ⚠️ Confirm with user
    ↓ Step 2: Outline slide content → ⚠️ Confirm with user
    ↓ Step 3: Generate HTML → 💾 Save slides.html to disk
    ↓ Step 4: Run export_pdf.js → 💾 Output slides.pdf
    
Both slides.html and slides.pdf must exist as final outputs.

⚠️ Two Mandatory Confirmation Gates (never skip)

Gate 1: Design Style

After analyzing the input, show the extracted design spec summary and ask for confirmation:

Here's what I extracted from [source]: - Background: #000000 black · Accent: #2997FF apple blue - Font: SF Pro Display, oversized centered headline - Style: dark Keynote, glow effects Does this match the style you want? Any adjustments?

⚠️ If website fetch fails (e.g. Fake IP / login required):

  • Tell the user clearly why it failed
  • Ask for screenshots: "Could you send a few screenshots of the site? I'll analyze the design from those."
  • Never assume or default to any style — wait for user confirmation before proceeding

Website analysis priority:

  1. Puppeteer screenshot → visual analysis (most accurate)
  2. web_fetch page content → CSS/font extraction
  3. Ask user to send screenshots

Gate 2: Slide Content

First ask if the user has existing materials:

Do you have any reference materials for the content? e.g. existing PPT, doc, report, or a list of key points? Send them over and I'll structure the slides — otherwise I'll draft an outline for you to review.

After receiving a reply, prepare a one-line summary per slide and confirm before generating HTML.


Step 1: Extract Design Spec → DESIGN.md

Supported inputs:

InputApproach
📂 .pptx templateParse with python-pptx: extract colors, fonts, backgrounds, placeholder layouts (most accurate)
📎 Image / screenshotVisual analysis: colors, font style, spacing, component patterns
🌐 Website URLPuppeteer screenshot + getComputedStyle font/color extraction
💬 Style keywordUse brand knowledge: Apple → SF Pro, Notion → Inter, Linear → Inter, Google → Google Sans

Extracting from .pptx:

from pptx import Presentation
prs = Presentation("template.pptx")
slide = prs.slides[0]
for shape in slide.shapes:
    if shape.has_text_frame:
        for para in shape.text_frame.paragraphs:
            for run in para.runs:
                print(run.font.name, run.font.size, run.font.color.rgb, run.font.bold)

Fill extracted values into DESIGN.md (see references/DESIGN_TEMPLATE.md):

  • Colors: primary bg, secondary bg, text colors, accent, border → CSS variables
  • Fonts: heading / body / decorative number — name, weight, size range per level
  • Layout: padding, max-width, grid columns, gap, border-radius
  • Components: card, badge/label, button, divider, background decoration
  • Section list: CSS class + content theme + dark/light tone per slide

Font extraction by input type:

InputMethod
.pptxrun.font.name per text run
WebsitegetComputedStyle(el).fontFamily via Puppeteer
Image / screenshotVisual analysis — describe closest match (e.g. "geometric sans, similar to Helvetica")
Style keywordBrand knowledge mapping

Fonts go into DESIGN.md as CSS variables. Append Chinese fallbacks at the end (never hardcode them as primary):

--font-heading: 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
--font-body:    'SF Pro Text',    'PingFang SC', 'Helvetica Neue', sans-serif;

Step 2: Generate HTML

⚠️ Save the HTML to a .html file first. Do not merge HTML generation and PDF export into one step. The HTML file is a required intermediate artifact — it must exist on disk before running export_pdf.js.

Generate a single .html file and write it to disk (e.g. slides.html):

  • Single file, all CSS inlined, zero external dependencies
  • Each slide = one <section class="...">, fixed width 1440px, height fits content
  • Fonts from DESIGN.md — Chinese fallback appended, never hardcoded as primary
  • @media print: page-break-after: always on every section

Font consistency check after saving:

grep -n "font-family" slides.html

Only proceed to Step 3 once the .html file is saved and verified.


Step 3 & 4: Export PDF via Puppeteer

⚠️ Only use export_pdf.js (Puppeteer screenshot-and-compose). Do NOT use any of these alternatives — they all produce broken output: - page.pdf() directly → A4 portrait, white space below every slide - wkhtmltopdf → outdated WebKit engine, broken flexbox/grid/modern CSS - Any other HTML-to-PDF CLI (Prince, WeasyPrint, pdfkit, etc.) → layout incorrect The screenshot-and-compose approach is the only method that faithfully preserves the rendered layout.

Environment matters

Claude Code / Codex / OpenClaw / local agent (can run shell commands):

  • Read scripts/export_pdf.js, copy it to the project directory, run it:
node export_pdf.js              # reads slides.html → slides.pdf (auto-detects <section> elements)
node export_pdf.js my-deck.html # specify a different file

Claude.ai chat / any chat-only interface (cannot run shell commands):

  • Your role ends at Step 3: generate the HTML and provide it to the user
  • Tell the user: "Here's your slides.html. To export the PDF, copy scripts/export_pdf.js from the skill folder to the same directory and run node export_pdf.js."
  • Do NOT attempt to run Puppeteer, install npm packages, or use any PDF tool in chat
node export_pdf.js              # reads slides.html → slides.pdf (auto-detects all <section> elements)
node export_pdf.js my-deck.html # specify a different HTML file

Auto-detection: The script automatically finds all <section> elements in DOM order — no need to manually set SELECTORS. Only configure SELECTORS manually if you need a custom slide order or to merge multiple elements into one slide:

// Optional manual override — leave as [] for auto-detect
const SELECTORS = [
  '.cover',
  '.section-2',
  ['.chart', '.stats'],  // array = merge into one slide
];

See references/export_pdf_guide.md for details.


Troubleshooting

IssueFix
PDF has white space / broken layoutDo not use page.pdf(), wkhtmltopdf, or any CLI PDF tool. Run export_pdf.js only — it uses Puppeteer screenshot-and-compose to preserve layout exactly
Chinese text renders as Song/MingAdd 'PingFang SC' to font stack (available on macOS by default)
Inconsistent fonts across slidesRun grep -n "font-family" slides.html and normalize
Wrong page count in PDFCheck that SELECTORS covers all sections
Detached Frame errorUse the reusable overlayPage pattern — never use newPage()/close() in a loop
Website URL fails to fetchLikely Fake IP proxy — use Puppeteer screenshot instead, or ask user for screenshots

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.95%
按下载量换算1,115

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills