alphafold2
Predict protein structure for monomers and multimers with AlphaFold2 via the ColabFold runner (Mirdita et al. 2022,…
Use when creating a PowerPoint .pptx slide deck or presentation, turning analysis results, figures, or a literature review into slides, or reading, editing, or filling a template for an existing .pptx/.potx. Covers python-pptx in the Notebook, slide design rules, native charts,
Claude Code
$ npx -y skills add aipoch/open-science --skill pptx-generation --agent claude-code
Codex
$ npx skills add aipoch/open-science --skill pptx-generation -a codex -y
Cursor
$ npx skills add aipoch/open-science --skill pptx-generation -a cursor -y
Gemini CLI
$ npx skills add aipoch/open-science --skill pptx-generation -a gemini-cli -y
GitHub Copilot
$ npx skills add aipoch/open-science --skill pptx-generation -a github-copilot -y
OpenCode
$ npx skills add aipoch/open-science --skill pptx-generation -a opencode -y
Windsurf
$ npx skills add aipoch/open-science --skill pptx-generation -a windsurf -y
name: pptx-generation description: Use when creating a PowerPoint .pptx slide deck or presentation, turning analysis results, figures, or a literature review into slides, or reading, editing, or filling a template for an existing .pptx/.potx. Covers python-pptx in the Notebook, slide design rules, native charts, speaker notes, CJK fonts, layout QA without an Office engine, preview limits, and Artifact delivery. license: Apache-2.0
Build decks with python-pptx in the Notebook. User requirements for content, template, brand, and design take precedence over the defaults below.
| Task | Approach | | ------------------------------ | --------------------------------------------------------------------------------------------------------- | | Create a new deck | `Presentation()` with a 16:9 size, Blank layout, shapes placed explicitly | | Fill a template or edit a deck | `Presentation("inputs/template.pptx")`, reuse its layouts, replace run text | | Read content | `pptx_outline(path)`; no code is needed to summarize an attached deck if `read_document` already shows it |
Run all deck code with `notebook_execute`, not the shell. Install `python-pptx` and `pillow` with `manage_packages` if `inspect_packages` does not show them; never run `pip` in a cell. Attached files are under `inputs/` relative to the Notebook working directory. Write the deck to the working directory, never over an input and never into this skill's directory.
The registered helpers are injected with `kernelSkillIds`. Call them directly without importing, and repeat `kernelSkillIds` in every cell that uses them:
{
"kernelSkillIds": ["pptx-generation"],
"code": "report = lint_pptx('deck.pptx')\nprint(report['ok'], report['issues'][:20])"
}| Helper | Purpose | | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pptx_outline(path)` | Per-slide layout, title, text blocks, notes, picture/chart/table counts | | `lint_pptx(path, *, margin_in=0.4, min_font_pt=10)` | Off-slide shapes, estimated text overflow, leftover placeholder text, edge margins, overlapping text boxes, empty placeholders, small or unreliable fonts | | `place_picture(slide, path, left, top, width, height, *, align="center")` | Insert a PNG/JPEG fitted inside a box (inches) without distortion | | `set_run_fonts(run, *, latin=None, east_asian=None)` | Set Latin and East Asian typefaces; `run.font.name` alone does not affect Chinese text | | `render_pptx_pages(path, out_dir="pptx-pages")` | Slide PNGs through LibreOffice when the user has it installed; otherwise returns `available: False` |
from pptx import Presentation
from pptx.chart.data import CategoryChartData
from pptx.dml.color import RGBColor
from pptx.enum.chart import XL_CHART_TYPE, XL_LEGEND_POSITION
from pptx.enum.text import MSO_ANCHOR, PP_ALIGN
from pptx.util import Inches, Pt
INK, ACCENT, MUTED = RGBColor.from_string("1E2761"), RGBColor.from_string("F96167"), RGBColor.from_string("6B7280")
deck = Presentation()
deck.slide_width, deck.slide_height = Inches(13.333), Inches(7.5) # 16:9
BLANK = deck.slide_layouts[6]
def text(slide, x, y, w, h, value, size, *, bold=False, color=INK, align=PP_ALIGN.LEFT):
box = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
frame = box.text_frame
frame.word_wrap = True
frame.vertical_anchor = MSO_ANCHOR.TOP
for i, line in enumerate(value if isinstance(value, list) else [value]):
paragraph = frame.paragraphs[0] if i == 0 else frame.add_paragraph()
paragraph.alignment = align
paragraph.space_after = Pt(6)
run = paragraph.add_run()
run.text = line
run.font.size, run.font.bold, run.font.color.rgb = Pt(size), bold, color
set_run_fonts(run, latin="Calibri", east_asian="Microsoft YaHei")
return box
slide = deck.slides.add_slide(BLANK)
text(slide, 0.6, 0.5, 12.1, 1.0, "Treatment B halves relapse at 12 months", 36, bold=True)
data = CategoryChartData()
data.categories = ["Placebo", "A", "B"]
data.add_series("Relapse (%)", (41, 33, 19))
chart = slide.shapes.add_chart(XL_CHART_TYPE.COLUMN_CLUSTERED, Inches(0.6), Inches(1.8),
Inches(7.4), Inches(4.6), data).chart
chart.has_legend = False
chart.plots[0].has_data_labels = True
chart.plots[0].data_labels.font.size = Pt(14)
chart.series[0].format.fill.solid()
chart.series[0].format.fill.fore_color.rgb = ACCENT
chart.value_axis.has_major_gridlines = False
text(slide, 8.4, 1.8, 4.3, 3.0, ["n = 412, randomized", "Follow-up 12 months", "HR 0.46 (95% CI 0.31-0.68)"], 16)
text(slide, 0.6, 6.6, 12.1, 0.4, "Source: trial export inputs/relapse.csv (n = 412)", 10, color=MUTED)
slide.notes_slide.notes_text_frame.text = "Spoken explanation goes here, not on the slide."
deck.save("deck.pptx")python-pptx rules that prevent common defects:
The open-source AI research workbench for scientific research and agent workflows. Local-first, model-agnostic desktop app with extensible skills, MCP tools and connectors, Python/R execution and traceable artifacts for reproducible research on macOS, Windows and Linux.
Predict protein structure for monomers and multimers with AlphaFold2 via the ColabFold runner (Mirdita et al. 2022,…
Structure prediction for protein, nucleic-acid, and small-molecule complexes with Boltz-2 (Passaro & Wohlwend et al. 2025,…
Predict genome-wide functional tracks (RNA-seq, CAGE, DNase, ChIP) from DNA sequence with Borzoi. Use this skill when: (1)…
Structure prediction for protein, nucleic-acid, and small-molecule complexes with the Chai-1 foundation model (Chai Discovery…
Prepare reproducible setup instructions and validate a user-managed named software environment on an Open-Science SSH Compute…
Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…
Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…
Search literature across sources, verify or manage citations, and build MeSH strategies or citation-impact audits. Use for…