关于 ai-slides
ai-slides 是一项根据主题、大纲或笔记生成结构化演示文稿的技能。它适用于需要按受众和篇幅准备演讲或幻灯片的人,并可输出 Marp Markdown。
主要功能
- 01根据主题或笔记生成演示文稿
- 02按受众和篇幅调整内容
- 03依据演示结构组织幻灯片
- 04输出为 Marp Markdown
适用场景
- 01制作机器学习主题演示文稿
- 02起草 SaaS 初创企业路演稿
- 03准备网络安全培训幻灯片
- 04将季度回顾数据整理成幻灯片
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ claude-office-skills/ skills --skill ai-slides安装后在 Claude Code 中输入/ai-slides确认已加载。
详细介绍
AI Slides 技能
概述
这项技能可生成由 AI 驱动的演示文稿。提供主题或大纲,即可获得一份结构合理、内容完整、格式精美的演示文稿。
使用方法
- 提供主题、大纲或粗略笔记
- 指定受众和演示文稿长度
- 我会生成一份完整的演示文稿
提示词示例:
- “创建一份关于机器学习的 10 页演示文稿”
- “为 SaaS 初创公司生成一份融资演示文稿”
- “制作一套关于网络安全基础知识的培训幻灯片”
- “根据这些数据制作一份季度回顾演示文稿”
领域知识
演示文稿结构
# Effective presentation structure
structure:
- title_slide:
title: "Clear, compelling title"
subtitle: "Context or tagline"
author: "Presenter name"
- agenda:
items: 3-5 main topics
- introduction:
hook: "Attention-grabbing opening"
context: "Why this matters"
- main_content:
sections: 3-5 key points
each_section:
- heading
- 3-5 bullets or visual
- supporting data
- conclusion:
summary: "Key takeaways"
call_to_action: "What to do next"
- closing:
thank_you: true
contact_info: true
qa_prompt: true
内容生成模式
def generate_presentation(topic, audience, slide_count=10):
"""AI-powered presentation generation."""
# 1. Generate outline
outline = generate_outline(topic, slide_count)
# 2. Expand each section
slides = []
for section in outline:
slide_content = expand_section(section, audience)
slides.append(slide_content)
# 3. Add visuals suggestions
for slide in slides:
slide['visuals'] = suggest_visuals(slide['content'])
# 4. Format as Marp markdown
presentation = format_as_marp(slides)
return presentation
def generate_outline(topic, count):
"""Generate presentation outline."""
# Typical structure
outline = [
{'type': 'title', 'title': topic},
{'type': 'agenda'},
# Main content (60% of slides)
# ... content slides
{'type': 'summary'},
{'type': 'closing'}
]
return outline
Marp 输出
def format_as_marp(slides):
"""Convert slides to Marp markdown."""
marp = """---
marp: true
theme: gaia
paginate: true
---
"""
for slide in slides:
if slide['type'] == 'title':
marp += f"""
# {slide['title']}
{slide.get('subtitle', '')}
---
"""
elif slide['type'] == 'content':
marp += f"""# {slide['heading']}
"""
for point in slide['points']:
marp += f"- {point}\n"
marp += "\n---\n\n"
return marp
示例:生成技术分享演示文稿
topic = "Introduction to Docker"
audience = "Developers new to containers"
slides = 10
# Generated presentation
presentation = """---
marp: true
theme: gaia
paginate: true
---
# Introduction to Docker
Containerization Made Simple
---
# Agenda
1. What is Docker?
2. Core Concepts
3. Getting Started
4. Best Practices
5. Demo
---
# What is Docker?
- Container platform for packaging applications
- Lightweight alternative to VMs
- "Build once, run anywhere"
- 15M+ developers, 7M+ applications
---
# Why Containers?
| VMs | Containers |
|-----|------------|
| GB size | MB size |
| Minutes to start | Seconds to start |
| Full OS | Shared kernel |
---
# Core Concepts
- **Image**: Blueprint/template
- **Container**: Running instance
- **Dockerfile**: Build instructions
- **Registry**: Image storage (Docker Hub)
---
# Getting Started
```bash
# Pull an image
docker pull nginx
# Run a container
docker run -p 8080:80 nginx
# List containers
docker ps
你的第一个 Dockerfile
FROM node:18
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
最佳实践
- 使用官方基础镜像
- 尽量减少层数
- 不要以 root 身份运行
- 使用 .dockerignore
- 使用多阶段构建
总结
✅ Docker 可简化部署 ✅ 容器轻量且快速 ✅ 易于上手 ✅ 行业标准
有问题吗?
资源:docs.docker.com """
## Best Practices
1. **Know Your Audience**: Tailor complexity and examples
2. **One Idea Per Slide**: Keep focused
3. **6x6 Rule**: Max 6 bullets, 6 words each
4. **Visual First**: Suggest images/diagrams
5. **Strong Opening/Closing**: Hook and call-to-action
## Resources
- [Marp](https://marp.app/) - Markdown presentations
- [Slidev](https://sli.dev/) - Vue-powered slides
- [reveal.js](https://revealjs.com/) - HTML presentations
评论
支持 Markdown