Presentation builder
Skill davendra/presentation-builder/skills/presentation-builder
This skill should be used when building professional PowerPoint presentations, creating slide decks with icons or AI-generated images, capturing application screenshots for appendices, or converting HTML slides to PPTX format. Integrates Go Bananas for hero image generation, react-icons with Sharp for icon rendering, Playwright for authenticated screenshot capture, and pptxgenjs for final PPTX output. Use for: "create presentation", "build pptx", "PowerPoint presentation", "create slide deck", "add screenshots to slides", "generate presentation images", "HTML to PowerPoint", "icons for slides", "capture app screenshots for presentation", "Go Bananas presentation images", "Sharp image processing".From its SKILL.md
npx -y skills add davendra/presentation-builder --skill presentation-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
9.0 KB, as published. Nobody here has run it
Presentation Builder
Build professional PowerPoint presentations with automated screenshot capture, icons, AI-generated images, and HTML-to-PPTX conversion.
Core Workflow
- Plan slides - Define structure (main content + optional appendix screenshots)
- Generate visuals - Use Go Bananas for hero images, Sharp for processing
- Create icons - Render react-icons as PNG with Sharp
- Capture screenshots - Use Playwright for authenticated app screenshots
- Create HTML slides - Use 720pt x 405pt (16:9) template
- Build PPTX - Convert HTML to PowerPoint with pptxgenjs
Quick Start Commands
This plugin provides 4 slash commands for common tasks:
| Command | Description |
|---|---|
/new-presentation | Scaffold a new presentation project with folders, scripts, and sample files |
/build-presentation | Build PPTX from HTML slides in the current project |
/capture-screenshots | Configure and run Playwright screenshot capture |
/render-icons | Generate PNG icons from react-icons library |
Icons with React-Icons + Sharp
CRITICAL: Icons must be rasterized to PNG before use in slides. HTML slides cannot render SVG directly.
To render icons:
- Create a rendering script using react-icons + Sharp
- Export icons as PNG to
assets/icons/ - Reference PNGs in HTML slides
See icons-guide.md for complete rendering script, icon library reference, and batch processing patterns.
Usage in HTML slides:
<img src="../assets/icons/icon-orders.png" width="60" height="60" />
Go Bananas Image Generation (Optional)
If Go Bananas MCP is available, use it for professional hero images, backgrounds, and visual elements. The plugin works without Go Bananas - you can use any images.
generate_image({
prompt: "Professional sports apparel manufacturing, athletic jerseys on production line, modern factory with red accent lighting, cinematic wide shot",
aspect_ratio: "16:9",
n: 3 // Generate options for user approval
})
Best practices:
- Always use
16:9aspect ratio for slide backgrounds - Generate 2-3 options before applying
- Include brand colors in prompt (e.g., "red accent lighting")
- Use descriptive, industry-specific prompts
See go-bananas-guide.md for prompt templates, style modifiers, and post-processing workflow.
Sharp Image Processing
Use Sharp for post-processing images before adding to slides.
Common operations:
- Darken backgrounds for text readability
- Add vignette effect (fade edges)
- Apply color tints/brand overlays
- Blur backgrounds
- Resize to slide dimensions (1920x1080)
Example - Darken for text overlay:
await sharp('hero-image.jpg')
.resize(1920, 1080, { fit: 'cover' })
.composite([{
input: Buffer.from(`
<svg width="1920" height="1080">
<rect width="1920" height="1080" fill="black" opacity="0.4" />
</svg>
`),
blend: 'over'
}])
.jpeg({ quality: 90 })
.toFile('hero-darkened.jpg');
See sharp-guide.md for vignette effects, gradient overlays, color tints, and batch processing.
Screenshot Capture
Use Playwright for authenticated app screenshots. See scripts/capture-screenshots.js for a complete template.
Key patterns:
const { chromium } = require('playwright');
const VIEWPORT = { width: 1920, height: 1080 };
// Wait for dynamic content
await page.goto(url, { waitUntil: 'networkidle' });
await delay(5000); // Extra delay for data-heavy pages
// Login flow
await page.fill('input[type="email"]', email);
await page.fill('input[type="password"]', password);
await page.click('button[type="submit"]');
await page.waitForURL(/\/dashboard/);
See screenshots-guide.md for authentication flows, handling dynamic content, and batch capture scripts.
HTML Slide Template
Standard slide dimensions: 720pt x 405pt (16:9 ratio)
Appendix screenshot slide:
<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 720pt; height: 405pt; margin: 0; padding: 0;
font-family: Arial, sans-serif; background: #f8fafc;
}
.container {
padding: 20pt 30pt; display: flex; flex-direction: column;
height: 100%; box-sizing: border-box;
}
.slide-tag {
color: #E31B23; font-size: 9pt; text-transform: uppercase;
letter-spacing: 2pt; margin: 0 0 5pt 0;
}
h2 { color: #1e3a5f; font-size: 22pt; font-weight: bold; margin: 0 0 15pt 0; }
.screenshot-container {
flex: 1; display: flex; justify-content: center; align-items: center;
background: #fff; border-radius: 8pt;
box-shadow: 0 2pt 8pt rgba(0,0,0,0.1); overflow: hidden;
}
.screenshot { max-width: 100%; max-height: 100%; object-fit: contain; }
.caption { color: #64748b; font-size: 9pt; text-align: center; margin: 10pt 0 0 0; }
</style>
</head>
<body>
<div class="container">
<p class="slide-tag">Appendix - Section Name</p>
<h2>Slide Title</h2>
<div class="screenshot-container">
<img class="screenshot" src="../assets/screenshot-name.png" />
</div>
<p class="caption">Description of what this screenshot shows</p>
</div>
</body>
</html>
See slide-templates.md for title slides, content slides, feature cards with icons, stats slides, and more.
Build Script Pattern
This plugin bundles html2pptx.js - copy it to your presentation project:
const pptxgen = require('pptxgenjs');
const html2pptx = require('./html2pptx.js');
const path = require('path');
const slides = [
'slide01-title.html',
'slide02-content.html',
'slide31-appendix-dashboard.html',
];
async function buildPresentation() {
const pptx = new pptxgen();
pptx.layout = 'LAYOUT_16x9';
pptx.title = 'Presentation Title';
const slidesDir = path.join(__dirname, 'slides');
for (const slideFile of slides) {
await html2pptx(path.join(slidesDir, slideFile), pptx);
}
await pptx.writeFile({ fileName: 'output.pptx' });
}
buildPresentation();
Directory Structure
presentation/
├── build-presentation.js # Main build script
├── html2pptx.js # HTML-to-PPTX converter (bundled in plugin)
├── package.json # Dependencies
├── slides/
│ ├── slide01-title.html
│ ├── slide02-content.html
│ └── slide31-appendix-*.html
└── assets/
├── hero-image.jpg # Go Bananas generated
├── hero-darkened.jpg # Sharp processed
├── icons/
│ ├── icon-orders.png
│ └── icon-dashboard.png
└── screenshot-*.png
Bundled Themes
This plugin includes 4 professional color themes:
| Theme | Primary | Secondary | Accent |
|---|---|---|---|
| Corporate Blue | #1e3a5f (navy) | #f8fafc (light gray) | #3b82f6 (blue) |
| Modern Red | #E31B23 (red) | #1e293b (dark gray) | #fbbf24 (amber) |
| Tech Green | #10b981 (teal) | #0f172a (dark) | #06b6d4 (cyan) |
| Warm Orange | #f97316 (orange) | #fef3c7 (cream) | #78350f (brown) |
See examples/themes/ for CSS files you can copy into your project.
Dependencies
npm install pptxgenjs playwright sharp react react-dom react-icons
Reference Documentation
| Guide | Description | When to Read |
|---|---|---|
| html2pptx-guide.md | HTML-to-PPTX conversion details | Building presentations |
| icons-guide.md | React icons library & rendering | Adding icons to slides |
| sharp-guide.md | Image processing operations | Processing backgrounds |
| go-bananas-guide.md | AI image generation prompts | Creating hero images |
| screenshots-guide.md | Playwright screenshot capture | Capturing app screenshots |
| slide-templates.md | Complete HTML slide templates | Creating slide content |
Bundled Scripts
| Script | Purpose |
|---|---|
scripts/capture-screenshots.js | Playwright screenshot template with auth |
scripts/render-icons.js | React icons to PNG batch converter |
scripts/process-images.js | Sharp image processing utilities |
scripts/html2pptx.js | HTML-to-PPTX converter |