scientific-skills/Others/PPTX-Skill/SKILL.md
Create, edit, and extract content from PowerPoint (.pptx) files; use when you need to generate slides programmatically, update existing decks, or export slide previews.
npx skillsauth add aipoch/medical-research-skills PPTX SkillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
.pptx deck from a short prompt or structured outline (e.g., "5 slides about machine learning")..pptx files and populate them with slides..pptx templates and extend them.>=3.7>=0.6.21>=9.0.0 (image handling)>=2.28.0 (downloading remote images)>=7.0 (e.g., PPTX → PDF conversion)# pip install python-pptx Pillow requests
from pptx import Presentation
from pptx.util import Inches
from PIL import Image
import requests
from io import BytesIO
def create_presentation(output_path: str) -> None:
prs = Presentation()
# Slide 1: Title slide
slide = prs.slides.add_slide(prs.slide_layouts[0])
slide.shapes.title.text = "Machine Learning"
slide.placeholders[1].text = "A 5-slide overview generated programmatically"
# Slide 2: Bullets
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "What is Machine Learning?"
tf = slide.shapes.placeholders[1].text_frame
tf.clear()
tf.text = "A field of AI focused on learning patterns from data"
for bullet in [
"Supervised learning",
"Unsupervised learning",
"Reinforcement learning",
]:
p = tf.add_paragraph()
p.text = bullet
# Slide 3: Add an image (downloaded)
img_url = "https://upload.wikimedia.org/wikipedia/commons/4/44/Neural_network.svg"
resp = requests.get(img_url, timeout=30)
resp.raise_for_status()
# Ensure the image is in a format python-pptx can embed reliably
img = Image.open(BytesIO(resp.content)).convert("RGBA")
buf = BytesIO()
img.save(buf, format="PNG")
buf.seek(0)
slide = prs.slides.add_slide(prs.slide_layouts[5]) # Title Only
slide.shapes.title.text = "Neural Networks (Illustration)"
slide.shapes.add_picture(buf, Inches(1), Inches(1.6), width=Inches(8))
# Slide 4: Edit text on an existing slide (example: update slide 2 title)
prs.slides[1].shapes.title.text = "Machine Learning: Definition & Types"
# Slide 5: Summary
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "Summary"
tf = slide.shapes.placeholders[1].text_frame
tf.clear()
tf.text = "Key takeaways"
for bullet in [
"ML learns from data to make predictions or decisions",
"Model choice depends on task and constraints",
"Evaluation and iteration are essential",
]:
p = tf.add_paragraph()
p.text = bullet
prs.save(output_path)
def list_slide_titles(pptx_path: str) -> list[str]:
prs = Presentation(pptx_path)
titles = []
for slide in prs.slides:
title_shape = slide.shapes.title if hasattr(slide.shapes, "title") else None
if title_shape is not None and getattr(title_shape, "text", "").strip():
titles.append(title_shape.text.strip())
else:
titles.append("(no title)")
return titles
if __name__ == "__main__":
out = "machine_learning.pptx"
create_presentation(out)
print("Created:", out)
print("Slide titles:", list_slide_titles(out))
python-pptx to read/write the Open XML .pptx format.prs.slide_layouts[0] for title slide, prs.slide_layouts[1] for title+content). Layout availability can vary by template.TextFrame and Paragraph objects. Clearing and rebuilding a text frame is a common approach to ensure consistent bullet structure.requests.Pillow (e.g., converting to PNG) before embedding to improve compatibility.Inches(x)) and optional sizing parameters.slide.shapes.title when present; some slides may not have a title placeholder.python-pptx does not natively render slides to images or PDF. Thumbnail/PDF export generally requires external rendering (commonly LibreOffice in headless mode).pptx_skill_result.md unless the skill documentation defines a better convention.Run this minimal verification path before full execution when possible:
python scripts/__init__.py --help
Expected output format:
Result file: pptx_skill_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
tools
Generates complete conventional oncology bulk-transcriptome biomarker and hub-gene research designs from a user-provided cancer type and study direction. Always use this skill whenever a user wants to design, plan, or build a tumor bioinformatics study centered on differential expression, prognostic filtering or risk modeling, PPI-based hub-gene prioritization, diagnostic/prognostic evaluation, clinical association, immune infiltration context, methylation context, and optional tissue or cell validation. Covers five study patterns (signature-first prognostic workflow, hub-gene-first biomarker workflow, hybrid signature-to-hub workflow, immune-context biomarker workflow, translational validation workflow) and always outputs four workload configs (Lite / Standard / Advanced / Publication+) with recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, publication upgrade path...
development
Generates complete conventional non-oncology bioinformatics research designs from a user-provided disease context, process-related gene family or biological theme, and validation direction. Use when a study centers on multi-dataset bulk transcriptome integration, DEG analysis, process-gene intersection, enrichment analysis, GSEA, PPI hub-gene prioritization, TF/miRNA regulatory networks, ROC-based biomarker evaluation, and immune infiltration analysis. Covers five study patterns (process-DEG discovery, enrichment/GSEA interpretation, hub-gene prioritization, regulatory-network and immune interpretation, multi-layer public validation) and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.
tools
Plans confounder control, variable adjustment logic, and bias mitigation strategies at the protocol stage for clinical, epidemiologic, translational, observational, and biomarker studies. Always use this skill when a user needs to identify major confounders, decide which variables should or should not be adjusted for, compare matching/stratification/weighting approaches, anticipate selection or measurement bias, or pressure-test a study design before execution. Focus on bias sensing, causal structure awareness, variable-role classification, and critical design review rather than generic statistical advice.
testing
Generates complete comparative network-toxicology research designs from a user-provided exposure pair, shared toxic phenotype, and validation direction. Use when a study centers on two related exposures under one outcome and needs target collection, shared-vs-specific target decomposition, enrichment, PPI hub prioritization, docking, optional transcriptomic cross-checks, and conservative mechanistic synthesis. Covers five study patterns and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.