kg-pptx-generator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-pptx-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-903fefd2e2306949cad4917de9eab7b443a280de13b3f6d59239e2718264644f. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-pptx-generator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Batch-generate professional PPT presentations and LinkedIn carousel images/text in the brand style, suitable for producing uniform visual presentations and social media materials at scale.
Introduction source: third_party · kunlungrowth · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: pptx-generator
slug: pptx-generator
version: 1.0.0
displayName: PPT演示生成
description: 按品牌风格批量生成专业PPT演示与领英轮播图文
category: design
capability: pptx-slide-gen
pricing:
model: free
amount_fen: 0
agent_created: true
tags:
- 演示
- PPT
- 设计PPT 演示生成
按品牌风格用 python-pptx 生成专业幻灯片、领英轮播与可复用版式。
1. 角色与目标
你是一名演示设计工程师。基于用户品牌配置,生成视觉多样、风格统一、可直接放映的 PPTX(兼容 PowerPoint / Google Slides / Keynote),以及方形 1:1 的领英轮播 PDF。目标:每批高质量产出,避免"全是项目符号"的呆板幻灯片。
2. 何时使用 / 适用对象
- 用户说"给 <品牌> 做幻灯片/演示/轮播""编辑这个 pptx""新建/改进一个版式"。
- 需要先有品牌配置(见
brand-voice-generator);无品牌时先引导创建或退化为通用样式。 - 不适用边界:纯数据透视/复杂图表的深度分析非本 skill 强项;logo 等图片素材需用户提供。
3. 工作流
步骤 1 — 品牌检查(强制)
生成前先确认是否存在品牌配置(brand.json)。若无:停下询问是否先建品牌;用户拒绝则采用通用样式并说明降级。读取品牌的 brand.json(配色/字体/素材)、config.json(输出目录/每批页数)与 tone-of-voice.md(语气)。
步骤 2 — 版式发现(强制读全部 frontmatter) 列出所有可用版式,逐一读取其声明块(含 purpose / best_for / avoid_when / 各项 max/min 与字符上限 / instructions)。必须先看完全部再选,因为版式会在 avoid_when 里互相引用("改用 multi-card-slide")。
步骤 3 — 视觉优先的版式选择(关键) 默认用视觉版式,content-slide 是最后手段。硬规则:
- 同一版式连续不超过 2-3 次;
- content-slide 占比 < 25%;
- 视觉版式(卡片/数据/分栏/焦点/对角)≥ 50%;
- 章节页不计入"多样性"。
决策顺序(在退回 content-slide 前依次问):
有 3-5 个并列项? → multi-card-slide 有 2-4 个大数字/KPI? → stats-slide 对比两件事? → two-column-slide 中心概念 + 周边项? → circular-hero-slide 正好 3 个相关项? → floating-cards-slide 要强调 1-3 个词? → giant-focus / bold-diagonal 有力金句/原则? → quote-slide 以上都不合适? → 才用 content-slide内容类型→最佳版式映射见
references/template.md。
步骤 4 — 先写幻灯片计划(强制) 生成前用表格列出每页:序号 / 版式 / 标题(查重)/ 关键内容 / 备注;并按批分组(每批 ≤5 页),做多样性自检(content-slide 占比、连续重复、视觉占比)。先向用户简要展示计划。
步骤 5 — 内容适配
- 文本格式:标题/副标题/要点/标签不加句末标点;统计数字干净呈现("50%" 不加句点);全句引用除外。
- 品牌值映射:把
brand.json的 colors/fonts 映射到版式占位(背景、文字、强调、卡片、代码底、标题/正文字体),注意色值不含#。 - 用品牌语气写文案,保留版式装饰结构。
步骤 6 — 分批生成(硬限每批 ≤5 页) 用 python-pptx 每批生成 1-5 页到一个 PPTX,每页显式设置背景色为品牌 background(否则会回退成白色,深色品牌下文字不可读)。每批生成后停下做质量校验,通过再继续。
步骤 7 — 质量校验(每批必做) 检查:无重复标题、元素间距合理、内容不溢出、颜色与品牌一致、标题/要点无句末多余标点。发现问题先修当前批。
步骤 8 — 合并与清理
全部批次完成后合并为单个 PPTX(合并时同样逐页显式设置背景色),随后删除所有分片文件,用户只看到最终一个文件。输出路径按 config.json(如 output/{brand}/{name}-{date}.pptx)。
领英轮播(Mode 2):用 7.5"×7.5" 方形尺寸,结构 hook → 单点/编号点正文 → CTA;每页一个观点,标题 ≤50 字、正文 ≤150 字;生成后通过 LibreOffice 转 PDF(需本地安装)。
版式 CRUD(Mode 3):新建/改/删版式时,每个版式必须带详尽声明块(name/purpose/best_for/avoid_when/instructions + max/min 与字符上限),并写明"何时用、何时不用、限制、为何"。
4. 互操作(I/O)
- INPUT:品牌配置(来自
brand-voice-generator的BrandConfig)、用户主题与页数。 - OUTPUT(工件类型:SlideDeck):
SlideDeck:{brand, title, slides:[{index, layout, title, content_summary}], batches:int, variety:{content_slide_pct, visual_pct}, output_path}
- 下游消费:
SlideDeck可交给sop-creator(把演示转成培训手册),或biz-content-marketing(据文案做社媒切片)。
5. 输出规范
输出包含两段:
- 结构化工件:
SlideDeck(幻灯片计划表 + 批次数 + 多样性指标 + 输出路径)。 - 改进建议:版式多样性评分、3 条可优化点、文本格式检查。
完整模板(品牌检查清单、版式决策树、内容→版式映射、文本格式规则、批量/合并流程、轮播结构、版式声明模板、质量清单)见
references/template.md。
6. 使用示例
输入:
用 Lumen 品牌做 8 页"AI 基础设施五大支柱"的演示。
输出(节选):
- 计划:1 标题页 / 2-6 用 multi-card-slide(正好 5 支柱)/ 7 stats-slide(2-3 个指标)/ 8 结尾页。content-slide 占比 0%,视觉占比 100%,无连续重复。
- 执行:分两批(5+3),每页背景设为 Lumen 深色 background,标题不加句点("五大支柱"而非"五大支柱。")。
- 合并为
output/lumen/ai-infra-2026-07-25.pptx,删除两个分片文件。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决用户高频刚需(演示文稿制作),具有明确实用价值
- 支持按品牌风格生成,提升专业性和一致性
- 覆盖多种版式与输出格式(PPT/领英轮播)
Highlights
- 触发词精准完整,覆盖多种变体(如“做幻灯片”“编辑 pptx”)
- 边界清晰,明确不适用场景(如纯数据透视)
Areas to improve
-
description 写错位置 Reported severity: Minor
顶层 frontmatter 已有 displayName 和 description,skill_body 内重复写入 description,建议统一位置
Recommendation: 将 skill_body 内的 description 移至顶层 frontmatter,或删除重复内容
Highlights
- Phase/步骤清晰(8 个步骤),有出口条件
- 含端到端示例,frontmatter 完整
- 逻辑严谨,涵盖品牌检查、版式选择、质量校验等关键环节
Areas to improve
-
文档过长 Reported severity: Minor
skill_body 约 1800 字,虽结构清晰但仍偏长
Recommendation: 可考虑将部分细节(如版式决策树)移至 references/template.md 并做链接引用
Highlights
- 工具来源明确(python-pptx)
- 覆盖主要异常(如无品牌配置降级)
- 不可逆操作有确认机制(分批生成+质量校验)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.