/science-skill:research-slidefrom science-skill
Builds editable Chinese research/defense slides (答辩/组会/汇报) from figures or results using python-pptx native shapes. Supports single-story and thesis/evidence/conclusion layouts with navy banner, two-column design, and boxed conclusions.
Ships in science-skill. 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.
Build editable Chinese research/defense slides from a figure. The deliverable is
a .pptx where text and chrome are native shapes (retypable, movable) and
only the figure panels are placed images — so the presenter can actually edit it.
The look is deliberately restrained: navy + one blue accent + red citations on
white, with the argument's logic made visible.
Two layout templates, chosen by what the slide has to say:
研究思路 on the
left; 研究发现 + a boxed quantitative conclusion on the right.)结论.)scripts/slide_kit.py — the helper library. Import it and build with it;
don't re-derive the CJK/subscript/shape plumbing by hand. Deck, Slide, and
components (banner, header, vdivider, highlight, cite,
citation_runs, box, conclusion, picture, corner_accent, …).scripts/crop_panels.py — figure PDF → tight panel images (render / detect /
crop). Read its header for the "don't convert PDF→PPTX directly" trap.scripts/render_check.py — render the .pptx to PNG so you can see it.references/design-system.md — palette, fonts, the two templates with
coordinate tables, narrative vocabulary, citations, verify checklist. Read
this before building — it has the numbers that make layouts land.references/examples/example_single_story.py and example_portfolio.py —
each template fully assembled on slide_kit. The fastest way to start is to
copy the closer one and swap in the new content.You need, per result: the figure (a PDF, or panel images), the citation(s)
with the author's role (共同一作 / 共同通讯作者 / 合作者), and enough physics
context to write honest narrative. If the figure is a paper's, its .tex or
caption usually has the exact titles and citations — check for them before
inventing anything. If citation or role is genuinely unknown, ask or use a clear
placeholder rather than guessing.
Look at the figure's own shape too: a tall flagship panel + smaller ones suits a two-column split; three comparable panels suit three evidence columns.
If you have clean panel images already, use them. Otherwise crop them from the figure PDF — render high-DPI, detect candidate boxes, crop with auto-trim:
python scripts/crop_panels.py detect figure.pdf --dpi 400
python scripts/crop_panels.py render figure.pdf fig.png --dpi 400
python scripts/crop_panels.py crop fig.png <x0> <y0> <x1> <y1> panels/a.png
Never run the figure PDF through LibreOffice's PDF→PPTX importer — it ignores clipping and dumps hidden images full-bleed. Render → crop → place instead.
This is where a figure becomes a defense slide. Grounded and tight: name what the
panel shows, then its significance; one idea per line; verbs of evidence (证实/
揭示/实证/印证), not hype. Use the section vocabulary (研究思路 / 实验挑战 /
技术突破 / 研究发现 / 研究亮点 / 结论). For the thesis template, make every
column support the same claim and tag each with its method. See
references/design-system.md → "Writing the narrative". You may draft this from
the physics, but flag anything you inferred (especially citations) so the user
can correct it.
Copy the closer example and adapt, or start from this skeleton:
import sys, os
sys.path.insert(0, "<skill>/scripts")
from slide_kit import Deck, run, NAVY, LBLUE, BLACK, BODY, RED, WHITE, GRAY
deck = Deck() # 16:9
s = deck.slide()
s.corner_accent()
s.header(0.42, 0.30, 12.5, [run("研究思路:…", size=16, bold=True, color=BLACK)], mark="□")
s.banner([run("核心论点,一句话,", size=15, bold=True, color=WHITE),
run("关键词", size=15, bold=True, color=LBLUE)], y=0.80)
# … columns, panels (s.picture), highlights (s.text/s.highlight), citations (s.cite) …
deck.save("out.pptx")
Coordinates are inches; the design-system doc gives working values for both
templates. s.picture(path, x, y, h=…) keeps aspect ratio and returns (w, h)
so you can place neighbours and captions.
python scripts/render_check.py out.pptx
Open the PNG and check it against the verify checklist in design-system.md:
overlaps, literal R_yx underscores (should be subscript runs), headers wrapped
to a stray second line, chemical subscripts (MnBi₂Te₄), aligned citations, and —
most important — that the logic reads without narration. Fix, rebuild, re-render
until clean.
LibreOffice's renderer only approximates PowerPoint. The .pptx is the
deliverable; tell the user to do a final check in PowerPoint, where CJK font
substitution (PingFang SC) can shift spacing slightly.
*_slide.pptx.references/design-system.md (opens in a new tab)references/examples/example_portfolio.py (opens in a new tab)references/examples/example_single_story.py (opens in a new tab)scripts/crop_panels.py (opens in a new tab)scripts/render_check.py (opens in a new tab)scripts/slide_kit.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/hardworking-paper-writerRevise an academic paper sentence by sentence with the author, stripping AI writing tells (stop-slop) while preserving the author's own voice. Use this whenever the user wants to polish, tighten, edit, proofread, or "de-slop" a paper, manuscript, draft, abstract, or thesis chapter — especially when they want careful interactive sentence-level revision rather than a one-shot rewrite. Trigger on requests like "help me revise my paper", "clean up my draft", "make my writing sound less AI", "go through my abstract line by line", or when they hand over a .tex/.md/.txt/.pdf paper to improve. Talks to the author through a local web UI (the paper with the current sentence highlighted, rewrite cards, chat, change log) instead of terminal prompts./paper-review-helperCopilot for scientific paper review. Use when reviewing a research paper (PDF/LaTeX), guiding section-by-section analysis, logging issues, and generating structured review responses. Talks to the reviewer through a local web UI (rendered sections, chat, issue log, decision cards) instead of terminal prompts./visionUse when you want to analyze, describe, or extract information from an image. Handles scientific figures, plots, experimental setups, and general image Q&A.npx claudepluginhub caidish/cai-tools --plugin science-skillOther plugins' skills for the same job