deck-generator
Generate professional presentations with AI-generated images. Use when asked to create a deck, presentation, pitch deck, or slides. Supports style presets (whiteboard, corporate, minimalist, etc). Uses Imagen 4.0 API for image generation and Google Slides API for assembly. Produces full decks from markdown content specs in minutes.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- deck-generator
- version
- 1.0.0
- homepage
- https://github.com/ericosiu/ai-marketing-skills
- description
- Generate professional presentations with AI-generated images. Use when asked to create a deck, presentation, pitch deck, or slides. Supports style presets (whiteboard, corporate, minimalist, etc). Uses Imagen 4.0 API for image generation and Google Slides API for assembly. Produces full decks from markdown content specs in minutes.
- description_en
- AI-powered slide deck generation with consistent visual styling
- description_zh
- AI 驱动的演示文稿生成,统一视觉风格的幻灯片
02 资源文件 2
- 参考文档requirements.txt82 B
- 脚本scripts/generate-deck.py6.3 KB
03 SKILL.md 正文
Deck Generator
Generate complete presentations where every slide is an AI-generated image in a consistent visual style.
Quick Start
- Read the content spec (user provides slide content or a markdown file)
- Read
references/styles.mdto pick or customize a visual style - Run
scripts/generate-deck.pywith content + style
Workflow
Step 1: Content Spec
Accept slide content in any format. Normalize to this structure per slide:
- Title: Bold headline
- Body: Key points, stats, or narrative
- Visual cues: Icons, diagrams, layouts described in words
If user provides a markdown file with --- separators, parse each section as a slide.
If user provides a topic only, generate 10-14 slides following standard deck structures.
Step 2: Style Selection
Available style presets:
| Style | Description |
|---|---|
whiteboard |
Hand-drawn sketch on white. Black ink, orange accents. |
corporate |
Navy/white/gold. Clean sans-serif. Professional. |
minimalist |
Pure white, electric blue accent. Maximum negative space. |
dark-tech |
Near-black background, neon green. Terminal aesthetic. |
playful |
Bright pastels, rounded shapes. Modern startup vibe. |
editorial |
Black/white with red spot color. Magazine aesthetic. |
Default: whiteboard. User can specify any preset or describe a custom style.
Step 3: Generate
# Set your API key
export GEMINI_API_KEY="your-gemini-api-key"
# Run the generator
python3 scripts/generate-deck.py \
--content slides.json \
--style whiteboard \
--title "Deck Title" \
[--output-dir ./output] \
[--aspect 16:9]
The script:
- Generates each slide image via Imagen 4.0 API
- Saves all images to the output directory
- Optionally creates a Google Slides presentation (requires Google Slides API credentials)
- Returns paths to all generated images
Step 4: Review & Iterate
To regenerate individual slides:
python3 scripts/generate-deck.py \
--content slides.json \
--style whiteboard \
--slides 3,7 \
--output-dir ./output
Key Details
- Cost: ~4 cents per image. A 14-slide deck costs roughly 56 cents in API calls.
- Speed: ~2 minutes for 14 slides.
- API: Imagen 4.0 via Google's Generative Language API
- Auth: Set
$GEMINI_API_KEYenvironment variable - Aspect ratios: 16:9 (default), 1:1, 4:3, 3:4, 9:16
- Image models:
imagen-4.0-generate-001(best quality),imagen-4.0-fast-generate-001(faster)
Content JSON Format
[
{"name": "01-title", "prompt": "Title slide: 'Your Deck Title' with company logo placeholder"},
{"name": "02-problem", "prompt": "Problem slide showing frustrated marketer staring at dashboard with declining metrics"},
{"name": "03-solution", "prompt": "Solution slide: AI agent workflow diagram with 3 connected boxes"}
]
Google Slides Integration (Optional)
To automatically create a Google Slides presentation, set up Google Slides API credentials:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"
python3 scripts/generate-deck.py \
--content slides.json \
--style whiteboard \
--title "My Deck" \
--google-slides \
--google-account your-email@example.com
04 同仓库更多 Skills
vercel-sandbox
Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.
slack
Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.
electron
Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.
dogfood
Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.