使用 Nano Banana Pro 图片和 PptxGenJS 生成带有中文内容的白板式 PPT,专业全幅背景。
ppt- with-nano-banana. 使用纳米香蕉Pro制作图像的白板手绘风格演示,以及PptxGenJS PPT的创作.是一项面向实际任务的技能,主要用于Overview. 此技能结合:.;Nano Banana Pro - G.。
从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
使用 Nano Banana Pro 生成白板手绘风格图像,并结合 PptxGenJS 创建演示文稿(PPT)。
本技能整合了以下两个核心组件:
颜色仅用于强调关键信息,而非装饰性用途:
| 颜色 | 用途 | 示例 |
|---|---|---|
| 🔴 红色 | 关键问题、重要概念、警告提示 | “上下文丢失”、“存储层” |
| 🟢 绿色 | 正常流程、正确实践、成功状态 | “记忆管理层”、working state |
| 🔵 蓝色 | 技术组件、架构要素 | “应用层”、API interfaces |
User Request
↓
Generate Images (nano-banana-pro)
- 为每页幻灯片生成白板风格图像
- 按策略使用红/绿/蓝三色进行重点标注
- 内容为中文,风格简洁专业
↓
Create PPT (pptxgenjs)
- 设置 16:9 幻灯片比例
- 将每张图像设为整页背景
- 保存最终演示文稿
↓
Deliver PPT to User
Whiteboard hand-drawn style [content description] on clean white background. [Specific elements with strategic color accents]. Hand-drawn black marker lines with slight sketchy appearance. All text in Chinese with English notes in parentheses where appropriate. Professional whiteboard presentation style, minimalist design, plenty of white space.
第 1 页 — 标题页:
Whiteboard hand-drawn style title slide on clean white background. Large hand-written Chinese title: '智能体(Agent)长期记忆技术架构'. Subtitle: '让AI拥有持续学习和记忆的能力'. Red circle accent highlighting the word '记忆' (memory), blue underline beneath '智能体'. Clean black marker lines, professional whiteboard style.
第 2 页 — 问题陈述:
Whiteboard hand-drawn style diagram on clean white background, all content in Chinese. Title: '为什么需要长期记忆?'. Three hand-drawn boxes: Left box with red accent - '上下文丢失(Context Loss)' with broken chain icon and note '每次对话重新开始'. Middle box with green accent - '知识孤岛(Knowledge Isolation)' with island icons and note '信息无法关联'. Right box with blue accent - '缺乏个性化(No Personalization)' with person icon and note '无法定制服务'. Hand-drawn arrows connecting the concepts. Professional whiteboard style.
const PptxGenJS = require('pptxgenjs');
const path = require('path');
async function createWhiteboardPPT() {
const pptx = new PptxGenJS();
pptx.layout = 'LAYOUT_16x9';
pptx.author = 'AI Assistant';
pptx.title = 'Your Title Here';
pptx.subject = 'Your Subject Here';
const imgDir = '/path/to/your/images';
// Slide 1
const slide1 = pptx.addSlide();
slide1.addImage({
path: path.join(imgDir, 'slide1-image.png'),
x: 0, y: 0, w: 10, h: 5.625
});
// Slide 2
const slide2 = pptx.addSlide();
slide2.addImage({
path: path.join(imgDir, 'slide2-image.png'),
x: 0, y: 0, w: 10, h: 5.625
});
// Add more slides as needed...
// Save PPT
const outputPath = '/path/to/output/Your-PPT-Name.pptx';
await pptx.writeFile({ fileName: outputPath });
console.log('✅ Whiteboard style PPT created successfully!');
console.log('📁 File path: ' + outputPath);
}
createWhiteboardPPT().catch(err => {
console.error('❌ Error creating PPT:', err);
process.exit(1);
});
# 安装所需包 npm install pptxgenjs # 对于 nano-banana-pro(如本地运行) # 请确保已配置 uv 和 nano-banana-pro skill
project-folder/ ├── ppt_images/ │ ├── slide1-title.png │ ├── slide2-problem.png │ ├── slide3-architecture.png │ └── ... ├── create_ppt.js └── output.pptx
问题:生成的图像未达到预期白板风格 解决方案:优化提示词,明确强调 “hand-drawn”、“marker sketch”、“whiteboard presentation style” 等关键词
问题:生成图像中中文文字不够清晰 解决方案:在提示词中加入 “clear Chinese characters”,并提高图像分辨率(推荐 2K 或 4K)
问题:颜色表现不够醒目 解决方案:在提示词中显式指定颜色用法,例如:“red accent circle”、“green checkmark”、“blue underline”