zouchenzhen/thesis-defense-pptx-skill / skills/thesis-defense-pptx
thesis-defense-pptx
VerifiedCreate, 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.5 KB |
| agents/openai.yaml | config | 255 B |
| references/pptx_quality_gate.md | markdown | 3.3 KB |
| requirements.txt | manifest | 58 B |
| scripts/clone_template_deck.ps1 | script | 2.6 KB |
| scripts/dump_pptx_content.py | script | 4.8 KB |
| scripts/export_pptx_png.ps1 | script | 1.5 KB |
| scripts/extract_thesis_context.py | script | 5.4 KB |
| scripts/inspect_pptx_overflow.ps1 | script | 3.9 KB |
| scripts/make_contact_sheet.py | script | 2.3 KB |
| scripts/pptx_template_tools.py | script | 9.8 KB |
| scripts/scan_pptx_text.py | script | 2.4 KB |
references/pptx_quality_gate.md
View on GitHub# PPTX Quality Gate
Run these checks before final delivery.
## Required Checks
- PowerPoint opens the `.pptx` without repair prompts.
- The deck exports to one PNG per slide.
- Slide count matches the intended count.
- Cover, TOC, navigation, body pages, results pages, and closing page match the template style.
- All active navigation labels use the template active style, usually red background and white text.
- TOC order matches the actual slide order and top navigation order.
- No stale template text remains, such as old project names, old dates, placeholder labels, TODOs, GitHub demo text, or example names.
- Text does not overflow or touch card borders in exported PNGs.
- Images preserve aspect ratio and are not clipped in a misleading way.
- Tables remain readable at presentation scale.
- Final deck is editable: text is text where possible, not a screenshot-only slide.
- Chinese fonts are available or embedded where the delivery environment requires them; otherwise template fonts such as Source Han Sans or Founder title fonts may fall back to SimSun.
- TOC, top navigation active state, and any static footer/page-number text agree with the final slide order.
## PowerPoint COM Checks
Use `TextFrame2.TextRange.BoundWidth` and `BoundHeight` against shape dimensions to find risky text boxes. Treat this as a warning signal, not an absolute truth, because mixed Chinese/English text may produce conservative width estimates.
Escalate a warning to a real issue when exported PNGs show:
- text crossing a card or slide boundary
- text clipped at the right/bottom edge
- text touching a red border
- overlapping navigation labels
- figures or captions covering each other
## Visual Review Order
1. Contact sheet for whole-deck rhythm and consistency.
2. Cover and TOC.
3. Dense body/card slides.
4. Figure-heavy slides.
5. Results tables and charts.
6. Summary and thanks slide.
## Fix Patterns
- Prefer shorter wording and manual line breaks over shrinking fonts.
- Preserve template font family and visual hierarchy.
- If a card body is crowded, split the sentence into shorter presentation phrases.
- If English identifiers cause overflow, add spaces around separators or break them across lines.
- If TOC/navigation order changes, update both together.
- If a figure is unreadable, crop less, enlarge it, or replace it with a simplified figure derived from the source.
## Iteration Discipline
- **Dump before you replace.** Real-world template strings differ from what they look like at a glance — `——` (U+2014 EM DASH) vs `—`, half/full-width quotes, trailing whitespace, or hidden run boundaries. Run `scripts/dump_pptx_content.py` first and copy the exact strings; do not retype from a screenshot.
- **Prefer `replace_partial_text` for body paragraphs.** Substring matching with a `min_len` guard recovers gracefully from minor template diffs. Reserve `replace_exact_text` for short, stable tags like navigation labels.
- **Verify with a second dump.** After every fill pass, re-dump the deck (or the affected slides via `--slide 4,8,9`) and diff against intent. Catching a missed replacement before exporting PNG saves a full PowerPoint round-trip.
- **Run overflow + scan together.** Stale text scan and overflow check probe orthogonal failure modes; running both after every iteration prevents shipping a deck that looks clean in one report and broken in the other.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |