P

PPTX Skill

Create professional PowerPoint presentations with slide layouts, charts, images, transitions, and speaker notes. Great for automated reporting, pitch deck generation, and data visualization presentations.

SkillAnthropicdocumentationv1.0.0MIT
0 views0 copies

Description

This skill creates .pptx PowerPoint files programmatically using pptxgenjs. Supports slide layouts, text formatting, images, charts, tables, shapes, speaker notes, and master slides.

Instructions

When the user asks you to create presentations, follow these patterns:

Basic Presentation

const PptxGenJS = require('pptxgenjs'); const pptx = new PptxGenJS(); // Title slide const slide1 = pptx.addSlide(); slide1.addText('Q4 Performance Review', { x: 0.5, y: 1.5, w: '90%', fontSize: 36, bold: true, color: '1F2937', align: 'center', }); slide1.addText('December 2025', { x: 0.5, y: 3.0, w: '90%', fontSize: 18, color: '6B7280', align: 'center', }); // Content slide with bullet points const slide2 = pptx.addSlide(); slide2.addText('Key Highlights', { x: 0.5, y: 0.3, w: '90%', fontSize: 28, bold: true, color: '1F2937', }); slide2.addText([ { text: 'Revenue up 23% year-over-year', options: { bullet: true, fontSize: 18 } }, { text: 'Customer retention at 94%', options: { bullet: true, fontSize: 18 } }, { text: 'Launched 3 new product lines', options: { bullet: true, fontSize: 18 } }, ], { x: 0.5, y: 1.2, w: '85%', lineSpacing: 32 }); await pptx.writeFile({ fileName: 'presentation.pptx' });

Adding Charts

const slide = pptx.addSlide(); slide.addChart(pptx.charts.BAR, [ { name: 'Revenue ($M)', labels: ['Q1', 'Q2', 'Q3', 'Q4'], values: [12.5, 14.2, 16.8, 19.3], }, ], { x: 0.5, y: 1.0, w: 8.5, h: 4.5, showTitle: true, title: 'Quarterly Revenue', showValue: true, });

Adding Tables

const rows = [ [{ text: 'Metric', options: { bold: true, fill: '4472C4', color: 'FFFFFF' } }, { text: 'Value', options: { bold: true, fill: '4472C4', color: 'FFFFFF' } }], ['Active Users', '12,450'], ['MRR', '$89,200'], ['Churn Rate', '2.3%'], ]; slide.addTable(rows, { x: 0.5, y: 1.0, w: 9.0, colW: [4.5, 4.5] });

Adding Images

slide.addImage({ path: './chart-screenshot.png', // or data: 'base64string...' x: 1.0, y: 1.0, w: 6.0, h: 4.0, });

Rules

  • Install dependency: npm install pptxgenjs
  • Default slide size is 10" x 7.5" (standard 16:9 widescreen)
  • Coordinates use inches — (0,0) is top-left
  • Always add a title slide as the first slide
  • Include speaker notes for important slides: slide.addNotes('Talking point...')
  • Use consistent color scheme across all slides
  • Keep text minimal — presentations should be visual
  • Limit bullet points to 5-6 per slide maximum
  • Chart types available: BAR, LINE, PIE, DOUGHNUT, AREA, SCATTER

Examples

User: Create a pitch deck for my startup Action: Generate 8-10 slides: title, problem, solution, market, traction, team, financials, ask

User: Turn this data into a presentation Action: Create slides with appropriate charts, tables, and summary text

User: Make a weekly status report deck Action: Template with progress bars, KPI tables, and next-steps slides

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates