⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
paper-to-slides
End-to-end academic paper analysis and presentation generation. Use when a user provides a PDF paper (local path or arXiv URL) and wants (1) a deep research report (dual-mode Part A + Part B), (2) an HTML slide deck for group meeting / seminar / conference talk, or (3) both. Triggers on "read this paper and make slides", "parse this paper into a presentation", "论文研读+做PPT", "解析论文做成slides", or any request combining paper analysis with presentation output. Supports arXiv links (abs/pdf), DOI URLs,
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
English | 中文
Paper to Slides
An AI skill that deep-reads academic papers and turns them into polished HTML presentations — give it a PDF or arXiv link, get back a structured research report and a ready-to-present slide deck.
Philosophy: Reading a paper should produce reusable artifacts, not just understanding. A single command gives you both a deep analysis and presentation-ready output.
What You Get
Give the skill a paper (local PDF, arXiv link, or any PDF URL), and it produces:
- Research Report — A dual-mode deep-read: Part A is a full academic analysis (structured abstract → methodology → results → discussion), Part B distills the core logic chain into a one-line summary
- HTML Slide Deck — A zero-dependency, animated presentation with 10 style presets, browser-based inline editing, and responsive design that works on any screen
You can request either output alone or both together.
Quick Start
- Install the skill in your agent (OpenClaw or Claude Code)
- Say "read this paper and make slides" with a PDF path or arXiv link
- The agent handles everything — extraction, analysis, style selection, generation
解析 https://arxiv.org/abs/2603.02096,组会汇报,亮色,15页左右
Deep-read /path/to/paper.pdf, generate report and slides, dark theme
The agent will ask about slide preferences (length, theme, editing) if not specified. Or provide them upfront to skip the questions.
Style Gallery
10 built-in style presets. Open live preview →
Light Themes
| Swiss Modern ⭐ | Notebook Tabs | Pastel Geometry |
|---|---|---|
![]() | ![]() | ![]() |
| Clean, precise, academic | Editorial, organized, tactile | Friendly, approachable |
| Split Pastel | Vintage Editorial | Paper & Ink |
|---|---|---|
![]() | ![]() | ![]() |
| Playful, creative, dual-tone | Witty, confident, retro | Literary, thoughtful |
Dark Themes
| Bold Signal | Neon Cyber | Dark Botanical | Terminal Green |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
| High-impact, bold | Futuristic, techy | Elegant, artistic | Hacker aesthetic |
Installation
OpenClaw
# From ClawHub (coming soon)
clawhub install paper-to-slides
# Or manually
git clone https://github.com/zhangguanghao523/paper-to-slides.git ~/.openclaw/skills/paper-to-slides
Claude Code
git clone https://github.com/zhangguanghao523/paper-to-slides.git ~/.claude/skills/paper-to-slides
System Dependency
The skill needs pdftotext for PDF text extraction:
# macOS
brew install poppler
# Ubuntu/Debian
sudo apt install poppler-utils
That's it. No Python packages, no npm, no build tools. Generated slides are pure HTML with inline CSS/JS.
Architecture
This skill uses progressive disclosure — the main SKILL.md is a concise workflow map, with supporting files loaded on-demand only when needed:
| File | Purpose | Loaded When |
|---|---|---|
SKILL.md | Core two-phase workflow | Always (skill invocation) |
prompts/part-a-template.md | Part A deep academic report template | Phase 1 (report writing) |
prompts/part-b-template.md | Part B core logic extraction template | Phase 1 (report writing) |
prompts/slide-styles.md | 10 curated visual presets | Phase 2 (style selection) |
prompts/slide-template.md | HTML architecture, viewport CSS, JS controller | Phase 2 (generation) |
Built On
| Component | Role |
|---|---|
| paper-parse | Dual-mode report templates (Part A + Part B) |
| frontend-slides | Zero-dependency HTML presentation framework |
| poppler | PDF text & figure extraction (pdftotext / pdftoppm) |
Requirements
- An AI agent (OpenClaw, Claude Code, or similar)
pdftotext(from poppler) — for PDF text extraction- Internet connection (for arXiv downloads and Google Fonts in generated slides)
Credits
Built with OpenClaw. Presentation engine adapted from frontend-slides by @zarazhangrui. Report templates adapted from paper-parse.
License
MIT — Use it, modify it, share it.
// HOW IT'S BUILT
// FILES
20 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
SKILL.md5.9 KB64ede6e7128cupstream ↗
--- name: paper-to-slides description: End-to-end academic paper analysis and presentation generation. Use when a user provides a PDF paper (local path or arXiv URL) and wants (1) a deep research report (dual-mode Part A + Part B), (2) an HTML slide deck for group meeting / seminar / conference talk, or (3) both. Triggers on "read this paper and make slides", "parse this paper into a presentation", "论文研读+做PPT", "解析论文做成slides", or any request combining paper analysis with presentation output. Supports arXiv links (abs/pdf), DOI URLs, and direct PDF URLs. --- # Paper to Slides Two-phase pipeline: **Phase 1** deep-reads an academic paper into a structured dual-mode report, **Phase 2** transforms the report into a polished, zero-dependency HTML presentation. ## Dependencies - `pdftotext` (from poppler) — install via `brew install poppler` or `apt install poppler-utils` if missing - Google Fonts (loaded via CDN in the generated HTML) ## Phase 1: Paper Deep-Read ### Step 1.0 — Resolve input source Determine the input type and obtain a local PDF: | Input | Action | |-------|--------| | Local path (`/path/to/paper.pdf`) | Use directly | | arXiv abs URL (`https://arxiv.org/abs/2603.02096`) | Convert to `https://arxiv.org/pdf/2603.02096` and download | | arXiv PDF URL (`https://arxiv.org/pdf/2603.02096`) | Download directly | | Other PDF URL | Download directly | **Download command:** ```bash curl -L -o /tmp/paper.pdf "<pdf_url>" ``` Use the arXiv ID or paper title as the filename when possible (e.g., `/tmp/2603.02096_FluxMem.pdf`). ### Step 1.1 — Extract full text ```bash pdftotext "<paper.pdf>" /tmp/paper_text.txt ``` Read the extracted text completely. For papers with critical figures, try extracting key pages as images via `pdftoppm` and analyzing them with the image tool. ### Step 1.2 — Comprehensive analysis Create `temp_analysis.md` extracting: - Research question, hypotheses, methodology, data sources - Core findings with key quantitative results - Theoretical contributions and practical implications - The paper's fundamental contradiction/gap, novel angle, and method innovation This step is mandatory — it ensures report quality through structured thinking. ### Step 1.3 — Write dual-mode report Generate `[PaperName]_研读报告.md` containing both parts separated by `---`: - **Part A** — Read [part-a-template.md](prompts/part-a-template.md) before writing. Deep academic report: structured abstract → introduction → methodology → results → discussion → conclusion → core references. - **Part B** — Read [part-b-template.md](prompts/part-b-template.md) before writing. Core logic extraction: four key elements table → method formula → one-line summary (expert + layperson versions). **Writing standards**: Use complete paragraphs over bullet lists. Provide bilingual terms (中英) on first mention. Support every claim with specific data from the paper. ### Step 1.4 — Deliver report Present the report file and briefly summarize the paper's core innovation, key findings, and theoretical value. ## Phase 2: Slides Generation If the user only requested a report, stop after Phase 1. ### Step 2.0 — Confirm parameters Ask the user (all at once): 1. **Purpose**: 组会汇报 / 学术会议 / 教学 / 其他 2. **Length**: Short (5-10) / Medium (10-20) / Long (20+) 3. **Theme**: 亮色 / 暗色 / 偏好的风格 4. **Editing**: 是否需要浏览器内编辑功能 If the user already specified these in the initial request, skip asking and proceed. ### Step 2.1 — Choose style Select an appropriate style based on user preferences. Read [slide-styles.md](prompts/slide-styles.md) for available presets and CSS specifications. Academic presentations generally suit Swiss Modern (light), Notebook Tabs (light), or Bold Signal (dark). ### Step 2.2 — Plan slide outline Map the report content to a slide structure. Typical academic paper outline (15-19 slides): | Section | Slides | Content | |---------|--------|---------| | Title | 1 | Paper title, authors, affiliations, date | | Problem | 1-2 | Background, existing gaps, key insight | | Method (divider) | 1 | Section divider slide | | Method details | 3-5 | Core modules, formulas, architecture | | Results (divider) | 1 | Section divider slide | | Quantitative results | 2-3 | Main results tables, metrics, comparisons | | Efficiency / Ablation | 1-2 | Efficiency gains, ablation studies | | Discussion (divider) | 1 | Section divider slide | | Advantages & Limitations | 1-2 | Key properties, future directions | | Summary | 1 | One-line takeaway | | Thanks | 1 | Links, navigation hints | ### Step 2.3 — Generate HTML Read [slide-template.md](prompts/slide-template.md) for the mandatory HTML architecture, viewport CSS, JS controller, and inline editing implementation. **Non-negotiable rules**: - Single self-contained HTML file, all CSS/JS inline - Every `.slide` must have `height: 100vh; height: 100dvh; overflow: hidden` - ALL font sizes and spacing must use `clamp()` — never fixed px/rem - Load fonts from Google Fonts or Fontshare — never system fonts - Include `prefers-reduced-motion` support - Max content per slide: 1 heading + 4-6 bullets OR 1 heading + 2 paragraphs. Overflow → split slides. **If inline editing is enabled**, implement via `contentEditable` API + `localStorage` persistence. Use JS-based hover with 400ms delay for the edit button (not CSS `~` sibling selector — it breaks due to pointer-events). See the template for the complete implementation. ### Step 2.4 — Open and deliver ```bash open [filename].html ``` Tell the user: file location, slide count, navigation (arrow keys / space / dots), and editing instructions (press E) if enabled. ## Both Phases Together When the user requests both report and slides, run Phase 1 fully first, then Phase 2. The report serves as the structured source for slide content — do not re-analyze the paper.README.md4.8 KBfddc42c7a223upstream ↗
**English** | [中文](README_zh.md) # Paper to Slides An AI skill that deep-reads academic papers and turns them into polished HTML presentations — give it a PDF or arXiv link, get back a structured research report and a ready-to-present slide deck. **Philosophy:** Reading a paper should produce reusable artifacts, not just understanding. A single command gives you both a deep analysis and presentation-ready output. ## What You Get Give the skill a paper (local PDF, arXiv link, or any PDF URL), and it produces: - **Research Report** — A dual-mode deep-read: Part A is a full academic analysis (structured abstract → methodology → results → discussion), Part B distills the core logic chain into a one-line summary - **HTML Slide Deck** — A zero-dependency, animated presentation with 10 style presets, browser-based inline editing, and responsive design that works on any screen You can request either output alone or both together. ## Quick Start 1. Install the skill in your agent (OpenClaw or Claude Code) 2. Say "read this paper and make slides" with a PDF path or arXiv link 3. The agent handles everything — extraction, analysis, style selection, generation ``` 解析 https://arxiv.org/abs/2603.02096,组会汇报,亮色,15页左右 ``` ``` Deep-read /path/to/paper.pdf, generate report and slides, dark theme ``` The agent will ask about slide preferences (length, theme, editing) if not specified. Or provide them upfront to skip the questions. ## Style Gallery 10 built-in style presets. [Open live preview →](style-preview.html) ### Light Themes | Swiss Modern ⭐ | Notebook Tabs | Pastel Geometry | |:---:|:---:|:---:| |  |  |  | | Clean, precise, academic | Editorial, organized, tactile | Friendly, approachable | | Split Pastel | Vintage Editorial | Paper & Ink | |:---:|:---:|:---:| |  |  |  | | Playful, creative, dual-tone | Witty, confident, retro | Literary, thoughtful | ### Dark Themes | Bold Signal | Neon Cyber | Dark Botanical | Terminal Green | |:---:|:---:|:---:|:---:| |  |  |  |  | | High-impact, bold | Futuristic, techy | Elegant, artistic | Hacker aesthetic | ## Installation ### OpenClaw ```bash # From ClawHub (coming soon) clawhub install paper-to-slides # Or manually git clone https://github.com/zhangguanghao523/paper-to-slides.git ~/.openclaw/skills/paper-to-slides ``` ### Claude Code ```bash git clone https://github.com/zhangguanghao523/paper-to-slides.git ~/.claude/skills/paper-to-slides ``` ### System Dependency The skill needs `pdftotext` for PDF text extraction: ```bash # macOS brew install poppler # Ubuntu/Debian sudo apt install poppler-utils ``` That's it. No Python packages, no npm, no build tools. Generated slides are pure HTML with inline CSS/JS. ## Architecture This skill uses **progressive disclosure** — the main `SKILL.md` is a concise workflow map, with supporting files loaded on-demand only when needed: | File | Purpose | Loaded When | |------|---------|-------------| | `SKILL.md` | Core two-phase workflow | Always (skill invocation) | | `prompts/part-a-template.md` | Part A deep academic report template | Phase 1 (report writing) | | `prompts/part-b-template.md` | Part B core logic extraction template | Phase 1 (report writing) | | `prompts/slide-styles.md` | 10 curated visual presets | Phase 2 (style selection) | | `prompts/slide-template.md` | HTML architecture, viewport CSS, JS controller | Phase 2 (generation) | ## Built On | Component | Role | |-----------|------| | [paper-parse](https://clawhub.com) | Dual-mode report templates (Part A + Part B) | | [frontend-slides](https://github.com/zarazhangrui/frontend-slides) | Zero-dependency HTML presentation framework | | [poppler](https://poppler.freedesktop.org/) | PDF text & figure extraction (pdftotext / pdftoppm) | ## Requirements - An AI agent (OpenClaw, Claude Code, or similar) - `pdftotext` (from poppler) — for PDF text extraction - Internet connection (for arXiv downloads and Google Fonts in generated slides) ## Credits Built with [OpenClaw](https://github.com/openclaw/openclaw). Presentation engine adapted from [frontend-slides](https://github.com/zarazhangrui/frontend-slides) by [@zarazhangrui](https://github.com/zarazhangrui). Report templates adapted from [paper-parse](https://clawhub.com). ## License MIT — Use it, modify it, share it..gitignore118 Bf5a5049b3f9dupstream ↗
# OS .DS_Store Thumbs.db # Editor *.swp *.swo *~ .idea/ .vscode/ # Temp files from skill execution temp_analysis.mdLICENSE1.0 KB699e81279c5bupstream ↗
MIT License Copyright (c) 2026 Hhao 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.prompts/part-a-template.md4.0 KB97f38d440550upstream ↗
# Part A: 深度专业学术速读报告 — 输出模板与撰写指引 > 严格按照以下结构输出。每个章节下方的指引说明了该章节应包含的内容,撰写时用实际内容替换指引文字。使用完整段落而非大量列表,交替使用段落和表格来组织信息。 ## 结构化摘要 (Structured Abstract) | 维度 | 内容 | |---|---| | **背景/目标** | 该研究处于什么学术背景下?旨在解决什么核心问题? | | **方法** | 研究采用了什么核心方法?数据来自哪里? | | **结果** | 最主要的发现是什么?(附关键数据) | | **结论** | 研究得出了什么核心结论?其主要贡献和意义是什么? | --- ## 1. 引言 (Introduction) ### 1.1. 研究背景与核心问题 (Research Background & Problem Statement) 详细介绍本研究处于哪个宏观或微观领域,当前存在什么关键的争议、挑战或现象。精准提炼出本文要回答的核心研究问题 (Research Questions, RQs)。 ### 1.2. 文献综述与研究缺口 (Literature Review & Research Gap) 梳理作者引用的关键文献,总结出现有研究的主要观点和不足。明确指出本文所针对的"研究缺口"(Gap),即本文的创新点和必要性所在。 ### 1.3. 研究目标与核心假设/命题 (Objectives & Hypotheses/Propositions) 清晰陈述本文的研究目标。列出本文提出的核心假设 (Hypotheses) 或命题 (Propositions)。若论文未明确提出假设,则归纳其隐含的核心命题。 --- ## 2. 研究设计与方法 (Methodology) ### 2.1. 研究范式与方法论 (Research Paradigm & Methodology) 详细解释所选用的具体研究方法(如案例研究、实验法、扎根理论、构建式研究等)及其选择原因。 ### 2.2. 数据来源与样本 (Data Source & Sample) 说明研究数据的来源(如访谈、数据库、档案、网络爬取、实验平台等)。描述样本的选取标准、规模和特征。 ### 2.3. 操作化与测量 (Operationalization & Measurement) 对于定量研究,说明关键变量是如何被定义和测量的(含指标、量表、评估标准等)。对于定性研究,说明核心概念是如何在研究中被观察和编码的。对于系统/框架类研究,说明系统的核心模块、技术栈和评估指标。 --- ## 3. 结果与发现 (Results & Findings) ### 3.1. 主要发现概述 (Overview of Key Findings) 对研究的核心结果进行客观、中立的呈现,通常按照研究假设或研究问题的顺序展开。使用具体数据支撑每一项发现。 ### 3.2. 关键数据与图表解读 (Interpretation of Key Data & Figures) 选取原文中最重要的 1-3 个图或表,对每个图/表按以下结构解读: - **展示内容**:该图/表展示了什么? - **揭示关系**:揭示了怎样的关系或趋势? - **关键数据**:提供了哪些关键数据支撑? --- ## 4. 讨论 (Discussion) ### 4.1. 结果的深度解读 (In-depth Interpretation of Results) 解释这些研究发现意味着什么?它们如何回答了引言中提出的研究问题? ### 4.2. 理论贡献 (Theoretical Contributions) 阐明本研究对现有理论的贡献是什么?是验证、扩展、修正了某个理论,还是提出了新的理论框架? ### 4.3. 实践启示 (Practical Implications) 本研究的结果对相关领域的实践者(如企业管理者、工程师、政策制定者)有什么具体的指导意义或建议? ### 4.4. 局限性与未来研究 (Limitations & Future Research) 坦诚说明本研究存在的局限性(如样本、方法、范围等)。基于本文的发现和局限,为后续研究者指明了哪些可能的研究方向。 --- ## 5. 结论 (Conclusion) 对全文的研究进行凝练总结,再次强调其最重要的发现和贡献。 --- ## 6. 核心参考文献 (Core References) 列出本文文献综述部分引用的、最重要的 3-5 篇参考文献(含作者、年份、标题、期刊),帮助读者定位其学术脉络。prompts/part-b-template.md1.8 KB5ab5703be0a3upstream ↗
# Part B: 核心逻辑链与根本价值提炼 — 输出模板与撰写指引 > 此部分的目标是提炼论文最根本的价值。你不是在复述内容,你是在重构其思想的最小完整结构。每个要素用 2-4 句话精准概括。 ## 核心四要素 | 要素 | 内容 | |---|---| | **根本问题** | 论文所针对的最关键的"矛盾点"或"知识空白"是什么?不是泛泛的研究领域,而是这篇论文存在的根本原因。 | | **切入视角** | 作者采用了什么区别于他人的"关键洞察"或"新假设"?这是论文的灵魂——别人没想到或没做到的那个"转折点"。 | | **关键方法** | 作者用于验证其"视角"并解决"问题"的"核心机制"是什么?聚焦于最核心的那一个或两个技术/方法创新。 | | **核心发现** | 最终得出了什么"新知识"或"答案"?用最关键的数据或结论来支撑。 | --- ## 方法公式化 将上述"关键方法"抽象提炼成一个简洁的"文字公式",用以揭示其内在的逻辑或演算过程。 **格式示例**: - "新算法 = (特征 A + 特征 B) × 权重 C" - "历史分析 = 路径依赖 + 关键节点 A 的扰动" - "价值 = 效用 / 认知成本" - "可靠工业AI = (多智能体分工 + 结构化思维链) × 实时知识库" --- ## 最终双重总结 **一句话总结(核心价值)**:将"问题"、"视角"、"方法"和"发现"四个要素熔合成一个单一、连贯、通顺且凝练的句子,清晰地展现论文的核心逻辑与价值。这句话应该让一个同领域的研究者立刻理解这篇论文"做了什么、为什么重要"。 **一句话总结(大白话版)**:用一个 10 岁小孩都能听懂的比喻或说法,概括这篇论文最核心的观点。避免任何术语,追求生动和直觉性的理解。prompts/slide-styles.md4.6 KBad8c035c193dupstream ↗
# Slide Style Presets 10 curated visual styles. Select based on purpose and user preference. Preview all styles by opening `style-preview.html` in a browser. ## Light Themes ### 1. Swiss Modern ⭐ (default) Clean, precise, Bauhaus-inspired. Red accent on white. - **Display**: `Archivo` (800/900) · **Body**: `Nunito` (400/500) · **Mono**: `JetBrains Mono` - **Colors**: `--bg: #ffffff` `--accent: #e63312` `--text: #1a1a1a` - **Signature**: Red left accent bar, large faded section numbers, geometric circle on title slide - **Best for**: 组会汇报、学术研讨、内部技术分享 ### 2. Notebook Tabs Editorial, organized, tactile. Cream paper with colorful tabs. - **Display**: `Bodoni Moda` (700) · **Body**: `DM Sans` (400/500) - **Colors**: `--bg-outer: #2d2d2d` `--bg-page: #f8f6f1` `--tabs: mint/lavender/pink/sky` - **Signature**: Paper card with shadow, colorful right-edge tabs, binder holes - **Best for**: 教学课件、读书笔记分享、论文阅读汇报 ### 3. Pastel Geometry Friendly, approachable, modern. Soft pastels. - **Display/Body**: `Plus Jakarta Sans` (400-800) - **Colors**: `--bg: #c8d9e6` `--card: #faf9f7` `--pills: pink/mint/purple` - **Signature**: Rounded card, vertical pills on right edge - **Best for**: 项目介绍、产品 Demo、轻松场合的学术汇报 ### 4. Split Pastel Playful, creative, modern. Dual-color vertical split. - **Display/Body**: `Outfit` (400-800) - **Colors**: `--left: #f5e6dc (peach)` `--right: #e4dff0 (lavender)` - **Signature**: Two-tone background split, grid overlay, rounded badge pills - **Best for**: 创意项目展示、实验室内部分享、Poster 风格 ### 5. Vintage Editorial Witty, confident, editorial. Cream with geometric shapes. - **Display**: `Fraunces` (700/900) · **Body**: `Work Sans` (400/500) - **Colors**: `--bg: #f5f3ee` `--text: #1a1a1a` `--accent: #e8d4c0` - **Signature**: Abstract geometric shapes (circle outline + line + dot), bold bordered boxes - **Best for**: 人文社科论文、综述性报告、设计/艺术相关 ### 6. Paper & Ink Literary, thoughtful, editorial. Warm cream with crimson. - **Display**: `Cormorant Garamond` · **Body**: `Source Serif 4` - **Colors**: `--bg: #faf9f7` `--text: #1a1a1a` `--accent: #c41e3a` - **Signature**: Drop caps, pull quotes, elegant horizontal rules, all-serif typography - **Best for**: 文献综述、理论性论文、需要阅读感的报告 ## Dark Themes ### 7. Bold Signal Confident, bold, high-impact. Orange card on dark gradient. - **Display**: `Archivo Black` (900) · **Body**: `Space Grotesk` (400/500) - **Colors**: `--bg: #1a1a1a gradient` `--card: #FF5722` `--text: #ffffff` - **Signature**: Bold colored focal card, large section numbers, navigation breadcrumbs - **Best for**: 学术会议演讲、Pitch/路演、高影响力汇报 ### 8. Neon Cyber Futuristic, techy, confident. Deep navy with neon accents. - **Display**: `Clash Display` (Fontshare) · **Body**: `Satoshi` (Fontshare) - **Colors**: `--bg: #0a0f1c` `--accent: #00ffcc` `--magenta: #ff00aa` - **Signature**: Neon glow effects, grid background, particle systems - **Best for**: AI/深度学习、技术大会、Hackathon ### 9. Dark Botanical Elegant, sophisticated, artistic. Black with warm blurs. - **Display**: `Cormorant` (400/600) · **Body**: `IBM Plex Sans` (300/400) - **Colors**: `--bg: #0f0f0f` `--text: #e8e4df` `--accents: amber/rose-gold/pink` - **Signature**: Blurred gradient orbs, thin vertical lines, italic signature typography - **Best for**: 高端学术报告、邀请制研讨会、跨学科分享 ### 10. Terminal Green Developer-focused, hacker aesthetic. All monospace. - **Font**: `JetBrains Mono` (monospace only) - **Colors**: `--bg: #0d1117` `--green: #39d353` - **Signature**: CRT scan lines, blinking cursor, code syntax styling - **Best for**: 系统/架构论文、开源项目介绍、极客圈分享 ## Common Design Elements All styles should include these reusable CSS components: - **`.tag`** — Small uppercase label - **`.divider`** — Short accent-colored line under headings - **`.section-num`** — Large faded number in background - **`.feature-card`** — Bordered card for method modules - **`.highlight-box`** — Accent-bordered callout for key insights - **`.data-table`** — Clean comparison table - **`.metric`** — Pill showing a big number + label - **`.formula-box`** — Monospace box for equations/pseudocode - **`.flow`** — Horizontal flow diagram with arrows - **`.two-col` / `.three-col`** — Grid layouts ## Font DO NOTs Never use: Inter, Roboto, Arial, system fonts. Avoid generic purple gradients on white (#6366f1). Vary choices across presentations.prompts/slide-template.md5.4 KB7f386383221fupstream ↗
# Slide HTML Template Every presentation follows this architecture. Single self-contained HTML file with all CSS and JS inline. ## HTML Structure ```html <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Presentation Title</title> <!-- Fonts from Google Fonts or Fontshare — never system fonts --> <link href="https://fonts.googleapis.com/css2?family=..." rel="stylesheet"> <style> /* === THEME VARIABLES === */ :root { /* Colors — from chosen style preset */ --bg-primary: ...; --text-primary: ...; --accent: ...; /* Typography — MUST use clamp() */ --title-size: clamp(2rem, 5.5vw, 4.5rem); --h2-size: clamp(1.4rem, 3.5vw, 2.4rem); --h3-size: clamp(1rem, 2.2vw, 1.5rem); --body-size: clamp(0.78rem, 1.4vw, 1.05rem); --small-size: clamp(0.65rem, 1vw, 0.85rem); /* Spacing — MUST use clamp() */ --slide-padding: clamp(1.5rem, 5vw, 5rem); --content-gap: clamp(0.75rem, 2vw, 2rem); /* Animation */ --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); --duration-normal: 0.6s; } /* === MANDATORY VIEWPORT-BASE CSS === */ /* Paste the full viewport-base.css contents below */ </style> </head> <body> <div class="progress-bar" id="progressBar"></div> <nav class="nav-dots" id="navDots"></nav> <!-- Slides --> <section class="slide title-slide">...</section> <section class="slide">...</section> <script>/* Presentation controller + optional editor */</script> </body> </html> ``` ## Mandatory Viewport CSS Include this ENTIRE block in every presentation: ```css html, body { height: 100%; overflow-x: hidden; } html { scroll-snap-type: y mandatory; scroll-behavior: smooth; } .slide { width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; /* CRITICAL */ scroll-snap-align: start; display: flex; flex-direction: column; position: relative; } .slide-content { flex: 1; display: flex; flex-direction: column; justify-content: center; max-height: 100%; overflow: hidden; padding: var(--slide-padding); } /* Responsive breakpoints */ @media (max-height: 700px) { :root { --slide-padding: clamp(0.75rem, 3vw, 2rem); --title-size: clamp(1.25rem, 4.5vw, 2.5rem); } } @media (max-height: 600px) { :root { --slide-padding: clamp(0.5rem, 2.5vw, 1.5rem); --body-size: clamp(0.7rem, 1.2vw, 0.95rem); } .nav-dots, .decorative { display: none; } } @media (max-height: 500px) { :root { --title-size: clamp(1rem, 3.5vw, 1.5rem); --body-size: clamp(0.65rem, 1vw, 0.85rem); } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.2s !important; } } ``` ## Content Density Limits (per slide) | Slide Type | Maximum Content | |------------|-----------------| | Title | 1 heading + 1 subtitle + tagline | | Content | 1 heading + 4-6 bullets OR 1 heading + 2 paragraphs | | Feature grid | 1 heading + 6 cards max (2x3 or 3x2) | | Code/formula | 1 heading + 8-10 lines | | Quote | 1 quote (max 3 lines) + attribution | **Overflow → split into multiple slides. Never cram, never scroll.** ## Animations ```css .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); } .slide.visible .reveal { opacity: 1; transform: translateY(0); } /* Stagger children */ .reveal:nth-child(1) { transition-delay: 0.05s; } .reveal:nth-child(2) { transition-delay: 0.12s; } .reveal:nth-child(3) { transition-delay: 0.19s; } .reveal:nth-child(4) { transition-delay: 0.26s; } ``` ## Required JavaScript ### SlidePresentation Controller Must include: - **IntersectionObserver**: Add `.visible` when slide enters viewport (threshold: 0.5) - **Keyboard nav**: Arrow keys, Space, PageUp/Down, Home/End - **Touch nav**: Swipe detection (threshold 50px) - **Wheel nav**: Debounced (800ms) mouse wheel - **Progress bar**: Fixed top bar, width = percentage - **Nav dots**: Fixed right side, generated per slide, click to jump ### Inline Editor (opt-in only) Only include if user requested editing. Three access methods: 1. **Hotzone hover** — 80×80px fixed top-left, shows ✏️ button with 400ms hide delay 2. **Button click** — Toggle contentEditable on all text elements 3. **E key** — Keyboard shortcut (skip when contenteditable is active) ```javascript // CRITICAL: Use JS hover with timeout, NOT CSS ~ sibling selector // CSS-only approach breaks because pointer-events:none on hidden button // interrupts hover chain when moving from hotzone to button hotzone.addEventListener('mouseleave', () => { hideTimeout = setTimeout(() => { if (!editor.isActive) toggle.classList.remove('show'); }, 400); // Grace period for mouse movement }); editToggle.addEventListener('mouseenter', () => { clearTimeout(hideTimeout); }); ``` **Save/restore**: Serialize all editable elements' innerHTML to `localStorage` on exit/Ctrl+S. Load on page init. ## CSS Gotcha Never negate CSS functions directly: ```css /* WRONG — silently ignored */ right: -clamp(28px, 3.5vw, 44px); /* CORRECT */ right: calc(-1 * clamp(28px, 3.5vw, 44px)); ```README_zh.md4.7 KBa4cea71c07a8upstream ↗
[English](README.md) | **中文** # Paper to Slides 一个 AI Skill,深度研读学术论文并生成精美的 HTML 演示文稿——给它一篇 PDF 或 arXiv 链接,返回结构化研读报告和可直接汇报的 slide deck。 **理念:** 读论文应该产出可复用的成果物,而不仅仅是"读过了"。一条命令,同时获得深度分析和演示文稿。 ## 你会得到什么 给 skill 一篇论文(本地 PDF、arXiv 链接或任意 PDF URL),它会产出: - **研读报告** — 双模式深度解析:Part A 是完整学术分析(结构化摘要→方法论→实验→讨论),Part B 将核心逻辑链提炼为一句话总结 - **HTML 演示文稿** — 零依赖、带动画的演示文稿,10 种风格预设,支持浏览器内编辑,响应式设计适配任何屏幕 两种输出可以单独使用,也可以一起生成。 ## 快速开始 1. 在你的 agent 中安装此 skill(OpenClaw 或 Claude Code) 2. 说"读这篇论文然后做成 slides",附上 PDF 路径或 arXiv 链接 3. Agent 自动处理一切——提取、分析、选风格、生成 ``` 解析 https://arxiv.org/abs/2603.02096,组会汇报,亮色,15页左右 ``` ``` 深度研读 /path/to/paper.pdf,生成报告和slides,暗色主题 ``` 未指定 slides 参数时 agent 会询问用途、页数、主题风格和是否需要编辑功能。也可以一次性指定跳过提问。 ## 风格预览 内置 10 种风格预设。[打开在线预览 →](style-preview.html) ### 亮色主题 | Swiss Modern ⭐ | Notebook Tabs | Pastel Geometry | |:---:|:---:|:---:| |  |  |  | | 干净精确,学术默认 | 笔记本质感,编辑风 | 友好亲和,柔和 | | Split Pastel | Vintage Editorial | Paper & Ink | |:---:|:---:|:---:| |  |  |  | | 活泼创意,双色分割 | 复古杂志,有态度 | 文学编辑,深思熟虑 | ### 暗色主题 | Bold Signal | Neon Cyber | Dark Botanical | Terminal Green | |:---:|:---:|:---:|:---:| |  |  |  |  | | 高冲击力,自信 | 赛博科技,未来感 | 优雅高级,艺术感 | 黑客极客,终端风 | ## 安装 ### OpenClaw ```bash # 从 ClawHub 安装(即将上线) clawhub install paper-to-slides # 或手动安装 git clone https://github.com/zhangguanghao523/paper-to-slides.git ~/.openclaw/skills/paper-to-slides ``` ### Claude Code ```bash git clone https://github.com/zhangguanghao523/paper-to-slides.git ~/.claude/skills/paper-to-slides ``` ### 系统依赖 Skill 需要 `pdftotext` 来提取 PDF 文本: ```bash # macOS brew install poppler # Ubuntu/Debian sudo apt install poppler-utils ``` 完成。不需要 Python 包、npm 或构建工具。生成的 slides 是纯 HTML + 内联 CSS/JS。 ## 架构 此 skill 采用**渐进式加载** —— 主文件 `SKILL.md` 是精简的工作流地图,支撑文件按需加载: | 文件 | 用途 | 加载时机 | |------|------|----------| | `SKILL.md` | 核心两阶段工作流 | 始终(skill 调用时) | | `prompts/part-a-template.md` | Part A 深度学术报告模板 | 阶段一(撰写报告) | | `prompts/part-b-template.md` | Part B 核心逻辑提炼模板 | 阶段一(撰写报告) | | `prompts/slide-styles.md` | 10 种视觉风格预设 | 阶段二(选择风格) | | `prompts/slide-template.md` | HTML 架构、视口 CSS、JS 控制器 | 阶段二(生成 slides) | ## 技术依赖 | 组件 | 作用 | |------|------| | [paper-parse](https://clawhub.com) | 双模式报告模板(Part A + Part B) | | [frontend-slides](https://github.com/zarazhangrui/frontend-slides) | 零依赖 HTML 演示框架 | | [poppler](https://poppler.freedesktop.org/) | PDF 文本与图表提取(pdftotext / pdftoppm) | ## 环境要求 - AI agent(OpenClaw、Claude Code 或类似工具) - `pdftotext`(来自 poppler)—— 用于 PDF 文本提取 - 网络连接(下载 arXiv 论文和加载 Google Fonts) ## 致谢 基于 [OpenClaw](https://github.com/openclaw/openclaw) 构建。演示引擎改编自 [@zarazhangrui](https://github.com/zarazhangrui) 的 [frontend-slides](https://github.com/zarazhangrui/frontend-slides)。报告模板改编自 [paper-parse](https://clawhub.com)。 ## 许可证 MIT — 使用、修改、分享,随你。style-examples/bold-signal.png109 KBf963e0d7efb0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/dark-botanical.png96 KB8c3bbd05c8f1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/neon-cyber.png70 KBa45d14412748upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/notebook-tabs.png61 KB11cda910d053upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/paper-ink.png63 KB062d844baf39upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/pastel-geometry.png55 KBf15f40f2a5f2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/split-pastel.png54 KBc6a7174e0030upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/swiss-modern.png54 KB35314ed5860dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/terminal-green.png65 KB2838a63bfef1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-examples/vintage-editorial.png67 KB18e51206cedaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
style-preview.html33 KBa3f7c0c9ee44upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/zhangguanghao523-paper-to-slides.md









