/ac-document-gen:powerpointfrom ac-document-gen
Creates professional .pptx presentations programmatically using python-pptx. Generates slides with custom colors, shapes, images, and tables.
Ships in ac-document-gen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create professional PowerPoint presentations programmatically using python-pptx.
This skill enables creation of .pptx files with:
All temporary files go in /tmp/claude/pptx-project/ to avoid filesystem clutter.
Before starting, ask where to save the final .pptx:
~/Desktop/presentation.pptx~/Downloads/presentation.pptxmkdir -p /tmp/claude/pptx-project && cd /tmp/claude/pptx-project
uv init && uv add python-pptx Pillow
Write or adapt a script based on user requirements. Use scripts/create_presentation.py as reference.
cd /tmp/claude/pptx-project
uv run python create_presentation.py ~/Desktop/presentation.pptx
rm -rf /tmp/claude/pptx-project
DO NOT create "pastel and bubbly" designs. Common mistakes:
DO create bold, professional designs:
from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN
from pptx.enum.shapes import MSO_SHAPE # Required for rectangles/shapes
def add_background(slide, color: RGBColor):
"""Set slide background to solid color."""
fill = slide.background.fill
fill.solid()
fill.fore_color.rgb = color
# Vertical accent bar (title slides)
bar = slide.shapes.add_shape(
MSO_SHAPE.RECTANGLE,
left=Inches(0), top=Inches(0),
width=Inches(0.35), height=Style.SLIDE_HEIGHT
)
bar.fill.solid()
bar.fill.fore_color.rgb = Style.PRIMARY
bar.line.fill.background() # Remove border
# Horizontal accent line
line = slide.shapes.add_shape(
MSO_SHAPE.RECTANGLE,
left=Inches(1), top=Inches(4.5),
width=Inches(2), height=Inches(0.04)
)
line.fill.solid()
line.fill.fore_color.rgb = Style.ACCENT
line.line.fill.background()
# Instead of text bullets, use colored squares
for i, bullet in enumerate(bullets):
y_pos = 1.8 + (i * 1.0)
# Square marker
marker = slide.shapes.add_shape(
MSO_SHAPE.RECTANGLE,
left=Inches(0.8), top=Inches(y_pos + 0.12),
width=Inches(0.12), height=Inches(0.12)
)
marker.fill.solid()
marker.fill.fore_color.rgb = Style.PRIMARY
marker.line.fill.background()
# Text to the right of marker
text_box = slide.shapes.add_textbox(
Inches(1.15), Inches(y_pos), Inches(11), Inches(0.8)
)
# ... style text
The template script supports these slide types:
| Type | Use Case | Visual Style |
|---|---|---|
title | Opening slide | White bg, vertical accent bar, horizontal line |
section | Section dividers | Solid primary bg, white text, accent line |
content | Bullet point slides | White bg, top border line, square bullets |
closing | Thank you / contact | Dark bg, centered text, accent line |
blank | Custom layouts | White bg, optional title |
class Style:
# Use bold, saturated colors
PRIMARY = RGBColor(0, 82, 147) # Strong blue
SECONDARY = RGBColor(214, 102, 75) # Coral accent
ACCENT = RGBColor(218, 175, 65) # Gold highlight
# Clean backgrounds
BG_WHITE = RGBColor(255, 255, 255)
BG_DARK = RGBColor(33, 37, 41)
# Text colors
TEXT_PRIMARY = RGBColor(33, 37, 41)
TEXT_ON_DARK = RGBColor(255, 255, 255)
# Safe fonts
TITLE_FONT = "Arial"
BODY_FONT = "Arial"
When user asks: "Create a presentation about Q4 results"
.pptxcd /tmp/claude/pptx-project && uv init && uv add python-pptxscripts/create_presentation.py - Complete template with all slide typesreferences/layouts.md - Layout indices and placeholder detailsreferences/styling.md - Extended color schemes and styling patterns.pptx templateInches() and Pt() for consistent sizingMSO_SHAPE.RECTANGLE) over text characters for bulletsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alteredcraft/claude-code-plugins --plugin ac-document-gen3 skills in this plugin
/pdf-ocrParse PDF files to markdown using GLM-OCR via Ollama locally. Converts each page to an image, runs OCR, and outputs clean markdown. Use when the user wants to extract text from a PDF./qr-codeGenerate QR codes from URLs, text, or other data and save them as SVG, PNG, EPS, or PDF files. This skill should be used when the user asks to create, generate, or make a QR code for any content such as website URLs, text strings, WiFi credentials, contact info, or other data. Triggers include mentions of 'QR code', 'QR', 'barcode for a link', or requests to make a scannable code. Supports customization of colors, size, error correction level, and output format.Other plugins' skills for the same job