slides-generator by hummingbot/skills
npx skills add https://github.com/hummingbot/skills --skill slides-generator从 Markdown 内容创建 Hummingbot 品牌风格的 PDF 格式演示文稿幻灯片。支持双栏布局和 Mermaid 图表渲染,用于展示技术架构和流程图。
请用户提供 Markdown 文件或粘贴 Markdown 内容。内容应遵循以下格式:
# 演示文稿标题
## 1. 第一张幻灯片标题
第一张幻灯片的内容。可以包含:
- 项目符号列表
- **粗体文本** 和 *斜体文本*
- 代码块
## 2. 第二张幻灯片标题
更多内容。
## 3. 第三张幻灯片标题
以此类推...
格式规则:
# 标题 = 演示文稿标题(可选,会成为标题幻灯片)## N. 幻灯片标题 = 新幻灯片(N 是幻灯片编号)## 标题下的内容成为幻灯片内容在生成 PDF 之前,解析 Markdown 并向用户显示摘要:
📊 幻灯片大纲:
1. 第一张幻灯片标题
2. 第二张幻灯片标题
3. 第三张幻灯片标题
...
总计:X 张幻灯片
请确认以继续生成 PDF,或提供修改。
在继续之前等待用户确认。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
运行生成脚本:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/slides-generator/scripts/generate_slides.sh) \
--input "<markdown_file_or_content>" \
--output "<output_pdf_path>"
或者,如果用户提供了内联内容,请先将其保存到临时文件:
# 将内容保存到临时文件
cat > /tmp/slides_content.md << 'SLIDES_EOF'
<markdown_content_here>
SLIDES_EOF
# 生成 PDF
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/slides-generator/scripts/generate_slides.sh) \
--input /tmp/slides_content.md \
--output ~/slides_output.pdf
生成后,告知用户:
如果用户想要编辑先前生成的 PDF 中的幻灯片:
使用 --edit 标志来更新特定幻灯片而无需重新生成所有内容:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/slides-generator/scripts/generate_slides.sh) \
--input "<updated_markdown>" \
--output "<same_pdf_path>" \
--edit
用户可以使用 mermaid: 语法以自然语言描述图表。在生成 PDF 之前,您必须将这些描述转换为 Mermaid 代码。
用户编写如下描述:
mermaid: 一个流程图,显示用户界面连接到 Condor 和 MCP 代理,两者都连接到 Hummingbot API(高亮显示),然后连接到客户端,再连接到网关
将描述转换为正确的 Mermaid 语法:
```mermaid
flowchart TB
A[用户界面] --> B[Condor]
A --> C[MCP 代理]
B --> D[Hummingbot API]
C --> D
D --> E[Hummingbot 客户端]
E --> F[网关]
style D fill:#00D084,color:#fff
```
flowchart TD - 自上而下的流程图flowchart LR - 从左到右的流程图sequenceDiagram - API 和交互流程classDiagram - 面向对象设计erDiagram - 数据库模式使用 style NodeName fill:#00D084,color:#fff 进行 Hummingbot 绿色高亮显示。
Mermaid 图表需要 Mermaid CLI:
npm install -g @mermaid-js/mermaid-cli
使用常规的 ``` 代码块来表示 ASCII 艺术、代码片段或预格式化文本:
```
价格
^
| [买入] --- 第 3 级
| [买入] --- 第 2 级
| [买入] --- 第 1 级
+-------------------> 时间
```
代码块以等宽字体在灰色背景上呈现。
当一张幻灯片同时包含项目符号列表和图表时,它会自动以双栏形式呈现:
左栏:文本内容
右栏:图表
主要特点:
mermaid: 显示市场数据到策略再到订单的流程图
翻译后:
## 4. 工作原理
主要特点:
- 自动化订单下达
- 动态仓位管理
- 风险控制执行
- 实时监控
```mermaid
flowchart TD
A[市场数据] --> B[策略]
B --> C[订单]
style B fill:#00D084,color:#fff
```
# 第四季度产品更新
## 1. 概述
今天我们将介绍:
- 产品里程碑
- 关键指标
- 路线图预览
## 2. 架构
我们的系统组件:
- 面向用户的界面
- 核心 API 层
- 交易所连接性
mermaid: 显示 UI 到 API(高亮显示)再到网关的流程图
## 3. 关键指标
| 指标 | 第三季度 | 第四季度 | 变化 |
|--------|----|----|--------|
| 用户数 | 10K | 15K | +50% |
| 收入 | $100K | $150K | +50% |
## 4. 第一季度路线图
1. 移动应用发布
2. 企业级套餐
3. 国际扩张
## 5. 有问题吗?
谢谢!
联系方式:team@example.com
翻译 mermaid: 描述后:
## 2. 架构
我们的系统组件:
- 面向用户的界面
- 核心 API 层
- 交易所连接性
```mermaid
flowchart TD
A[UI] --> B[API]
B --> C[网关]
style B fill:#00D084,color:#fff
```
脚本将检查并在需要时安装:
fpdf2 Python 包(用于 PDF 生成)| 问题 | 解决方案 |
|---|---|
| "未找到 Python" | 安装 Python 3:brew install python3(macOS)或 apt install python3(Linux) |
| "未安装 fpdf2" | 运行:pip3 install fpdf2 |
| "权限被拒绝" | 检查输出目录的写入权限 |
| "PDF 为空" | 验证 Markdown 格式是否遵循 ## N. 标题 模式 |
| 脚本 | 用途 |
|---|---|
generate_slides.sh | 主要的 PDF 生成脚本 |
每周安装次数
145
代码库
GitHub 星标数
24
首次出现
2026年2月7日
安全审计
安装于
codex137
opencode137
gemini-cli136
github-copilot135
kimi-cli133
cursor133
Create Hummingbot-branded presentation slides in PDF format from markdown content. Features two-column layouts and Mermaid diagram rendering for technical architecture and flowcharts.
Ask the user to provide a markdown file or paste markdown content. The content should follow this format:
# Presentation Title
## 1. First Slide Title
Content for the first slide. Can include:
- Bullet points
- **Bold text** and *italic text*
- Code blocks
## 2. Second Slide Title
More content here.
## 3. Third Slide Title
And so on...
Format Rules:
# Title = Presentation title (optional, becomes title slide)## N. Slide Title = New slide (N is slide number)## heading becomes slide contentBefore generating the PDF, parse the markdown and show the user a summary:
📊 Slide Outline:
1. First Slide Title
2. Second Slide Title
3. Third Slide Title
...
Total: X slides
Please confirm to proceed with PDF generation, or provide edits.
Wait for user confirmation before proceeding.
Run the generation script:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/slides-generator/scripts/generate_slides.sh) \
--input "<markdown_file_or_content>" \
--output "<output_pdf_path>"
Or if the user provided inline content, save it to a temp file first:
# Save content to temp file
cat > /tmp/slides_content.md << 'SLIDES_EOF'
<markdown_content_here>
SLIDES_EOF
# Generate PDF
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/slides-generator/scripts/generate_slides.sh) \
--input /tmp/slides_content.md \
--output ~/slides_output.pdf
After generation, tell the user:
If the user wants to edit slides from a previously generated PDF:
Use the --edit flag to update specific slides without regenerating all:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/slides-generator/scripts/generate_slides.sh) \
--input "<updated_markdown>" \
--output "<same_pdf_path>" \
--edit
Users can describe diagrams in natural language using mermaid: syntax. You must translate these descriptions to Mermaid code before generating the PDF.
Users write descriptions like:
mermaid: A flowchart showing User Interface connecting to Condor and MCP Agents,
both connecting to Hummingbot API (highlighted), then to Client, then to Gateway
Convert the description to proper Mermaid syntax:
\`\`\`mermaid
flowchart TB
A[User Interface] --> B[Condor]
A --> C[MCP Agents]
B --> D[Hummingbot API]
C --> D
D --> E[Hummingbot Client]
E --> F[Gateway]
style D fill:#00D084,color:#fff
\`\`\`
flowchart TD - Top-down flowchartflowchart LR - Left-right flowchartsequenceDiagram - API and interaction flowsclassDiagram - Object-oriented designerDiagram - Database schemasUse style NodeName fill:#00D084,color:#fff for Hummingbot green highlighting.
Mermaid diagrams require the Mermaid CLI:
npm install -g @mermaid-js/mermaid-cli
Use regular ````` code blocks for ASCII art, code snippets, or preformatted text:
\`\`\`
Price
^
| [BUY] --- Level 3
| [BUY] --- Level 2
| [BUY] --- Level 1
+-------------------> Time
\`\`\`
Code blocks render with monospace font on a gray background.
When a slide has both bullet points AND a diagram, it automatically renders in two columns:
Left column: Text content
Right column: Diagram
Key features:
mermaid: flowchart showing Market Data to Strategy to Orders
After translation:
## 4. How It Works
Key features:
- Automated order placement
- Dynamic position management
- Risk-controlled execution
- Real-time monitoring
\`\`\`mermaid
flowchart TD
A[Market Data] --> B[Strategy]
B --> C[Orders]
style B fill:#00D084,color:#fff
\`\`\`
# Q4 Product Update
## 1. Overview
Today we'll cover:
- Product milestones
- Key metrics
- Roadmap preview
## 2. Architecture
Our system components:
- User-facing interfaces
- Core API layer
- Exchange connectivity
mermaid: flowchart showing UI to API (highlighted) to Gateway
## 3. Key Metrics
| Metric | Q3 | Q4 | Change |
|--------|----|----|--------|
| Users | 10K | 15K | +50% |
| Revenue | $100K | $150K | +50% |
## 4. Q1 Roadmap
1. Mobile app launch
2. Enterprise tier
3. International expansion
## 5. Questions?
Thank you!
Contact: team@example.com
After translating mermaid: descriptions:
## 2. Architecture
Our system components:
- User-facing interfaces
- Core API layer
- Exchange connectivity
\`\`\`mermaid
flowchart TD
A[UI] --> B[API]
B --> C[Gateway]
style B fill:#00D084,color:#fff
\`\`\`
The script will check for and install if needed:
fpdf2 Python package (for PDF generation)| Issue | Solution |
|---|---|
| "Python not found" | Install Python 3: brew install python3 (macOS) or apt install python3 (Linux) |
| "fpdf2 not installed" | Run: pip3 install fpdf2 |
| "Permission denied" | Check write permissions for output directory |
| "Empty PDF" | Verify markdown format follows the ## N. Title pattern |
| Script | Purpose |
|---|---|
generate_slides.sh | Main PDF generation script |
Weekly Installs
145
Repository
GitHub Stars
24
First Seen
Feb 7, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
codex137
opencode137
gemini-cli136
github-copilot135
kimi-cli133
cursor133
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
33,600 周安装
高级架构师工具包:自动化架构图生成、项目分析与依赖管理最佳实践
1,200 周安装
macOS应用公证完整指南:使用App Store Connect CLI进行开发者ID签名与公证
1,300 周安装
React 19专家 | 服务器组件、性能优化与生产级架构实战指南
1,300 周安装
AI会议纪要生成器 - 自动创建清晰可执行的会议摘要与行动项跟踪模板
1,300 周安装
VueUse 函数使用指南:Vue.js/Nuxt 开发必备组合式函数决策与实现
1,200 周安装
template-skill 技能模板:快速构建AI技能,含触发词、输入输出与工作流
1,200 周安装