Logo Academic Ppt

Academic Ppt

Cộng đồng
PHY041
academic-ppt

Generate publication-quality academic presentations (.pptx) from paper PDFs, LaTeX sources, or text descriptions. Dual-engine figures: Matplotlib for data charts (precise), Gemini image generation for concept diagrams (visually rich). Scene-adaptive templates: defense, conference, seminar. Use when asked to "make slides", "create a presentation", "defense PPT", "academic-ppt", or "generate slides from paper".

Tổng quan

Nhà phát hànhPHY041
Kho mãclaude-skill-academic-ppt
Tên kỹ năngacademic-ppt
Sao
31
Bản fork
2
Tệp đi kèm
8
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được PHY041 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Academic Ppt trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/PHY041/claude-skill-academic-ppt/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PHY041/claude-skill-academic-ppt.git \
  .claude/skills/academic-ppt
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Academic Ppt trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Academic Ppt ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Academic Ppt với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

/academic-ppt — Academic Deck Engine

Generate defense-ready .pptx presentations from academic papers with publication-quality figures.

Preamble (run first)

bash
# Check dependencies
_MISSING=""
python3 -c "import pptx" 2>/dev/null || _MISSING="$_MISSING python-pptx"
python3 -c "import matplotlib" 2>/dev/null || _MISSING="$_MISSING matplotlib"
python3 -c "import seaborn" 2>/dev/null || _MISSING="$_MISSING seaborn"
python3 -c "import fitz" 2>/dev/null || _MISSING="$_MISSING pymupdf"
python3 -c "from PIL import Image" 2>/dev/null || _MISSING="$_MISSING Pillow"
python3 -c "import pygments" 2>/dev/null || _MISSING="$_MISSING Pygments"
_GEMINI=""
python3 -c "import google.genai" 2>/dev/null && _GEMINI="available" || _GEMINI="unavailable"
_MERMAID=""
which mmdc 2>/dev/null && _MERMAID="available" || _MERMAID="unavailable"
echo "MISSING: ${_MISSING:-none}"
echo "GEMINI_SDK: $_GEMINI"
echo "MERMAID_CLI: $_MERMAID"

If MISSING is not "none": install missing packages:

bash
pip install python-pptx matplotlib seaborn pymupdf Pillow Pygments

If GEMINI_SDK is "unavailable": concept diagrams will use Mermaid fallback (or be skipped). If MERMAID_CLI is "unavailable" AND no Gemini: concept diagrams will be skipped entirely. Inform user.

Input Detection

Parse the user's command to determine the input source and options.

Supported inputs (in priority order):

  1. LaTeX source (--latex path/to/main.tex or auto-detected .tex file) — PRIMARY input, highest quality
  2. Paper PDF (path/to/paper.pdf or auto-detected) — Best-effort with warnings
  3. Code repo (--repo . or --repo path/) — Supplementary data extraction
  4. Text description (quoted string) — Direct content, no extraction needed

Options:

FlagDefaultValues
--scenedefensedefense, conference, seminar
--time15min (defense), 12min (conference), 30min (seminar)
--langenen, zh, zh-en (bilingual)
--output./output.pptxOutput file path
--no-geminifalseForce Matplotlib-only mode

If no flags provided, use smart defaults: detect input type from first argument, scene=defense, auto-detect language.

Phase 1: Content Extraction

LaTeX Source (Primary Path)

  1. Resolve \input{} and \include{} directives — Read the main .tex file, find all \input{...} and \include{...} directives, read referenced files, and inline them. Handle nested includes up to 3 levels. Warn if a referenced file is missing.
python
import re, os

def resolve_latex_includes(main_tex_path: str, depth: int = 0) -> str:
    """Resolve \input{} and \include{} up to 3 levels deep."""
    if depth > 3:
        return ""
    base_dir = os.path.dirname(os.path.abspath(main_tex_path))
    with open(main_tex_path, 'r', encoding='utf-8', errors='replace') as f:
        content = f.read()

    def replace_include(match):
        filename = match.group(1)
        if not filename.endswith('.tex'):
            filename += '.tex'
        filepath = os.path.join(base_dir, filename)
        if os.path.exists(filepath):
            return resolve_latex_includes(filepath, depth + 1)
        else:
            return f"% WARNING: Could not find {filename}"

    content = re.sub(r'\\input\{([^}]+)\}', replace_include, content)
    content = re.sub(r'\\include\{([^}]+)\}', replace_include, content)
    return content
  1. Extract sections — Parse the resolved LaTeX for \section{}, \subsection{}, \chapter{}, \begin{abstract}, \title{}, \author{}. Extract text content between section markers.

  2. LLM Extraction Validation — After extraction, verify the content is coherent. Check:

    • Total word count (expect >500 for a paper, >2000 for a thesis)
    • Number of sections found (expect >3)
    • If validation fails: warn user and ask if they want to proceed or provide manual input

PDF Source (Best-Effort Path)

python
import fitz  # PyMuPDF

def extract_pdf_sections(pdf_path: str) -> dict:
    doc = fitz.open(pdf_path)
    if doc.is_encrypted:
        raise ValueError("PDF is encrypted. Please provide the password or use LaTeX source instead.")

    full_text = ""
    for page in doc:
        full_text += page.get_text()

    if len(full_text.strip()) < 100:
        raise ValueError("PDF appears to be scanned (no text layer). Please use LaTeX source or OCR the PDF first.")

    return full_text

IMPORTANT: When using PDF input, always display this warning:

"PDF extraction is best-effort. Two-column layouts, math notation, and tables may not extract correctly. For highest quality, use LaTeX source (--latex main.tex)."

Code Repo (Supplementary)

If --repo is provided, scan for:

  • results/ or output/ directories → JSON/CSV files with experiment data
  • src/ entry point (main.py, app.py) → extract docstrings for architecture summary
  • figures/ or plots/ → existing PNG/PDF figures to embed directly

If no recognizable structure found: skip repo integration and inform user.

Text Description

If the input is a quoted string with no file path: use it directly as the content source. Claude generates slide content from the description.

Phase 2: Content Structuring

Read content_guidelines.md for the full Pyramid Principle framework and slide design rules.

Scene Template Selection

python
# Import the appropriate template
from templates.defense import DefenseTemplate
from templates.conference import ConferenceTemplate
from templates.seminar import SeminarTemplate

TEMPLATES = {
    "defense": DefenseTemplate,
    "conference": ConferenceTemplate,
    "seminar": SeminarTemplate,
}

template = TEMPLATES[scene]()
slide_budget = template.get_slide_budget(time_minutes)
structure = template.get_structure()
style = template.get_style()

Slide Content Generation

For each slide in the structure:

  1. Map extracted sections to slide slots (e.g., abstract → Motivation slide, results → Results slides)
  2. Generate action titles — complete sentences stating the takeaway, NOT topic labels
    • GOOD: "UTG-augmented agents achieve 50% task completion vs 25.6% baseline"
    • BAD: "Experimental Results"
  3. Generate speaker notes for each slide
  4. Identify which slides need figures (mark with figure type: chart, diagram, code, table)
  5. Generate predicted Q&A questions for the Q&A preparation slide

Ghost Deck Test

After generating all titles, read them in sequence. They should tell the complete narrative of the paper. If the sequence doesn't flow, revise titles.

Phase 3: Figure Generation

Read figure_patterns.md for code patterns and engine selection logic.

Figure Decision Matrix

Data TypeEngineOutput
Bar/line/scatter/heatmapMatplotlib/SeabornPNG (300 DPI)
Confusion matricesMatplotlib/SeabornPNG (300 DPI)
Architecture diagramsGemini image gen (or Mermaid fallback)PNG
Method flowchartsGemini image gen (or Mermaid fallback)PNG
Code snippetsPygments → PIL → PNGPNG
Tablespython-pptx native tableIn-slide

Engine 1: Matplotlib (Data Charts)

For each chart-type figure:

  1. Generate Python code that creates the chart using matplotlib/seaborn
  2. Import whitelist check — before execution, verify only allowed imports:
    python
    ALLOWED_IMPORTS = {'matplotlib', 'seaborn', 'numpy', 'pandas', 'math'}
    
    def validate_imports(code: str) -> bool:
        import ast
        tree = ast.parse(code)
        for node in ast.walk(tree):
            if isinstance(node, ast.Import):
                for alias in node.names:
                    if alias.name.split('.')[0] not in ALLOWED_IMPORTS:
                        return False
            elif isinstance(node, ast.ImportFrom):
                if node.module and node.module.split('.')[0] not in ALLOWED_IMPORTS:
                    return False
        return True
  3. If validation fails: regenerate with explicit instruction to use only allowed imports
  4. Execute the code in a subprocess with 30s timeout
  5. If execution fails: retry once with simplified chart, skip figure if still fails
  6. Output: PNG at 300 DPI, colorblind-friendly palette (use seaborn.color_palette("colorblind"))

Parallel execution: Generate all Matplotlib code first, then execute all scripts in parallel using subprocess (or concurrent.futures.ProcessPoolExecutor). If one fails, others still succeed.

Engine 2: Gemini Image Generation (Concept Diagrams)

Only available if google-genai SDK is installed AND GOOGLE_GENAI_API_KEY env var is set.

python
from google import genai

client = genai.Client(api_key=os.environ.get("GOOGLE_GENAI_API_KEY"))

def generate_concept_diagram(prompt: str) -> bytes | None:
    """Generate a concept diagram using Nano Banana 2 (Gemini 3.1 Flash Image)."""
    try:
        response = client.models.generate_content(
            model="gemini-3.1-flash-image-preview",
            contents=prompt,
            config=genai.types.GenerateContentConfig(
                response_modalities=["Image", "Text"],
                image_config=genai.types.ImageConfig(
                    aspect_ratio="16:9",
                    image_size="1K",
                ),
            ),
        )
        for part in response.candidates[0].content.parts:
            if part.inline_data and part.inline_data.mime_type.startswith("image/"):
                return part.inline_data.data
        return None
    except Exception as e:
        print(f"Gemini error: {e}")
        return None

Rate limiting: Call sequentially with 2s delay between calls. On 429 error: exponential backoff (30s, 60s). On content policy rejection: fall back to Mermaid for that specific diagram.

Mermaid Fallback

If Gemini is unavailable or fails, and mmdc CLI is installed:

bash
echo "$MERMAID_CODE" > /tmp/diagram.mmd
mmdc -i /tmp/diagram.mmd -o /tmp/diagram.png -w 1200 -H 800

If mmdc is not installed: skip concept diagrams entirely. Inform user.

Code Snippet Figures (Pygments)

python
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import ImageFormatter

def code_to_png(code: str, output_path: str, language: str = "python"):
    lexer = PythonLexer()  # or get_lexer_by_name(language)
    formatter = ImageFormatter(
        font_size=14,
        line_numbers=False,
        style="monokai",
        image_pad=20,
    )
    with open(output_path, 'wb') as f:
        f.write(highlight(code, lexer, formatter))

Phase 4: PPTX Assembly

Read templates/base_style.py for the BaseTemplate interface and shared styling.

Assembly Steps

  1. Create a new Presentation object with the template's slide dimensions
  2. For each slide in the structure: a. Add slide with the template's layout b. Set action title c. Insert content (text, bullets, figures, tables) d. Add speaker notes e. Apply the template's styling (fonts, colors, spacing)
  3. Add title slide (first) and Q&A slide (last)
  4. Embed all figures at 300 DPI
  5. Save as .pptx

Structural QA (post-assembly)

After generating the .pptx, run structural checks via python-pptx object model:

python
def structural_qa(prs) -> list[str]:
    """Check for structural issues in the presentation."""
    warnings = []
    for i, slide in enumerate(prs.slides):
        shapes = list(slide.shapes)
        # Check text overflow
        for shape in shapes:
            if shape.has_text_frame:
                for para in shape.text_frame.paragraphs:
                    text_len = sum(len(run.text) for run in para.runs)
                    if text_len > 500:
                        warnings.append(f"Slide {i+1}: Text may overflow ({text_len} chars)")
        # Check figure overlap
        for j, s1 in enumerate(shapes):
            for s2 in shapes[j+1:]:
                if boxes_overlap(s1, s2):
                    warnings.append(f"Slide {i+1}: Shapes may overlap")
    # Check slide count vs time budget
    slide_count = len(prs.slides)
    if slide_count > expected_max:
        warnings.append(f"Too many slides ({slide_count}) for {time_minutes}min talk")
    return warnings

Auto-fix where possible (resize text boxes, reposition overlapping shapes). Display remaining warnings to user.

Content Cross-Reference Verification

After assembly, verify key claims on slides match the source material:

  • Extract all numbers/percentages from slide content
  • Compare against numbers found in the source text
  • Flag any number on a slide that doesn't appear in the source (potential hallucination)
  • Display flagged items to user for manual verification

Phase 5: Output & Progress

Progress Reporting

Throughout the pipeline, display status messages:

[1/6] Extracting content from main.tex...
[2/6] Structuring slides (defense, 15 slides)...
[3/6] Generating data figures (4 charts)...
[4/6] Generating concept diagrams (3 diagrams)...
[5/6] Assembling presentation...
[6/6] Running quality checks...

✓ Output: ./defense_presentation.pptx (15 slides, 7 figures)
⚠ 2 warnings: [list warnings]

Save Artifacts

Save alongside the .pptx:

  • {name}_figures/ — All generated figure PNGs (for manual editing)
  • {name}_matplotlib_code/ — Generated Matplotlib scripts (for tweaking)
  • {name}_log.txt — Run log (which figures succeeded/failed, fallbacks triggered)

Error Handling Summary

ErrorDetectionAction
Encrypted PDFdoc.is_encryptedRaise error, suggest LaTeX input
Scanned PDF (no text)len(text) < 100Raise error, suggest LaTeX or OCR
Two-column garbledLLM validationWarn user, continue with best-effort
Missing \input{} fileos.path.exists() checkWarn, skip that include
Circular \input{}Depth > 3Stop recursion, warn
Matplotlib import violationAST whitelist checkRegenerate code
Matplotlib execution failsubprocess timeout/errorRetry once simplified, skip
Gemini timeout30s timeout per callRetry once, Mermaid fallback
Gemini rate limit 429HTTP statusBackoff 30s/60s, Mermaid fallback
Gemini content policyAPI responseMermaid fallback for that diagram
Shape overflowBounding box mathAuto-resize text box
Font not availableN/A at gen timeUse Arial (universally available)
.pptx too large (>50MB)File size checkWarn user, suggest reducing figures
Wrong numbers on slidesCross-reference checkFlag to user for manual review

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Academic Ppt làm được gì?

Generate publication-quality academic presentations (.pptx) from paper PDFs, LaTeX sources, or text descriptions. Dual-engine figures: Matplotlib for data charts (precise), Gemini image generation for concept diagrams (visually rich). Scene-adaptive templates: defense, conference, seminar. Use when asked to "make slides", "create a presentation", "defense PPT", "academic-ppt", or "generate slides from paper".

Vì sao nên dùng Academic Ppt trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Academic Ppt là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Academic Ppt trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/PHY041/claude-skill-academic-ppt/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Academic Ppt?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Academic Ppt với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Academic Ppt với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Academic Ppt có miễn phí không?

Kỹ năng này được PHY041 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇