Agent skill

Thesis Defense PPTX Builder

by zouchenzhen in zouchenzhen/thesis-defense-pptx-skill

Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check.

Apache-2.0Auto-check passedDocuments & Office

Install Thesis Defense PPTX Builder

skills CLI
$ npx skills add zouchenzhen/thesis-defense-pptx-skill --skill thesis-defense-pptx -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zouchenzhen/thesis-defense-pptx-skill thesis-defense-pptx --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zouchenzhen/thesis-defense-pptx-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/thesis-defense-pptx .claude/skills/thesis-defense-pptx && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
thesis-defense-pptx
GitHub stars
266
Token cost
~2.4k tokens
SKILL.md length
1,084 words
Files
12 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check.

  • Works in 7 steps: Identify inputs → Extract thesis context → Analyze the template → …
  • Generating a defense deck from a thesis PDF or LaTeX project and a template
  • SKILL.md covers Operating Principles, Recommended Workflow, Script Usage and Iteration Tips, plus 2 more sections
  • Runs Python and PowerShell scripts from its folder; calls python

What it does

The template is treated as the source of truth: its cover, colors, fonts, navigation, card styles and slide proportions are preserved unless you ask for a redesign, and native template slides are copied and have their content replaced rather than being rebuilt from blank slides. The agent reads the thesis source itself, extracting figures and captions from the actual LaTeX or PDF with scripts/extract_thesis_context.py, and only uses images the thesis actually cites and you approve, never pulling pictures from the template or an old draft just because they look relevant.

Thesis prose is converted into concise defense talking points rather than copied wholesale, and font sizes from the template are kept by default, with text shortened or slides split before any local font-size change is made. The workflow always produces an editable .pptx, not an outline, image deck or PDF, and ends with a mandatory visual quality gate: exporting slide images, inspecting a contact sheet and key full-size screenshots, and checking for text overflow and leftover template placeholder content. COM-driven cloning, export and overflow inspection need Windows and PowerPoint; macOS and Linux use the python-pptx-only parts and skip those checks.

When your agent uses it

  • Generating a defense deck from a thesis PDF or LaTeX project and a template
  • Matching a new presentation's style to an existing lab or university template
  • Running a visual quality check on a generated PPTX before presenting it

Example prompts

  • “Build my thesis defense deck from thesis.pdf using the lab template lab-template.pptx.”
  • “Convert my LaTeX thesis project into a defense PPTX, keeping only the figures I cited.”
  • “Run the quality gate on this generated deck and tell me about any text overflow.”

Requirements

  • Windows with Microsoft PowerPoint for COM-driven cloning, export and overflow checks
  • Python with python-pptx

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Identify inputs
  2. Extract thesis context
  3. Analyze the template
  4. Build a native template skeleton
  5. Fill content
  6. Quality gate
  7. Final response

What it can do on your machine

Read from SKILL.md and the folder at commit 7cf83b6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 8 files in scripts/ (Python and PowerShell), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Thesis Defense PPTX Builder loads about 2.4k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 1,084 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from zouchenzhen/thesis-defense-pptx-skill at commit 7cf83b6, republished under its Apache-2.0 licence (© zouchenzhen). 1,084 words, ~2,400 tokens.

Download SKILL.mdSave it as .claude/skills/thesis-defense-pptx/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
thesis-defense-pptx
description
Create, polish, and quality-check editable undergraduate or graduate thesis defense PowerPoint decks from a local thesis PDF/LaTeX project and an existing PPTX template. Use when the user asks for a formal defense PPT, thesis presentation, academic答辩PPT, template-matched PPTX, or local PowerPoint deck generation with visual inspection.

Thesis Defense PPTX

Use this skill for local, editable .pptx thesis defense decks that must follow a supplied university/lab/company PowerPoint template.

Operating Principles

  • Platform: Windows + Microsoft PowerPoint for COM-driven cloning, export, and overflow inspection. On macOS/Linux, use the python-pptx-only parts and skip COM-based quality gates.
  • Treat the visual template as the source of truth. Preserve its cover, colors, fonts, navigation, card styles, logos, and slide proportions unless the user explicitly asks to redesign.
  • Read the thesis source first: PDF, LaTeX, figures, old PPT, experiment scripts, tables, and captions. Do not generate from topic/title alone when source files exist.
  • Build a source-asset inventory before placing images: extract \includegraphics entries and captions from the final TeX/PDF, then use only thesis-cited figures or images the user explicitly approves. Do not carry over pictures from a template, old progress deck, or draft figure folder merely because they look relevant.
  • Prefer copying native template slides and replacing content over rebuilding from blank slides.
  • Keep slides concise and presentation-oriented. Convert thesis prose into defense talking points.
  • Preserve the template's font sizes and hierarchy by default. For projection readability, first shorten text, split dense slides, or use the template's larger existing layouts; only change font sizes locally when the template itself provides no readable fit.
  • Always generate an editable .pptx, not only an outline, image deck, PDF, or HTML.
  • Always run a visual quality gate before final response: export slide images, inspect a contact sheet plus key full-size slide screenshots, check text overflow, check stale template words/images, and verify the PPTX opens.
  1. Identify inputs:

    • thesis project path or full thesis document
    • visual template PPTX
    • optional old defense/report PPTX
    • output directory and desired filename
  2. Extract thesis context:

    • Use scripts/extract_thesis_context.py to summarize PDF/TeX text and list candidate figures.
    • Read source files directly when details matter: abstract, introduction, method, experiments, results, conclusion.
    • Create an explicit list of final-thesis figures from \includegraphics and captions. Treat this as the allow-list for PPT images unless the user requests new visuals.
    • Collect defense-critical facts: problem, motivation, modeling, algorithms, experimental setup, baselines, metrics, key results, limitations, future work.
  3. Analyze the template:

    • Export template slides to PNG if PowerPoint is available.
    • Inspect cover, TOC, navigation, section, body/card, chart/image, summary, and closing slide styles.
    • Note fonts, font sizes, red/brand color, card dimensions, line widths, and spacing.
  4. Build a native template skeleton:

    • Use PowerPoint COM (scripts/clone_template_deck.ps1) when PowerPoint is installed.
    • Copy or duplicate original template slides in the needed order.
    • Use python-pptx only to replace content and add images/shapes after the skeleton is valid.
  5. Fill content:

    • Use 12-16 slides for undergraduate defense unless user specifies otherwise.
    • Typical order: cover, TOC, background, problem definition, work summary, system/method, modeling, implementation, experiment setup, training/results, comparison, robustness/multi-seed, innovation/limitations, summary/outlook, thanks.
    • Use final-thesis figures first and verify each inserted picture against the source-asset inventory. If a picture is from a template or old deck and is not thesis-cited, replace it or remove it.
    • Keep dense tables limited to headline metrics; move detailed prose into verbal notes or omit. Prefer one message per slide, large existing template placeholders, metric cards, and short bullets over shrinking text or adding small multi-column tables.
    • Match the template's typography before changing sizes: preserve title/body/table/navigation sizing where possible, and use content reduction or slide splitting before manual font scaling.
  6. Quality gate:

    • Export final PPTX to PNG with scripts/export_pptx_png.ps1.
    • Create a contact sheet with scripts/make_contact_sheet.py.
    • Run scripts/inspect_pptx_overflow.ps1.
    • Run scripts/scan_pptx_text.py for slide count and stale template terms.
    • Inspect the contact sheet manually, then open any risky slide full-size. COM overflow is not sufficient: also check visible clipping, text crossing card borders, small text caused by overfilling, stale template images, image aspect ratios, and text/card overlap.
    • Check stale template text, placeholders, wrong names/dates, wrong navigation labels, red active-nav white text, and non-thesis images accidentally inherited from the template or old progress deck.
    • Fix and repeat until the exported deck is clean.
  7. Final response:

    • Give the full output path, total slide count, main changes, validation performed, and any unresolved manual confirmations.
Show full SKILL.md (417 more words)Show less

Script Usage

Extract thesis context:

powershell
python scripts/extract_thesis_context.py --input "D:\path\to\thesis" --output "D:\path\to\thesis_context.md"

Clone template slides into a native skeleton:

powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/clone_template_deck.ps1 `
  -Template "D:\path\template.pptx" `
  -Output "D:\path\output.pptx" `
  -SlideSequence "1,2,3,4,4,6,7,8,9,10,11,12,13,14,15"

In this example slide 4 is deliberately reused as a sub-section page and slide 5 is skipped.

Export final deck:

powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/export_pptx_png.ps1 `
  -Pptx "D:\path\output.pptx" `
  -OutDir "D:\path\visual_check" `
  -Width 1600 -Height 900

Inspect possible overflow:

powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/inspect_pptx_overflow.ps1 `
  -Pptx "D:\path\output.pptx" `
  -Tolerance 40 `
  -OutputJson "D:\path\overflow.json"

Make a contact sheet:

powershell
python scripts/make_contact_sheet.py --input "D:\path\visual_check" --output "D:\path\contact_sheet.png"

Scan deck text and forbidden terms:

powershell
python scripts/scan_pptx_text.py `
  --pptx "D:\path\output.pptx" `
  --bad "中期检查,项目简介,系统框图,算法设计,成果展示,总结分析,TODO,占位"

For quality criteria, read references/pptx_quality_gate.md.

Iteration Tips

The fastest way to fail a content fill is guessing strings instead of reading them. Use this loop:

  1. Dump first. Run scripts/dump_pptx_content.py --pptx <skeleton> --output dump.md to list every shape's exact text, plus all table cells and picture names. Open dump.md and copy the strings you intend to replace.
  2. Prefer partial match for body text. Use replace_partial_text(slide, {"keyword": "new full text"}) instead of replace_exact_text whenever the body sentence might differ from the template by a stray space, half/full-width quote, or —— vs —. Pass min_len=20 to avoid short-key collisions with navigation tags.
  3. Keep replace_exact_text for short tags. Navigation labels and section titles ("项目简介", "工作总结") are stable; exact match is safer because it cannot accidentally rewrite a body paragraph that happens to contain the same word.
  4. Use the table/picture helpers. write_table(table, rows) preserves cell font/color/size, and replace_picture(slide, old_pic, new_path) swaps an image while keeping position and size — both avoid the boilerplate of removing and re-creating shapes.
  5. Re-run overflow + scan after every fill pass. Overflow caused by longer content is the single most common bug; fix by shortening copy first, then by manual \n line breaks, and only resize the textbox if the template visual really allows it.
  6. Encoding. All Python scripts shipped here force stdout to UTF-8, and the PowerShell scripts force the console output codepage to UTF-8, so cp936/gbk consoles do not corrupt JSON output containing CJK paths or Unicode symbols (−, Δ, ✓).

Script Usage

Dump every slide's shapes/text/tables/pictures (run this BEFORE constructing replacement dicts):

powershell
python scripts/dump_pptx_content.py --pptx "D:\path\skeleton.pptx" --output "D:\path\dump.md"

Add --slide 4,8,9 to limit to specific slides while iterating.

Implementation Notes

  • Requires Python 3.10+ and the packages in requirements.txt.
  • On Windows with Microsoft PowerPoint installed, PowerPoint COM is the most reliable way to duplicate template slides and inspect real rendering.
  • python-pptx is good for editable text, shapes, images, tables, and simple charts, but it does not perfectly model every PowerPoint layout/rendering behavior.
  • scripts/pptx_template_tools.py uses THESIS_PPTX_BRAND_RED when set (#830604, 830604, or 131,6,4) so new school templates do not require source edits for the primary red.
  • When a PowerPoint add-in blocks COM automation, disable only the broken add-in autoload if necessary and report that action.
  • Use backups before overwriting a deck.
  • Never revert unrelated user files while iterating.

© zouchenzhen, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (scripts, references) in skills/thesis-defense-pptx of zouchenzhen/thesis-defense-pptx-skill.

  • SKILL.md
  • agents/openai.yaml
  • references/pptx_quality_gate.md
  • requirements.txt
  • scripts/clone_template_deck.ps1
  • scripts/dump_pptx_content.py
  • scripts/export_pptx_png.ps1
  • scripts/extract_thesis_context.py
  • scripts/inspect_pptx_overflow.ps1
  • scripts/make_contact_sheet.py
  • scripts/pptx_template_tools.py
  • scripts/scan_pptx_text.py

Open the folder on GitHubat commit 7cf83b6

Compare with similar skills

Thesis Defense PPTX Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Thesis Defense PPTX Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Thesis Defense PPTX Builder this skillzouchenzhen/thesis-defense-pptx-skill266—~2.4kAutomated safety check: PassApache-2.0
Powerpoint SlidesNoi1r/powerpoint-skill124—~12kAutomated safety check: NotesMIT
Sci PptShZhao27208/Aut_Sci_Write209—~757Automated safety check: PassMIT
Latex Defense Zhbahayonghang/academic-writing-skills500—~2.2kAutomated safety check: PassNone
BeamerNoi1r/beamer-skill364—~13kAutomated safety check: NotesMIT
Beamer Deckflonat/flonat-research146—~3.2kAutomated safety check: PassMIT

Similar skills

  • Powerpoint Slides

    Noi1r/powerpoint-skill

    Create visually rich PowerPoint (.pptx) presentations from academic papers, research notes, or any content the user wants in slide format.

    124 GitHub stars~12k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check: notes
  • Sci Ppt

    ShZhao27208/Aut_Sci_Write

    Generate professional academic PowerPoint (PPTX) presentations from paper PDFs, structured outlines, or plain text.

    209 GitHub stars~757 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Latex Defense Zh

    bahayonghang/academic-writing-skills

    Chinese thesis defense deck builder for existing XeLaTeX PhD or master thesis repositories.

    500 GitHub stars~2.2k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Beamer

    Noi1r/beamer-skill

    Beamer LaTeX slide workflow: create, compile, review, and polish academic presentations.

    364 GitHub stars~13k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check: notes
  • Beamer Deck

    flonat/flonat-research

    Create an academic presentation as a LaTeX Beamer source and reviewed PDF with an original theme.

    146 GitHub stars~3.2k tokensUpdated 11 days ago
    Documents & OfficeAuto-check passed
  • Cheatsheet Generator

    Evan715823/cheatsheet-generator-skill

    Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images).

    200 GitHub stars~3k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check: notes

Questions about Thesis Defense PPTX Builder

What does Thesis Defense PPTX Builder do?

Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check. The template is treated as the source of truth: its cover, colors, fonts, navigation, card styles and slide proportions are preserved unless you ask for a redesign, and native template slides are copied and have their content replaced rather than being rebuilt from blank slides.py, and only uses images the thesis actually cites and you approve, never pulling pictures from the template or an old draft just because they look relevant.

When should I use Thesis Defense PPTX Builder?

Thesis Defense PPTX Builder fits situations like: generating a defense deck from a thesis PDF or LaTeX project and a template; matching a new presentation's style to an existing lab or university template; running a visual quality check on a generated PPTX before presenting it.

How do I install Thesis Defense PPTX Builder in Claude Code?

Run `npx skills add zouchenzhen/thesis-defense-pptx-skill --skill thesis-defense-pptx -a claude-code`. Or copy the skill folder (skills/thesis-defense-pptx in zouchenzhen/thesis-defense-pptx-skill) into .claude/skills/thesis-defense-pptx in your project. Claude Code loads it when a task matches its description.

How do I install Thesis Defense PPTX Builder in Codex?

Run `npx skills add zouchenzhen/thesis-defense-pptx-skill --skill thesis-defense-pptx -a codex`. Or copy the skill folder (skills/thesis-defense-pptx in zouchenzhen/thesis-defense-pptx-skill) into .agents/skills/thesis-defense-pptx in your project. Codex loads it when a task matches its description.

Can I use Thesis Defense PPTX Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zouchenzhen/thesis-defense-pptx-skill --skill thesis-defense-pptx -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/thesis-defense-pptx, .gemini/skills/thesis-defense-pptx, .github/skills/thesis-defense-pptx and .opencode/skills/thesis-defense-pptx in your project.

What does Thesis Defense PPTX Builder need to run?

Going by SKILL.md and its folder, Thesis Defense PPTX Builder needs Python and PowerShell for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Windows with Microsoft PowerPoint for COM-driven cloning, export and overflow checks; Python with python-pptx.

Does Thesis Defense PPTX Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Thesis Defense PPTX Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Thesis Defense PPTX Builder use?

Thesis Defense PPTX Builder is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Thesis Defense PPTX Builder use?

About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 854 tokens, read only when the agent opens those files.

What are the alternatives to Thesis Defense PPTX Builder?

Skills that share tags, products or a category with Thesis Defense PPTX Builder: Powerpoint Slides (Noi1r/powerpoint-skill, 124 stars), Sci Ppt (ShZhao27208/Aut_Sci_Write, 209 stars), Latex Defense Zh (bahayonghang/academic-writing-skills, 500 stars) and Beamer (Noi1r/beamer-skill, 364 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Thesis Defense PPTX Builder?

zouchenzhen (a GitHub user) maintains it in zouchenzhen/thesis-defense-pptx-skill, which has 266 GitHub stars. The repository was last updated on June 5, 2026.

Source: zouchenzhen/thesis-defense-pptx-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.