dsh-academic-ppt-ops
zzr-rui-997/dsh-academic-ppt-ops
Преобразует план в редактируемую в PowerPoint презентацию для групповых встреч, защиты диссертации и докладов на конференциях. Включает 31 тип академических страниц, 4 темы, встроенные диаграммы, формулы OMML, имитацию анимации и экспорт заметок докладчика. Трёхуровневая проверка качества охватывает заглушки контента, ограничения макета и просмотр отрендеренных слайдов.
Установка
dsh plugin --profile web add github:zzr-rui-997/dsh-academic-ppt-opsREADME
dsh-academic-ppt-ops
Academic slide production, packaged as a DeepSeek Harness bundle. It turns a Markdown outline into a natively editable PowerPoint deck — real text boxes, real tables, real native charts, real OMML formulas — instead of a pile of pasted images.
Installing the bundle registers the academic-ppt-ops skill, so the agent loads it whenever you ask for a group-meeting deck, a defense deck, a conference talk, or an edit to one you already have.
What it does
- 31 page types grouped into five families (structure / content / emphasis / analysis / academic), each with a field contract, so a page is described in the outline instead of hand-drawn.
- Three-layer QA gate — content layer (placeholder and field completeness), layout guard
R01-R16(body ≥18pt, title 26pt, overflow estimation, bounding-box overlap), and a render check on exported page images. A deck that fails a gate is not delivered as done. - Formulas at three levels: Unicode text (default), native OMML (
formulas.attach_omml_to_paragraph, editable by double-click in PowerPoint), and a MathML → screenshot fallback for exact typesetting. - Animations: uniform fade on every slide, or a staged reveal sequence per bullet group.
- Speaker notes → DOCX: the
notes:field of the outline becomes a speaking script, one section per slide. - Data-direct charts: point a
chart:page at an.xlsx/.csvfile and the build expands it into native chart categories and series. - Template slots: index a
template.pptxyou already own, then fill its text/image slots by explicitslide+shape_id— the template's non-editable decorations are never touched. - Four colour themes (
academic_blue,gray_white,blue_gray,violet_academic), each a plain JSON of palette, type scale and decoration flags, so you can copy one and make your own.
What is inside
skills/academic-ppt-ops/
├── SKILL.md the operating rules the agent reads
├── references/ page-type contract, QA rules R01-R16, design rules,
│ chart guide, and three scenario skeletons
├── scripts/ 24 scripts: builder, three QA gates, formulas,
│ animations, charts (native + Pillow fallback),
│ template index/fill, speech export, data feed,
│ parallel page split/merge, COM export helpers
├── themes/ four palette/type-scale JSONs
├── profiles/ one preference-file template
└── examples/ one formula-syntax example
Install
As a bundle (recommended) — install dsh-academic-ppt-ops from npm through Plugins → Add plugin, or from the plugin market once the listing is live. The bundle registers the skill for you.
As a plain skill — copy the directory and skip the bundle entirely:
cp -r skills/academic-ppt-ops ~/.dsh/skills/
Either way the agent discovers SKILL.md and loads it on demand.
Use
- Ask for the deck and say which scenario you want; the skill reads your profile (or asks once) and writes an
outline.mdyou confirm before anything is generated. - Group meeting — 12 body pages + 3 backup pages, last page is a next-steps plan, not a "thanks" slide.
- Thesis defense — 25-40 pages in five parts, with mandatory limitation and thanks pages.
- Conference talk — 15-20 pages, no agenda page, page 2 must be a 30-second motivating example.
Then build and gate it:
cd skills/academic-ppt-ops
python scripts/build_deck.py outline.md -o out/deck.pptx
python scripts/qa_content.py out/deck.pptx --build-log out/deck.build_log.json --outline outline.md
python scripts/qa_layout.py out/deck.pptx --build-log out/deck.build_log.json --outline outline.md
python scripts/qa_visual.py out/deck.pptx --out-dir out/render
Requirements: Python 3.10+ with python-pptx, Pillow and lxml (tested with python-pptx 1.0.2); python-docx only for the speech export, pandas only for reading xlsx/csv data files. No network access, no matplotlib, no jinja2.
Run the demo first (no outline needed)
Two synthetic outlines ship with the package — invented topics, numbers and conclusions, purely to show the page types and their fields:
cd skills/academic-ppt-ops
python scripts/build_deck.py examples/outline_demo.md -o out/demo.pptx # 13 pages, native editable chart
python scripts/qa_content.py out/demo.pptx
python scripts/qa_layout.py out/demo.pptx
examples/outline_demo.md exercises cover / overview / section / background / method /
framework / result_chart / table_page / statement / blockers / plan / backup and needs no
external images or data files. See examples/README.md for how to adapt it.
Pass line for all three QA gates is 0 error; read every warn. Framework-style flow
pages will always trip R09 (element count > 6) — it is a heuristic count: a four-step
flow is eight text boxes plus a footnote, which is by design.
Honest limits
- Python dependency. The build path is python-pptx; nothing works without it. This is a code skill, not a prompt-only recipe.
- Render check needs Windows + a local PowerPoint.
qa_visual.pydrives PowerPoint through COM (.ps1helpers) to export page PNGs. On macOS/Linux, or on Windows without PowerPoint installed, that gate cannot run: skip it, inspect the layout QA geometry and a contact sheet instead, and say so when delivering. - No third-party theme assets. The bundle ships colour parameters only — no template
.pptx, no theme master, no preview imagery from any third-party deck. See THIRD_PARTY.md for the CC BY-NC-SA 4.0 design reference that informed the layout rules but is deliberately not redistributed here. - QA gates check layout, not truth. They verify that text fits, sizes obey the rules and boxes do not overlap. They cannot verify that your data or conclusion is correct — placeholders are marked 待补 rather than invented.
- No example outlines are bundled. Content must come from your own material; the skill is instructed not to fabricate data, citations or results.
- Fonts are referenced by name, not embedded. Choose fonts you are allowed to use and distribute.
License and assets
Code and documentation are MIT (see LICENSE). The licence covers this package only, not third-party material and not the content you generate into a deck. THIRD_PARTY.md records the design-reference attribution and the trademark notes (this is a community plugin, not an official DeepSeek product).