pptx
Create and edit slide decks, generate slides from templates, and extract text.
ANanthropics/skills203k2,822 new stars in the last 7 days
Generate, edit, and read PowerPoint presentations. Create polished decks from scratch with PptxGenJS, edit existing PPTX/POTX via XML workflows, or extract text with markitdown. Triggers: PPT, PPTX, POTX, PowerPoint, presentation, slide, deck, slides.
Create native editable PPTX decks in SourceWeft's sandbox. Keep the default path short: route the task, read only the one reference that applies, write one generation script, run one generation phase, run one QA phase, then publish.
From-scratch decks must feel like finished presentations, not documents split across slides. Use topic-specific visual direction and varied slide structures, but do not use this skill's examples as a fixed template.
When <skill_runtime_config name="ppt-deck"> is present in the runtime
context, treat those values as user-selected generation constraints:
slideCount: target number of slides for the finished deck.language: main deck language; auto means infer from the user's request.visualDensity: how much information each slide should carry.stylePreset: visual direction for layout, typography, and tone.When stylePreset is set, map it to a design-system theme preset:
| stylePreset | Theme preset | Palette anchor |
|---|---|---|
| auto | Pick by topic via the Topic-to-Preset Map in design-system.md | — |
| executive | Executive Strategy | charcoal/navy + gold accent |
| product | Product Launch | launch navy + coral accent |
| academic | Academic Explainer | deep teal + warm cream surfaces |
| training | Learning Studio | blackboard green + sticky yellow |
| minimal | Minimal Focus | white + ink + one topic accent |
| editorial | Editorial Print | paper white + ink + serif display |
With auto, keep the default reading path. With any other value, read the
mapped preset's section in design-system.md
and apply its palette, motif, background rhythm, and layout mix; the user
picked it, so it outranks topic-based preset selection.
Follow these options unless they conflict with higher-priority system rules or the user's latest explicit request.
| Task | What to do |
|---|---|
| Read or analyze a PPTX | Use python3 -m markitdown <deck.pptx> |
| Edit an existing deck/template | Read editing.md |
| Create a deck from scratch | Read pptxgenjs.md |
Default create-from-scratch work should read only pptxgenjs.md. Default
template/editing work should read only editing.md. Read optional references
only when the request or a concrete failure requires them:
visual: decision — generated (needs a
real generated image: cover hero, editorial illustration, topic texture),
procedural (native shapes, diagram, icon system, or shaped layout), or
chart (native data chart). Keep it to a few lines. Do not create separate
planning files, QA ledgers, or manifest files unless the user asks.visual: generated, you
MUST call generate_image (at most 3 images total per deck), then stage each
result into the sandbox with prepare_sandbox_workspace using
{ artifactId, sandboxPath } entries, and reference the staged files in
deck.js with addImage and real pixel dimensions. Procedural shapes and
icon glyphs are NOT a substitute for a generated visual. Fall back to
procedural SVG/PNG only after a generate_image call actually fails, and
when you do, remove that slide's image promise instead of leaving it missing.execute: confirm the prepared builder exists, run
node --check, then run the builder.execute: extract content with markitdown, run File QA with
scripts/validate_pptx.py, convert the PPTX to PDF with LibreOffice, render
images with pdftoppm, create the preview image contract from the first
rendered slide, then print explicit stage markers, QA_IMAGE_COUNT,
PREVIEW_IMAGE_PATH, and the discovered slide image paths.review_deck_visuals with the slide image paths from final QA; repair
severe verdicts once as described in the QA section.PREVIEW_IMAGE_PATH from final QA.Build a coherent narrative with one point per slide. Prefer process diagrams, comparisons, concept maps, data views, framework canvases, case/example slides, mixed-media layouts, recap matrices, and principle/quote posters over ordinary title-and-bullet pages.
markitdown.review_deck_visuals on the final file. For
template-derived decks, pass --original to validate_pptx.py.republishArtifactId
so the edit lands as a new version of the same artifact instead of creating
a duplicate. Only user-uploaded or otherwise unpublished decks publish as
new artifacts.For source-grounded decks, use the available source tools first and keep factual claims traceable to the user's provided material.
These corrupt files or make PowerPoint refuse the deck. Follow them even if you only read this SKILL.md:
#, no 8-digit alpha in the hex string.opacity 0-1, never bake alpha into color; offset must be >= 0.add* calls; clone fresh ones.addChart. On stacked/percentStacked bar or column
charts, never use dataLabelPosition: "outEnd" — use ctr, inEnd, or
inBase. Combo/secondary-axis charts need matching valAxes and catAxes.DATA object and pass
txt(DATA.key) into drawing calls.LAYOUT_16x9 is 10 × 5.625 inches; LAYOUT_WIDE is 13.333 × 7.5.
Do not mix coordinates between layouts. Keep all text and data inside the
chosen slide, including total bands and footers; File QA rejects text/data
elements that cross the slide boundary.FFFFFF) or a topic-specific dominant color. Cream is allowed only as
an intentional theme surface (for example Learning Studio or Academic
Explainer), never as a lazy default.Use the exact path printed by the deck builder.
Generation phase:
test -f "<prepared sandbox builder path>"
node --check "<prepared sandbox builder path>"
node "<prepared sandbox builder path>"
QA phase:
set -e
PPTX_ARTIFACT_PATH="<path printed by deck.js>"
QA_DIR="<sandbox QA directory>"
VALIDATE_PPTX="/skills/ppt-deck/scripts/validate_pptx.py"
mkdir -p "$QA_DIR"
echo "===CONTENT_QA==="
python3 -m markitdown "$PPTX_ARTIFACT_PATH" > "$QA_DIR/content.txt"
python3 -m markitdown "$PPTX_ARTIFACT_PATH" | grep -iE '\bx{3,}\b|lorem|ipsum|placeholder|\bTODO\b|\[insert|this.*(page|slide).*layout' || true
echo "===FILE_QA==="
python3 "$VALIDATE_PPTX" "$PPTX_ARTIFACT_PATH"
echo "===PPTX_TO_PDF==="
soffice --headless --convert-to pdf --outdir "$QA_DIR" "$PPTX_ARTIFACT_PATH"
PDF_PATH="$(find "$QA_DIR" -maxdepth 1 -type f -iname '*.pdf' | head -n 1)"
test -s "$PDF_PATH"
echo "PDF_PATH=$PDF_PATH"
echo "===PDF_TO_JPG==="
pdftoppm -jpeg -r 150 "$PDF_PATH" "$QA_DIR/slide"
find "$QA_DIR" -maxdepth 1 -type f -name 'slide*.jpg' | sort > "$QA_DIR/slide-images.txt"
QA_IMAGE_COUNT="$(wc -l < "$QA_DIR/slide-images.txt" | tr -d ' ')"
echo "QA_IMAGE_COUNT=$QA_IMAGE_COUNT"
test "$QA_IMAGE_COUNT" -gt 0
cat "$QA_DIR/slide-images.txt"
PREVIEW_SOURCE_PATH="$(head -n 1 "$QA_DIR/slide-images.txt")"
test -s "$PREVIEW_SOURCE_PATH"
cp "$PREVIEW_SOURCE_PATH" "$QA_DIR/preview.jpg"
echo "PREVIEW_IMAGE_PATH=$QA_DIR/preview.jpg"
After the QA execute completes, call review_deck_visuals with the image
paths from $QA_DIR/slide-images.txt, in deck order. This judges the rendered
slides with the workspace's vision model against the deck rubric (overflow,
overlap, low contrast, decorative stripes, cream defaults, bullet-only pages,
missing promised visuals, repeated layouts):
qa summary.passed: false or {skipped, reason}: visual QA did not pass. Record the
actual reason in the publish qa summary, set visualChecked: false, and
never claim that visual review passed or that there is no overflow. Missing
or failed batches are incomplete review, not approval. File QA must still
pass before publishing; fix any known clipped or overlapping content first.The slides preview image is the first slide image rendered from the final PPTX
during final QA. Always provide the printed PREVIEW_IMAGE_PATH to the
configured artifact publisher; do not use a preview image from an earlier render
or an unverified intermediate PPTX.
Do not assume a fixed filename such as slide-01.jpg; use the files returned by
find. The QA log must make the conversion visible with ===CONTENT_QA===,
===FILE_QA===, ===PPTX_TO_PDF===, ===PDF_TO_JPG===, QA_IMAGE_COUNT=<n>,
and PREVIEW_IMAGE_PATH=<path>. Do not publish when File QA fails,
QA_IMAGE_COUNT is zero, PREVIEW_IMAGE_PATH is missing, or
review_deck_visuals reported severe issues that have not been repaired, or a
slide the storyboard marked visual: generated is missing its staged generated
image in the final deck. A skipped visual QA does not block publishing, but
its reason must appear in the publish qa summary.
Do not run file against slide JPGs on the happy path. If a concrete debugging
failure needs MIME diagnostics, make that optional and non-blocking, and use the
discovered slide image paths from $QA_DIR/slide-images.txt instead of any
fixed QA directory.
If PPTX_ARTIFACT_PATH is missing or invalid, run one fallback discovery
command:
find "<sandbox task directory>" -type f -iname '*.pptx'
If fallback finds exactly one PPTX, use it for QA and publishing. Otherwise rerun the deck program with the required stdout protocol instead of guessing.
execute per phase.ls, file, which, identify, or generic
environment probes on the happy path.deck.js once, then rerun the
generation phase once.review_deck_visuals returns severe verdicts (overflow, overlap, clipped
or unreadable content, stripes through text), fix the deck builder first and
rerender the affected slides or the full deck before publishing. One repair
round, then publish with remaining findings recorded in the qa summary.The sandbox image preinstalls Node.js, npm, Python 3, LibreOffice, poppler-utils,
CJK fonts, pptxgenjs, sharp, react, react-dom, and react-icons. File QA
uses /skills/ppt-deck/scripts/validate_pptx.py from this skill bundle.
Create and edit slide decks, generate slides from templates, and extract text.
ANanthropics/skills203k2,822 new stars in the last 7 days
Create and edit Word docs with TOC, page numbers, headers and more.
ANanthropics/skills203k2,822 new stars in the last 7 days
Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.
ANanthropics/skills203k2,822 new stars in the last 7 days
Co-write specs, proposals and decision docs through a structured, iterative workflow.
ANanthropics/skills203k2,822 new stars in the last 7 days
Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.
ANanthropics/skills203k2,822 new stars in the last 7 days
Create posters and visual art as PNG or PDF, guided by a design philosophy.
ANanthropics/skills203k2,822 new stars in the last 7 days