🔄 卡若AI 同步 2026-02-23 14:51 | 更新:卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 8 个

This commit is contained in:
2026-02-23 14:51:45 +08:00
parent 5cf7cf6fbb
commit cfdd7b6ce3
4 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,121 @@
---
name: PPT制作
description: 用 python-pptx 创建、编辑、分析演示文稿。触发词做PPT、制作PPT、生成演示文稿、编辑PPT、修改PPT、汇报PPT、商业计划书PPT。
group: 木
triggers: PPT、做PPT、制作PPT、演示文稿、汇报PPT
owner: 木果
version: "1.0"
updated: "2026-02-23"
---
# PPT制作
> **归属**:木果(项目模板)
> **能力来源**agentskills pptxpython-pptx高星级技能卡若AI 继承后可直接生成 .pptx 文件。
---
## 能做什么Capabilities
- 创建新 PPT标题页、内容页、要点页
- 添加图片、表格、图表
- 编辑已有 PPT修改文字、布局、备注
- 输出到:`/Users/karuo/Documents/卡若Ai的文件夹/报告/`
---
## 怎么用Usage
触发词:**做PPT、制作PPT、生成PPT、演示文稿、汇报PPT、商业计划书PPT**
用户说需求后,收集:主题、页数/结构、关键内容,再按步骤执行。
---
## 执行步骤Steps
1. **澄清需求**:主题、受众、页数、有无模板或参考
2. **设计大纲**:标题页 + 目录 + 正文页结构
3. **执行生成**:用下方 python-pptx 代码生成 .pptx
4. **输出**:保存到 `卡若Ai的文件夹/报告/`,并告知路径
---
## 核心代码python-pptx
### 创建演示文稿
```python
from pptx import Presentation
from pptx.util import Inches, Pt
prs = Presentation()
# 标题页
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
slide.shapes.title.text = "标题"
slide.placeholders[1].text = "副标题"
# 内容页(要点)
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
slide.shapes.title.text = "要点标题"
tf = slide.shapes.placeholders[1].text_frame
tf.text = "第一点"
p = tf.add_paragraph()
p.text = "第二点"
p.level = 1
prs.save('output.pptx')
```
### 添加图片
```python
blank_layout = prs.slide_layouts[6]
slide = prs.slides.add_slide(blank_layout)
slide.shapes.add_picture('image.png', Inches(1), Inches(1), width=Inches(5))
```
### 添加表格
```python
rows, cols = 3, 4
table = slide.shapes.add_table(rows, cols, Inches(1), Inches(2), Inches(6), Inches(1.5)).table
table.cell(0, 0).text = "表头"
table.cell(1, 0).text = "数据"
```
### 编辑已有 PPT
```python
prs = Presentation('existing.pptx')
slide = prs.slides[0]
slide.shapes.title.text = "新标题"
prs.save('modified.pptx')
```
---
## 最佳实践
- 用 Inches() 或 Pt() 控制尺寸
- 正文文字精简,多用视觉元素
- 使用 slide_layouts 保持风格统一
- 生成过程多次 save 防丢失
---
## 相关文件
| 文件 | 说明 |
|:---|:---|
| 输出目录 | `/Users/karuo/Documents/卡若Ai的文件夹/报告/` |
---
## 依赖
- Python 3.9+
- `python-pptx``pip install python-pptx`

View File

@@ -67,6 +67,7 @@
| M03 | 项目生成 | 木果 | 生成项目、五行模板 | `03_卡木/木果_项目模板/项目生成/SKILL.md` | 按五行模板生成新项目 |
| M04 | 开发模板 | 木果 | 创建项目、初始化模板 | `03_卡木/木果_项目模板/开发模板/SKILL.md` | 前后端项目模板库 |
| M05 | 个人档案生成器 | 木果 | 个人档案、档案生成 | `03_卡木/木果_项目模板/个人档案生成器/SKILL.md` | 自动生成个人介绍档案 |
| M07 | PPT制作 | 木果 | **PPT、做PPT、制作PPT、演示文稿、汇报PPT** | `03_卡木/木果_项目模板/PPT制作/SKILL.md` | python-pptx 创建/编辑 .pptx输出到报告目录 |
## 火组 · 卡火(技术研发优化)

View File

@@ -103,3 +103,4 @@
| 2026-02-23 06:05:56 | 🔄 卡若AI 同步 2026-02-23 06:05 | 更新:运营中枢工作台 | 排除 >20MB: 8 个 |
| 2026-02-23 06:15:29 | 🔄 卡若AI 同步 2026-02-23 06:15 | 更新:水桥平台对接、总索引与入口、运营中枢工作台 | 排除 >20MB: 8 个 |
| 2026-02-23 07:18:01 | 🔄 卡若AI 同步 2026-02-23 07:17 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 8 个 |
| 2026-02-23 10:25:20 | 🔄 卡若AI 同步 2026-02-23 10:25 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 8 个 |

View File

@@ -106,3 +106,4 @@
| 2026-02-23 06:05:56 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 06:05 | 更新:运营中枢工作台 | 排除 >20MB: 8 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-02-23 06:15:29 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 06:15 | 更新:水桥平台对接、总索引与入口、运营中枢工作台 | 排除 >20MB: 8 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-02-23 07:18:01 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 07:17 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 8 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-02-23 10:25:20 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 10:25 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 8 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |