返回顶部
t

text-to-ppt

Convert any text input (research reports, summaries, proposals, plans, etc.) into a beautiful HTML-based presentation. Use when the user asks to create a PPT, slides, presentation, deck, or convert text/documents into slides. Also triggers on phrases like "做成PPT", "生成幻灯片", "做个演示文稿", "转成slides", "create presentation", "make slides", "text to presentation". Supports data visualization with Chart.js, Font Awesome icons, and modern design themes.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
221
下载量
0
收藏
概述
安装方式
版本历史

text-to-ppt

# Text-to-PPT — 文本转 HTML 演示文稿 Convert any text input into a visually stunning, single-file HTML presentation. ## CRITICAL: Two-Phase Generation **ALWAYS use the two-phase approach. NEVER generate the full HTML in one shot.** ### Phase 1: Plan (fast, single call) Read the input text, then produce a **slide-by-slide outline** in JSON format: ```json { "title": "Presentation Title", "language": "zh-CN", "density": "detailed", "theme": "dark", "slides": [ { "number": 1, "type": "title", "heading": "Main Title", "content": "Subtitle or tagline", "layout": "centered", "notes": "Visual: large title with accent underline" }, { "number": 2, "type": "content", "heading": "Section Title", "points": ["Point 1", "Point 2", "Point 3"], "layout": "bullets", "hasData": false, "notes": "Use numbered badges for each point" }, { "number": 3, "type": "chart", "heading": "Key Metrics", "chartType": "bar", "chartData": { "labels": ["A", "B", "C"], "datasets": [{"label": "Sales", "data": [100, 200, 150]}] }, "points": ["Insight 1", "Insight 2"], "layout": "split", "hasData": true, "notes": "Left: chart, Right: insights as stat cards" } ] } ``` **Rules for Phase 1:** - Output ONLY the JSON plan. No HTML. No explanation. - Identify data points → mark `hasData: true` and provide `chartType` + `chartData` - Choose layout: `centered`, `bullets`, `split`, `grid`, `timeline`, `cards`, `fullchart`, `quote` - Target 8-15 slides. Never exceed 20. - This should take <10 seconds. ### Phase 2: Generate (parallel, page-by-page) **Read `references/design-system.md`** — this is where the full design spec lives. Then generate HTML for each slide **independently**. Each slide is a self-contained `<div class="slide">` block. **For each slide, the agent should:** 1. Take ONE slide from the plan (by number) 2. Read only the design system reference if not already loaded 3. Generate ONLY that one slide's HTML `<div class="slide">...</div>` 4. No `<html>`, no `<head>`, no `<body>` — just the slide div **BATCHING: Generate slides in parallel using sub-agents.** Spawn up to 5 sub-agents simultaneously, each generating 1-2 slides. ### Phase 3: Assemble After all slides are generated: 1. Read the shell template from `references/shell-template.html` 2. Insert all slide divs into the shell 3. Ensure chart canvas IDs are unique across all slides 4. Save to Obsidian vault: `~/Documents/longhai/Longhai/` 5. Tell user the file path ## Execution Strategy ### When running as the main agent: 1. Phase 1 yourself (fast, just JSON) 2. Write the plan to a temp file 3. Spawn sub-agents for Phase 2 (parallel slide generation) 4. Collect results and assemble in Phase 3 ### Sub-agent task format (for Phase 2): ``` Generate HTML for slide {N} of a presentation. SLIDE PLAN: {JSON for this specific slide} DESIGN SYSTEM: Read references/design-system.md for theme colors, components, and rules. OUTPUT: Return ONLY a single <div class="slide" style="background-color: #0f172a;">...</div> block. No <html>, <head>, or <body> tags. Use inline styles. Include <script> for Chart.js if this slide has charts. Use unique canvas ID: chart-slide{N}-{random}. ``` ## Input Sources - Directly pasted text - A file path — read it first with `read` - A URL — fetch it first with `web_fetch` - An Obsidian note path — read it first ## Output - Single self-contained HTML file - File naming: `{topic-slug}.presentation.html` - Default save location: `~/Documents/longhai/Longhai/` - Tell the user the file path ## Theme Options | Theme | Background | Text | Cards | Accent | |-------|-----------|------|-------|--------| | dark (default) | slate-900 | slate-50 | slate-800 | blue-500/amber-500 | | light | slate-50 | slate-900 | white | blue-600/amber-600 | | tech | gray-950 | emerald-50 | gray-900 | cyan-500/violet-500 | | warm | stone-900 | amber-50 | stone-800 | orange-500/rose-500 | User can specify a theme. Default: dark.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 text-to-ppt-1776192782 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 text-to-ppt-1776192782 技能

通过命令行安装

skillhub install text-to-ppt-1776192782

下载 Zip 包

⬇ 下载 text-to-ppt v1.0.0

文件大小: 6.27 KB | 发布时间: 2026-4-17 16:20

v1.0.0 最新 2026-4-17 16:20
将任意文本转换为精美的16:9暗色主题HTML演示文稿。支持Chart.js数据可视化、Font Awesome图标、键盘/触摸导航。三阶段生成:大纲→并行逐页→组装。

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部