乐于分享
好东西不私藏

「AI伴工·Skill」:5分钟打造会做PPT的Copilot Agent

「AI伴工·Skill」:5分钟打造会做PPT的Copilot Agent

上一篇我们介绍了微软官方示范:企业如何打造专属 Skill Hub?

很多朋友会问:

Skill 到底是什么?

导入之后真的能让 Agent 获得新能力吗?

这次我们以官方 Skill Gallery 中的 PowerPoint Deck Designer 为例,看看一个真实 Skill 是如何让 Copilot Studio Agent 自动生成 PowerPoint 演示文稿的。

官方页面:

https://microsoft.github.io/cat-agent-skills/skills/powerpoint-deck-designer/


什么是 PowerPoint Deck Designer?

PowerPoint Deck Designer 是微软 CAT Agent Skills Gallery 中的一个示例 Skill。

简单说:

这是一个专门负责生成 PPT 的 Agent Skill。

它并不是调用外部服务。

也不依赖:

  • • Azure Function
  • • Custom Connector
  • • 第三方 API

而是直接运行在 Copilot Studio Agent 的 Python 容器里面。

因此从架构看:

User
 ↓
Copilot Studio Agent
 ↓
PowerPoint Deck Designer Skill
 ↓
python-pptx
 ↓
PPTX 文件

整个过程都在 Agent Runtime 内完成。


它能做什么?

根据 Skill 说明,它支持:

自动生成完整 PPT

例如:

  • • 产品方案
  • • 培训教材
  • • 管理汇报
  • • 投资人路演
  • • 客户提案

支持多种页面布局

Skill 内置了8种布局模板。

例如:

  • • Title
  • • Agenda
  • • Content
  • • Cards
  • • Chart
  • • Section
  • • Summary

等页面设计。


生成真实可编辑图表

这是非常有价值的一点。

生成的不是图片。

而是 PowerPoint 原生 Chart。

支持:

  • • Bar
  • • Column
  • • Line
  • • Pie
  • • Donut
  • • Stacked
  • • 100% Stacked

生成后的图表在 PPT 中仍然可以编辑。


自动主题设计

Skill 提供多个主题:

executive-blue
modern-slate
sustain-green
vibrant-pitch
minimal-mono

例如:

企业管理汇报:

executive-blue

科技产品发布:

modern-slate

ESG报告:

sustain-green

这些都是 Skill 自动推荐的。


如何下载这个 Skill?

进入官方页面:

https://microsoft.github.io/cat-agent-skills/skills/powerpoint-deck-designer/

在右侧可以看到:

Add this skill

勾选:

I understand I should only add skills from sources I trust

随后点击:

Download bundle (.zip)

正如官方页面所示,整个 Skill 会被打包成 ZIP 下载。

这个 ZIP 通常包含:

SKILL.md
scripts/
assets/
references/
examples/

其中最重要的就是:

SKILL.md

因为它定义了 Agent 如何使用这个 Skill。


如何导入 Copilot Studio?

打开 Copilot Studio。

进入 Agent 配置界面。

选择:

Skills

然后点击:

Add skill

你会看到微软提供两个选项:

Upload a skill
Create from blank

直接选择:

Upload a skill

然后上传刚刚下载的 ZIP 文件。

官方要求:

Must be a SKILL.md file
or
a zip package that includes SKILL.md

导入完成后,Skill 会成为 Agent 的可调用能力之一。


SKILL.md到底是什么?

很多人第一次看到会很惊讶。

整个 Skill 的核心其实只是:

---
name:powerpoint-deck-designer
description:CreatespolishedPowerPointdecksfromaJSONspecificationusingpython-pptx.
---

然后后面跟大量 Markdown 指令。

本质上:

SKILL.md 就是一份专门写给 Agent 阅读的操作手册。

它告诉 Agent:

  • • 什么时候激活
  • • 怎么执行
  • • 调用什么脚本
  • • 输出什么结果

Skill 如何知道什么时候被调用?

在 SKILL.md 中有一段非常关键:

When to activate this skill

Activate whenever the user asks to:

build slides
generate slides
draft presentation
create a deck
build a pitch deck
make a proposal
visualise numbers

意思是:

当用户提出类似需求:

Create a deck about AI adoption
Build me a sales presentation
Draft a training presentation
Create a proposal in PowerPoint

Agent 会判断:

这个需求匹配 PowerPoint Deck Designer

随后自动激活 Skill。

这就是为什么 Skill 不需要用户手工选择。

Agent 可以自动判断是否适合使用。


Skill 如何生成 PPT?

Skill 内部定义了完整工作流:

第一步

理解需求

Audience
Objective
Tone
Content

例如:

客户汇报
高管汇报
培训材料
产品发布

第二步

先构建 Storyline

Skill 特别强调:

Draft storyline before writing JSON

先确定:

封面
议程
内容
总结
结束页

而不是直接生成 PPT。


第三步

生成 JSON Deck Spec

Skill 要求 Agent 构建:

{
"slides":[
{
"layout":"title",
"title":"AI Strategy"
}
]
}

这里实际上是把 PPT 转换成结构化数据。


第四步

执行 Python

Skill 指定:

python scripts/generate_presentation.py \
    --input /tmp/spec.json \
    --output /tmp/deck.pptx \
    --theme executive-blue \
    --validate

这一步会调用:

python-pptx

生成真正的 PowerPoint 文件。


第五步

返回 PPT 文件

生成:

/tmp/deck.pptx

然后作为下载附件返回给用户。

整个过程完全自动化。


如何让 Agent 优先调用这个 Skill?

很多企业部署多个 Skills 后,会希望 Agent 明确知道什么时候使用某个 Skill。

可以在 Agent Instructions 中增加类似内容:

When users ask for:

- PowerPoint presentation
- Slide deck
- Pitch deck
- Sales proposal
- Executive briefing
- Training presentation

Always consider using the Skill:

powerpoint-deck-designer

Use this skill to create, draft, improve, restyle or visualize PowerPoint content whenever possible.

更严格一点:

If the user requests any PowerPoint (.pptx) output,
you must use the skill:

powerpoint-deck-designer

instead of generating slide content in chat.

这样 Agent 会优先路由到对应 Skill。


这对企业意味着什么?

PowerPoint Deck Designer 最大的意义并不是生成 PPT。

而是展示了 CAT Agent Skills 的核心思想:

过去:

Agent 自己猜怎么做

现在:

Agent 按照专家写好的 Skill 来做

对于企业而言完全可以复制这个模式。

例如创建:

  • • Corporate Deck Designer
  • • Internal Proposal Generator
  • • Solution Architecture Designer
  • • Executive Briefing Creator
  • • RFP Response Builder

然后统一发布到企业 Skill Hub。

业务人员只需要说:

帮我做一个客户汇报PPT

Agent 就会自动调用企业标准化 Skill。

这正是微软 CAT Agent Skills 想推动的新模式:

把个人经验沉淀为 Skill,把 Skill 沉淀为企业资产,让所有 Agent 共享同一套最佳实践。

留给大家一个问题

如果你的公司已经拥有成熟的品牌模板和设计规范:

  • • 你会如何把这些资产转化为 Copilot Studio Skill?
  • • 你会选择直接修改 PowerPoint Deck Designer?
  • • 还是在其基础上封装企业专属 PPT Designer?
  • • 又或者结合 SharePoint、Brand Center、Knowledge Source 实现动态品牌管理?

欢迎大家留言分享自己的思路和实践经验。

AI知识库

✅ 本公众号 → ✅ 服务 → ✅ 智能问答