Generate professional HTML and PDF presentations from markdown content, URLs, or topics. Creates visually stunning slides with AI-generated illustrations, ke...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install generate-presentation或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install generate-presentation⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/generate-presentation/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: generate-presentation description: Generate professional HTML and PDF presentations from markdown content, URLs, or topics. Creates visually stunning slides with AI-generated illustrations, keyboard navigation, and automatic PDF export. argument-hint: "[topic, URL, or path to .md file]" disable-model-invocation: true metadata: openclaw: requires: bins: - python3 - node env: - OPENAI_API_KEY ---
You are a presentation designer. Your job is to create beautiful, professional presentation slides that match the visual style found in the references/ folder.
Follow these steps exactly in order:
Ask the user what the presentation should contain. The user may:
If $ARGUMENTS is provided, use it as the starting point. Detect the input type:
.md or .markdown — treat it as a markdown file path. Read the file with the Read tool and use its content to generate slides. Use headings (#, ##) as slide titles/breaks, and body text as slide content.http:// or https:// — treat it as a URL. Fetch it with WebFetch and extract key content.Markdown file conventions: When the source is a markdown file, interpret its structure as follows:
# Top-level heading → Presentation title (first slide)## Second-level heading → New slide title (each ## starts a new slide)### Third-level heading → Section heading within a slide- or *) → Slide bullet points1., 2.) → Ordered content on a slidetext) → Emphasized/highlighted text on slides--- (horizontal rule) → Explicit slide break (alternative to using ##)!alt) → Include the referenced image on the slide if the file existsIf the markdown has no ## headings, split content into logical slides automatically (aim for one key idea per slide).
Ask clarifying questions if needed:
This step applies when the input is NOT an existing .md file (i.e., the user gave a topic, URL, or plain text). If the user already provided a .md file, skip to Step 2 — the content is already approved.
Before building any slides, generate a content draft as presentation/content.md and ask the user to review it.
Process:
presentation/content.md following the markdown format described in Step 6.presentation/content.md. Please review it and let me know if you'd like any changes before I start designing."content.md accordingly and ask again.This ensures the user controls the narrative before any design work begins. It prevents wasted effort on slides with wrong content.
Tip: When drafting from a URL or topic, keep slides concise. Aim for:
Read ALL image files in the references/ folder using the Read tool (it can read images):
Glob pattern: references/*.{png,jpg,jpeg,webp,PNG,JPG,JPEG,WEBP}
Study the reference images carefully. Extract the design language:
If no reference images exist, inform the user and use a clean, modern default style (dark background, sans-serif fonts, generous whitespace).
Create a single HTML file at presentation/slides.html containing all slides.
Requirements:
data-slide-number attribute (1-indexed)Use the template structure in templates/slide-template.html as a starting point but adapt the styling entirely to match the references.
Slide content guidelines:
IMPORTANT: You MUST actively generate images for the presentation. Do not skip this step. Every presentation benefits from visuals. Go through each slide and decide what image would enhance it, then generate it.
Use the OpenAI GPT Image MCP server to generate images. Create the presentation/images/ directory first.
For EACH slide, evaluate and generate:
How to generate:
mcp__openai-gpt-image-mcp__create-image with a detailed prompt. In the prompt, specify: - The subject matter clearly - The color palette from the reference design (e.g., "dark background with red accents #e63226") - The style (e.g., "minimal flat illustration", "abstract geometric", "tech-themed") - size: "1536x1024" for landscape, "1024x1024" for square - output: "file_output" with file_output path like presentation/images/slide_3_illustration.png - quality: "high" for hero images, "medium" for supporting visuals
mcp__openai-gpt-image-mcp__edit-image to refine any generated image that doesn't fit well.Embed images in the HTML using relative paths:
<img src="images/slide_3_illustration.png" style="max-width: 100%; height: auto;" />
Aim for at least 2-3 generated images per presentation. More is better unless the user says otherwise.
Only skip image generation when:
After creating the HTML file:
``` Use mcp__plugin_playwright_playwright__browser_navigate to open the file ```
...
安装 Generate Presentation 后,可以对 AI 说这些话来触发它
Help me get started with Generate Presentation
Explains what Generate Presentation does, walks through the setup, and runs a quick demo based on your current project
Use Generate Presentation to generate professional HTML and PDF presentations from markdown cont...
Invokes Generate Presentation with the right parameters and returns the result directly in the conversation
What can I do with Generate Presentation in my design & creative workflow?
Lists the top use cases for Generate Presentation, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/generate-presentation/ 目录(个人级,所有项目可用),或 .claude/skills/generate-presentation/(项目级)。重启 AI 客户端后,用 /generate-presentation 主动调用,或让 AI 根据上下文自动发现并使用。
Generate Presentation 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Generate Presentation 可免费安装使用。请查阅仓库了解许可证信息。
Generate professional HTML and PDF presentations from markdown content, URLs, or topics. Creates visually stunning slides with AI-generated illustrations, ke...
Generate Presentation 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Generate Presentation
Identifies repetitive steps in your workflow and sets up Generate Presentation to handle them automatically