技能图谱SKILLSGROVE
技能图谱/办公文档/LigphiDonk/Oh-my--paper/making-academic-presentations

making-academic-presentations

安装

$npx skills add https://github.com/LigphiDonk/Oh-my--paper --skill making-academic-presentations
$git clone --depth 1 https://github.com/LigphiDonk/Oh-my--paper.git /tmp/Oh-my--paper && mkdir -p ~/.claude/skills && cp -r /tmp/Oh-my--paper/skills/making-academic-presentations ~/.claude/skills/making-academic-presentations
请帮我安装这个 Agent Skill:https://github.com/LigphiDonk/Oh-my--paper/tree/6baece9f13324c209592124ebc213289336f26c3/skills/making-academic-presentations ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITCreate academic presentation slide decks and optionally demo videos from research papers.
以下 SKILL.md 内容转载自 LigphiDonk/Oh-my--paper(提交 6baece9),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 donkfeng 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

making-academic-presentations

Canonical Summary

Create academic presentation slide decks and optionally demo videos from research papers. Use when the user asks to "make slides", "create a deck", "make a presentation", "demo video", "paper slides", "conference talk slides", or wants to...

Trigger Rules

Use this skill when the user request matches its research workflow scope. Prefer the bundled resources instead of recreating templates or reference material. Keep outputs traceable to project files, citations, scripts, or upstream evidence.

Resource Use Rules

  • Read from references/ only when the current task needs the extra detail.
  • Treat scripts/ as optional helpers. Run them only when their dependencies are available, keep outputs in the project workspace, and explain a manual fallback if execution is blocked.

Execution Contract

  • Resolve every relative path from this skill directory first.
  • Prefer inspection before mutation when invoking bundled scripts.
  • If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of silently skipping the step.
  • Do not write generated artifacts back into the skill directory; save them inside the active project workspace.

Upstream Instructions

Making Academic Presentations

Produce slide decks (and optionally narrated demo videos) from research papers. The human drives all outline and visual decisions — the agent executes.

Pipeline

[1] Script Draft ──→ [2] Slide Generation ──→ [3] TTS Audio (optional) ──→ [4] Video Assembly (optional)
     Claude Code          nanobanana /edit     edge-tts / Kokoro / ElevenLabs       ffmpeg

Skip stages 3–4 for slide-only output. User can enter at any stage.

Stage 1: Script / Outline

Input: paper + user-provided outline or slide plan Output: video-scripts.md or slide-outline.md — per-slide content with talking points

The agent drafts scripts based on the user's outline. The user owns the structure — agent does not decide slide count, order, or what to emphasize.

Stage 2: Slide Generation

Full reference: references/slide-generation.md

Tool: nanobanana (Gemini CLI extension)

Priority order (edit-first):

  1. Has paper figure → nanobanana /edit to wrap into slide frame
  2. Has existing slide → /edit to adapt
  3. User-provided reference (e.g., from NotebookLM or PPTX the user made) → /edit to refine
  4. Title slide from scratch → generate with academic style prompt
  5. Content slide from scratch → generate with deck-style preamble

Key principle: prefer /edit on existing HQ paper figures over generating from scratch.

Deck style: create deck-style.md once per deck, prepend to all generate-from-scratch prompts. For /edit, style is inherited from the base image.

Example deck-style.md:

- Canvas: 1920x1080, white background
- Accent: #2563EB blue, text: #1e293b dark slate
- Clean sans-serif, flat design, no gradients/shadows
- Bottom bar: blue accent with white affiliation text

Stage 3: TTS Audio (optional)

Full reference: references/tts-engines.md Batch scripts: scripts/batch_tts_edge.py, scripts/batch_tts_kokoro.py

Output: one audio file per narrated slide

Engine Selection

Engine Quality Cost Latency Best For
edge-tts (default) Very good Free, unlimited ~6s/slide (cloud) Quick generation, good male voices
Kokoro Very good Free, unlimited ~1.5s/slide (local) Offline use, fast batch, good female voices
ElevenLabs Premium 10k chars free/mo ~3s/slide (cloud) Highest quality, voice cloning

Default: Use edge-tts unless user requests offline or premium quality.

Quick Start (edge-tts)

import edge_tts, asyncio

async def tts_slide(text, output, voice="en-US-AndrewNeural"):
    await edge_tts.Communicate(text, voice).save(output)

asyncio.run(tts_slide("Your slide text here", "slide_01.mp3"))

Voices: AndrewNeural (male, presenter), AriaNeural (female), GuyNeural (male, warm), JennyNeural (female, pro)

Stage 4: Video Assembly (optional)

Tool: ffmpeg Input: slide PNGs + audio files + optional demo recording

# Use symlink to avoid iCloud path spaces: ln -sfn "long path" /tmp/workdir

# Slide with audio:
ffmpeg -y -loop 1 -i slide.png -i audio.mp3 \
  -c:v libx264 -tune stillimage -pix_fmt yuv420p \
  -c:a aac -ar 44100 -ac 2 -shortest seg.mp4

# Silent slide (N seconds):
ffmpeg -y -loop 1 -i slide.png -f lavfi -i anullsrc=r=44100:cl=stereo \
  -c:v libx264 -tune stillimage -pix_fmt yuv420p \
  -c:a aac -ar 44100 -ac 2 -t N seg.mp4

# Concat (always re-encode, never -c copy):
printf "file 'seg1.mp4'\nfile 'seg2.mp4'\n..." > concat.txt
ffmpeg -y -f concat -safe 0 -i concat.txt \
  -c:v libx264 -pix_fmt yuv420p -c:a aac -ar 44100 -ac 2 final.mp4

All segments MUST share: 44100Hz sample rate, stereo, AAC codec.

PPTX Conversion (if needed)

Full reference: references/pptx-conversion.md

If starting from an existing PPTX, convert slides to PNG images first:

soffice --headless --convert-to pdf --outdir output/ presentation.pptx
pdftoppm -png -r 300 output/presentation.pdf output/slide

NotebookLM — Human Reference Only

The agent must NOT auto-invoke NotebookLM or use its outputs to drive slide/script decisions. The human owns the outline, visual arrangement, and deck direction.

When to recommend: only when the user says they're unsure what to put on slides or need inspiration.

Gotchas

  • iCloud paths with spaces break ffmpeg — symlink to /tmp/
  • Audio format mismatch breaks concat — always re-encode with -ar 44100 -ac 2
  • ElevenLabs free tier — mp3_22050_32 only, 10k chars/month
  • edge-tts needs internet — falls back to Kokoro if offline
  • Kokoro WAV files are ~7x larger — convert to MP3 with ffmpeg before video assembly
  • Kokoro first run downloads ~350MB model — ensure pip is in the venv
  • /edit distorts figure — be more explicit: "Keep the original figure exactly as-is, only add framing"
  • Style drift across slides — use /edit from base slide or prepend shared deck-style.md

Dependencies

Tool Stage Install
Gemini CLI + nanobanana 2 gemini extensions install https://github.com/gemini-cli-extensions/nanobanana
LibreOffice + poppler 2 (PPTX) brew install --cask libreoffice && brew install poppler
edge-tts 3 pip install edge-tts
Kokoro 3 (offline) pip install kokoro soundfile
ElevenLabs 3 (premium) pip install elevenlabs + ELEVENLABS_API_KEY
ffmpeg 4 brew install ffmpeg
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 donkfeng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.