使用 2slides API 生成由人工智能驱动的演示文稿。从文本内容创建幻灯片、匹配参考图像样式或将文档总结为演示文稿。当用户请求“创建演示文稿”、“制作幻灯片”、“生成幻灯片”、“从此内容/文档/图像创建幻灯片”或
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install 2slides-skills或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install 2slides-skills⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/2slides-skills/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: 2slides description: AI-powered presentation generation using 2slides API. Create slides from text content, match reference image styles, or summarize documents into presentations. Use when users request to "create a presentation", "make slides", "generate a deck", "create slides from this content/document/image", or any presentation creation task. Supports theme selection, multiple languages, and both synchronous and asynchronous generation modes. ---
Generate professional presentations using the 2slides AI API. Supports content-based generation, style matching from reference images, and document summarization.
Users must have a 2slides API key and credits:
- New users receive 500 free credits (~50 Fast PPT pages)
- Pay-as-you-go, no subscriptions - Credits never expire - Up to 20% off on larger packages
SLIDES_2SLIDES_API_KEYexport SLIDES_2SLIDES_API_KEY="your_api_key_here"
Credit Costs:
See references/pricing.md for detailed pricing information.
Choose the appropriate approach based on the user's request:
User Request
│
├─ "Create slides from this content/text"
│ └─> Use Content-Based Generation (Section 1)
│
├─ "Create slides like this image"
│ └─> Use Reference Image Generation (Section 2)
│
├─ "Create custom designed slides" or "Create PDF slides"
│ └─> Use Custom PDF Generation (Section 3)
│
├─ "Create slides from this document"
│ └─> Use Document Summarization (Section 4)
│
├─ "Add voice narration" or "Generate audio for slides"
│ └─> Use Voice Narration (Section 5)
│
├─ "Download slides as images" or "Export slides and voices"
│ └─> Use Download Export (Section 6)
│
└─ "Search for themes" or "What themes are available?"
└─> Use Theme Search (Section 7)
---
Generate slides from user-provided text content.
Step 1: Prepare Content
Structure the content clearly for best results:
Title: [Main Topic]
Section 1: [Subtopic]
- Key point 1
- Key point 2
- Key point 3
Section 2: [Subtopic]
- Key point 1
- Key point 2
Step 2: Choose Theme (Required)
Search for an appropriate theme (themeId is required):
python scripts/search_themes.py --query "business"
python scripts/search_themes.py --query "professional"
python scripts/search_themes.py --query "creative"
Pick a theme ID from the results.
Step 3: Generate Slides
Use the generate_slides.py script with the theme ID:
# Basic generation (theme ID required)
python scripts/generate_slides.py --content "Your content here" --theme-id "theme123"
# In different language
python scripts/generate_slides.py --content "Your content" --theme-id "theme123" --language "Spanish"
# Async mode for longer presentations
python scripts/generate_slides.py --content "Your content" --theme-id "theme123" --mode async
Step 4: Handle Results
Sync mode response:
{
"slideUrl": "https://2slides.com/slides/abc123",
"pdfUrl": "https://2slides.com/slides/abc123/download",
"status": "completed"
}
Provide both URLs to the user:
slideUrl: Interactive online slidespdfUrl: Downloadable PDF versionAsync mode response:
{
"jobId": "job123",
"status": "pending"
}
Poll for results:
python scripts/get_job_status.py --job-id "job123"
---
Generate slides that match the style of a reference image.
Step 1: Verify Image URL
Ensure the reference image is:
Step 2: Generate Slides
Use the generate_slides.py script with --reference-image:
python scripts/generate_slides.py \
--content "Your presentation content" \
--reference-image "https://example.com/template.jpg" \
--language "Auto"
Optional parameters:
--aspect-ratio "16:9" # width:height format (e.g., "16:9", "4:3")
--resolution "2K" # "1K", "2K" (default), or "4K"
--page 5 # Number of slides (0 for auto-detection, max 100)
--content-detail "concise" # "concise" (brief) or "standard" (detailed)
Note: This uses Nano Banana Pro mode with credit costs:
Step 3: Handle Results
This mode always runs synchronously and returns:
{
"slideUrl": "https://2slides.com/workspace?jobId=...",
"pdfUrl": "https://...pdf...",
"status": "completed",
"message": "Successfully generated N slides",
"slidePageCount": N
}
Provide both URLs to the user:
slideUrl: View slides in 2slides workspacepdfUrl: Direct PDF download (expires in 1 hour)Processing time: ~30 seconds per page (30-60 seconds typical for 1-2 pages)
---
Generate custom-designed slides from text without needing a reference image.
Step 1: Prepare Content
Structure the content clearly:
Title: [Main Topic]
Section 1: [Subtopic]
- Key point 1
- Key point 2
Section 2: [Subtopic]
- Key point 1
- Key point 2
Step 2: Generate Slides
Use the create_pdf_slides.py script:
# Basic generation
python scripts/create_pdf_slides.py --content "Your content here"
# With design specifications
python scripts/create_pdf_slides.py \
--content "Sales Report Q4 2025" \
--design-spec "modern minimalist, blue color scheme"
# High resolution with auto page detection
python scripts/create_pdf_slides.py \
--content "Marketing Plan" \
--resolution "4K" \
--page 0 \
--content-detail "standard"
Optional parameters:
--design-spec "text" # Design specifications (e.g., "corporate professional")
--aspect-ratio "16:9" # width:height format
--resolution "2K" # "1K", "2K" (default), or "4K"
--page 5 # Number of slides (0 for auto-detection, max 100)
--content-detail "concise" # "concise" (brief) or "standard" (detailed)
--language "Auto" # Language for content
Step 3: Handle Results
Returns same structure as create-like-this:
{
"slideUrl": "https://2slides.com/workspace?jobId=...",
"pdfUrl": "https://...pdf...",
"status": "completed",
"message": "Successfully generated N slides",
"slidePageCount": N
}
Notes:
---
Generate slides from document content.
Step 1: Read Document
...
安装 幻灯片/PPT生成和语音旁白 后,可以对 AI 说这些话来触发它
Help me get started with Slides/PPT generation and voice narration
Explains what Slides/PPT generation and voice narration does, walks through the setup, and runs a quick demo based on your current project
Use Slides/PPT generation and voice narration to aI-powered presentation generation using 2slides API
Invokes Slides/PPT generation and voice narration with the right parameters and returns the result directly in the conversation
What can I do with Slides/PPT generation and voice narration in my documents & notes workflow?
Lists the top use cases for Slides/PPT generation and voice narration, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/2slides-skills/ 目录(个人级,所有项目可用),或 .claude/skills/2slides-skills/(项目级)。重启 AI 客户端后,用 /2slides-skills 主动调用,或让 AI 根据上下文自动发现并使用。
幻灯片/PPT生成和语音旁白 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
幻灯片/PPT生成和语音旁白 可免费安装使用。请查阅仓库了解许可证信息。
使用 2slides API 生成由人工智能驱动的演示文稿。从文本内容创建幻灯片、匹配参考图像样式或将文档总结为演示文稿。当用户请求“创建演示文稿”、“制作幻灯片”、“生成幻灯片”、“从此内容/文档/图像创建幻灯片”或
幻灯片/PPT生成和语音旁白 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Slides/PPT generation and voice narration
Identifies repetitive steps in your workflow and sets up Slides/PPT generation and voice narration to handle them automatically