Install
openclaw skills install tophantppt根据给定背景图片的视觉风格和配色,生成多版式且文字可编辑的符合设计要求的 PPT 演示文稿。
openclaw skills install tophantpptname: tophantppt slug: tophantppt version: 1.0.4 homepage: https://clawic.com/skills/tophantppt description: "支持两种输入方式:1)用户指定每页内容,2)用户提供原始材料自动提炼框架;两种方式均使用指定的背景图片作为视觉参考图,必须使用给的参考图,如果图片获取有问题则重试直至成功获取参考图,当参考图获取有问题时,可都获取默认页地址的图片,不可以跳过使用其他方式。调用生图工具(如codex的image2)直接生成每页幻灯片图片,并合并为全图片型PPTX。最终PPT所有内容均为图片,不可编辑。" changelog: | v1.0.4 统一为全图片生成模式,移除文字可编辑要求;两种模式均使用背景图片作为参考图驱动生图。 v1.0.2 修正模式说明。 v1.0.1 新增模式B。 v1.0.0 初始版本。 metadata: clawdbot: emoji: "🎨" requires: bins: [] os: ["linux", "darwin", "win32"]
background_reference_images: description: | 以下URL为各版式的背景参考图片。在生成每页幻灯片时,必须将这些图片作为视觉参考(图生图),用于确定整体配色、构图比例、氛围和版式风格。生图工具应以此为基础,生成风格一致的幻灯片图片。 list: - type: 封面页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/cover_bg.png usage: 标题、副标题、演讲者信息 - type: 目录页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/toc_bg.png usage: 章节导航、议程概览 - type: 章节过渡页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/chapter_bg.png usage: 大章节分隔、转场页 - type: 内容页-纯文字 url: https://github.com/lizhedm/tophantppt/blob/main/assets/content_text_bg.png usage: 正文、段落、说明文字 - type: 内容页-左文右图 url: https://github.com/lizhedm/tophantppt/blob/main/assets/content_split_bg.png usage: 图文混排、左右分栏 - type: 内容页-上文下图表 url: https://github.com/lizhedm/tophantppt/blob/main/assets/content_chart_bg.png usage: 图表上方、文字总结下方 - type: 数据可视化页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/data_bg.png usage: 图表、图形、数据展示 - type: 表格页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/table_bg.png usage: 结构化数据、对比表 - type: 时间轴页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/timeline_bg.png usage: 流程、历史、里程碑 - type: 团队/成员页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/team_bg.png usage: 人物介绍、组织架构 - type: 对比页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/compare_bg.png usage: 左右/多项对比 - type: 引用页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/quote_bg.png usage: 金句、名人名言、观点强调 - type: 列表页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/list_bg.png usage: 要点、bullet points - type: 结尾/感谢页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/closing_bg.png usage: 致谢、Q&A、联系方式 - type: 默认页 url: https://github.com/lizhedm/tophantppt/blob/main/assets/moren.png usage: 当其他类型找不到对应背景时使用
mode_selection: description: | 在开始操作前,先判断用户输入: - 若用户明确说明“共有X页”、“第一页是……”、“第二页……”等具体结构 → 使用模式A(指定式)。 - 若用户只提供文字段落、文章链接或原始材料,未提及页数或每页内容 → 使用模式B(自动生成式)。 无论哪种模式,最终都生成全图片型PPT(所有内容均为图片,不可编辑)。
modes: A: name: 指定式(全图片) when_to_use: 用户明确给出每页的标题、要点、图表等详细内容。 core_requirements: - 根据用户指定的每页内容,从 background_reference_images 中选择最匹配的版式参考图。 - 为每页撰写详细的图片生成描述(包括布局、文字内容、字体大小、颜色、图形元素位置等),该描述将作为生图工具(image2)的提示词。 - 调用生图工具,以对应的参考图作为视觉基底(图生图),生成每页幻灯片图片。 - 最终将所有图片合并为 .pptx 文件,每页图片铺满幻灯片。 workflow_steps: - step: 1 action: 解析用户指定的每页内容,明确标题、正文要点、图表、图片等元素。 - step: 2 action: 为每一页匹配最合适的版式参考图(根据内容类型)。 - step: 3 action: 撰写详细的图片生成描述(可使用 Markdown 格式),包含背景风格、文字内容及样式、图形布局等,确保描述充分体现参考图的配色和构图逻辑。 - step: 4 action: 调用生图工具(推荐 image2),以参考图作为参考输入,将描述作为提示词,生成高清图片(分辨率 ≥ 1920×1080,16:9),命名 slide_XX.png。 - step: 5 action: 检查生成的图片内容是否准确、文字清晰、布局合理;如有问题,修改描述并重新生成。 - step: 6 action: 使用 python-pptx 等工具新建空白演示文稿(16:9),按顺序插入生成的图片,每张图片铺满整个幻灯片区域,保存为 .pptx。 output_type: 全图片 .pptx(文字不可编辑)
B: name: 自动生成式(全图片) when_to_use: 用户仅提供一段或若干段文字材料,未指定页数或具体每页内容。 core_requirements: - 将材料提炼为逻辑清晰的演示文稿框架(不超过40页)。 - 每页需选择对应的参考图,并生成详细的图片描述,调用生图工具生成图片。 - 最终合并为全图片PPT。 workflow_steps: - step: 1 action: 内容提炼与框架构建 – 提取核心观点,按逻辑顺序组织成每页,明确版式类型、参考图、标题、要点、图表等。 - step: 2 action: 生成图片绘制描述文件 – 输出一个 Markdown 文件(如 ppt_design.md),为每一页提供详细的图片生成描述(参考图、文字内容、样式、图形等)。 - step: 3 action: 逐页生成图片 – 对每一页,将对应的参考图和描述输入生图工具,生成高清图片,命名 slide_XX.png。 - step: 4 action: 合并为PPT – 使用 python-pptx 等工具创建演示文稿,每张幻灯片插入对应图片并铺满,保存为 .pptx。 - step: 5 action: 质量保证 – 检查总页数≤40,图片清晰度、布局正确性、参考图风格一致性。 output_type: 全图片 .pptx(文字不可编辑)
core_rules:
slide_type_guidelines:
common_traps:
related_skills:
feedback: star_command: clawhub star tophantppt sync_command: clawhub sync