Skip to content
aippt logo

AIPPT - AI PPT 生成工作流

aippt

AIPPT - 基于模板定制化生成 PPT。垫图约束风格 → 提示词替换内容 → AI 生图 → 打包 PPTX。

SKILL.md

Full skill instructions

<!-- input: 文章/内容 + PPT模板 output: 完整的 .pptx 文件 pos: 核心 skill,PPT 自动化生成 架构守护者:一旦我被修改,请同步更新: 1. 本文件的头部注释 2. README.md 索引表 -->

AIPPT - AI PPT 生成工作流

核心理念:用垫图约束风格,用提示词替换内容,AI 生成每一页。

什么时候用

  • 有现成 PPT 模板,想快速生成新内容
  • 需要批量生成多页 PPT
  • 希望每页风格一致但内容不同

工作流程

导出图片 → 分析模板 → 内容分段 → 表达形式设计 → 内容映射 → 上传图床 → 调用API → 下载保存 → 打包PPTX
    ↓          ↓          ↓            ↓            ↓          ↓         ↓          ↓          ↓
  垫图      布局库      页面规划    最佳表达形式    提示词      URL      生成图片    PNG文件    .pptx

快速开始

Step 1: 准备垫图

读 01_导出方法.md — PPT 导出为图片

Step 2: 分析模板

读 02_PPT模板分析方法.md — 输出布局库

Step 3: 规划内容

读 03_内容分段方法.md — 确定每页放什么

Step 3.5: 表达形式设计(关键)

对每页内容问:最佳表达形式是什么?

  • 模板有合适布局 → 用模板
  • 模板没有 → 用创意页面(风格不变,表达自由)

详见 04_内容映射方法.md 的"表达形式设计"章节

Step 4: 映射+提示词

读 04_内容映射方法.md — 内容匹配布局,生成提示词

提示词规范见 02_PPT模板分析方法.md 第六章

Step 5: 生成图片

上传垫图 → 调用 API → 下载保存

Step 6: 打包 PPT

node scripts/​images2pptx.js <图片目录> output.pptx

文件索引

文件地位功能
01_导出方法.md阶段1PPT 导出为图片(垫图)
02_PPT模板分析方法.md阶段2分析模板,输出布局库
03_内容分段方法.md阶段3内容拆分为页面
04_内容映射方法.md阶段4内容匹配布局,生成提示词
05_图床上传方法.md工具图床上传获取 URL
config/​secrets.md配置API Key
scripts/​images2pptx.js工具图片打包成 PPTX

API 调用

读取配置

从 config/​secrets.md 获取 API Key

调用生图 API

curl -s -X POST "https://api.apicore.ai/​v1/​images/​generations" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/​json" \
  -d '{"model": "gemini-3-pro-image-preview-4k", "prompt": "提示词", "size": "16:9", "n": 1}'

模型选择

模型说明
gemini-3-pro-image-preview标准版
gemini-3-pro-image-preview-2k2K 高清
gemini-3-pro-image-preview-4k4K 超清(默认)

下载图片

curl -s -o "输出.png" "图片URL"

打包 PPTX

# 首次使用安装依赖
npm install pptxgenjs

# 打包
node scripts/​images2pptx.js <图片目录> [输出文件名]
  • 自动识别 jpg/​png/​gif/​webp
  • 按文件名数字排序
  • 输出 16:9 比例

目录结构

AIPPT2/
├── SKILL.md              # 入口(本文件)
├── README.md             # 总览
├── 01_导出方法.md
├── 02_PPT模板分析方法.md
├── 03_内容分段方法.md
├── 04_内容映射方法.md
├── 05_图床上传方法.md
├── config/
│   └── secrets.md        # API Key
└── scripts/
    └── images2pptx.js    # 打包脚本

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View