Skip to main content

slides-polish

Per-page Codex review + targeted python-pptx / Beamer fixes for academic talk slides. Use AFTER /paper-slides (or any externally generated PPTX/Beamer) when the deck looks 'mostly OK' but the user wants a final pass that aligns visual weight with a reference, bumps PPTX fonts to projector-readable size, kills italic style leaks, fixes text-frame overflow, and catches per-slide layout drift. Trigger phrases: "polish slides", "slides 排版不对", "PPTX 字体太小", "和 Beamer 比一下", "per-page review", "和 codex 一页一页过".

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install auto-research-skills-codex-slides-polish
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/auto-research-skills-codex-slides-polish/SKILL.md

Setup guide →
0Save

Instructions

Slides Polish: Per-Page Codex Review + Targeted Layout Fixes

Before each reviewer slot, follow Selectable Reviewers:
resolve invocation → .aris/reviewer.json → Codex default (fresh native reviewer)
with reviewer_route.py through the canonical helper resolver, preserving this
slot's tier, fresh contexts, source/image inputs and deterministic gates.
Codex examples/pins below apply only to backend=codex; other routes use their
own first-call/reply contract. Save the route and actual returned identity;
unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual
families/completion/scope. Forward invocation reviewer/model/effort overrides
to reviewer-bearing children. Generation workers are unchanged.

Polish a generated slide deck — Beamer (.tex + .pdf) and/or PPTX — by
running per-page Codex review against a reference visual and applying
surgical fixes (font scaling, text-frame resize, callout-box style, em-dash
spacing, anonymity placeholders, Chinese-font hints, italic style leaks)
until each slide reads at the same visual weight as the reference.

Polish: $ARGUMENTS

What This Skill Is — and Is NOT

This skill polishes layout and typography only. It is the post-generation
visual pass for an existing deck.

Hard scope rules (load-bearing — see Hard Invariants):

  • It does not rewrite content, claims, numbers, citations, URLs, author
    names, affiliations, or experiment results.
  • It does not add, remove, or reorder slides unless the user explicitly
    asks (e.g., — add-slide / — drop-slide flags).
  • It does not generate outlines, speaker scripts, or new Beamer/PPTX from
    paper source. That is /paper-slides's job.
  • It does not change figures or equations content.

If you do not yet have a deck, run /paper-slides first. If you want to
change content, go back to /paper-slides Phases 1-2 (or rewrite the outline
manually) — do not run /slides-polish for that.

Constants

  • REVIEWER_MODEL = gpt-6-astra — Codex MCP model for per-page review. xhigh reasoning is non-negotiable (see ../shared-references/effort-contract.md). If the account has no gpt-6-astra access, follow the canonical capability fallback chain in ../shared-references/reviewer-routing.md (the model fallbacks start with gpt-6.1-sol+xhigh; gpt-5.4 only as an explicit user override).
  • REVIEWER_REASONING = xhigh — Hard invariant; the effort knob does not change this.
  • CONTEXT_POLICY = fresh — Each per-page review uses a fresh Codex reviewer call (spawn_agent, never send_input). See ../shared-references/reviewer-independence.md. This prevents the reviewer from anchoring on prior fixes.
  • REFERENCE_VISUAL — Path to a PDF the user wants the polished deck to align with in visual weight (typography proportion, color discipline, callout density). Required input. If polishing PPTX only, the Beamer compile of the same talk is the ideal reference. If no reference exists yet, ask the user; do not silently default to "Why-RF" or any preset.
  • STYLE_PRESET = generic — Default style anchor. Other options: why-rf (academic-minimalist, derived from a 2025 academic talk), neurips, icml, iclr, cvpr. Presets influence color discipline + element library; the reference PDF is the visual ground truth, not the preset.
  • PPTX_SCALE_HINT = 1.6× — Heuristic multiplier from Beamer point sizes to PPTX point sizes for matched visual weight on 13.33"×7.5" PowerPoint at 16:9. Range 1.5-1.8×. The actual scale is always validated by visual review, never blindly applied.
  • INTERACTIVE = false — When false, applies the recommended fix automatically and continues to the next slide. When true (— interactive), pauses for user confirmation before each fix.
  • OUTPUT_VERSIONING = on — Output is a versioned file named <input-stem>_polished.<ext> (or _polished_v2, _v3, …). Snapshot of the input is preserved as <input-stem>_pre_polish.<ext>. The original is never overwritten. All edit operations target the _polished working copy.

💡 Override examples

  • /slides-polish talk_pptx/talk.pptx — reference: talk_beamer/main.pdf — style: why-rf
  • /slides-polish talk_beamer/ — reference: ./reference_talk.pdf — style: generic — effort: max
  • /slides-polish talk.pptx — reference: ./why_rf_2025.pdf — interactive

Prerequisites

The skill discovers and reports missing prerequisites at Phase 0; it does not
auto-install. Required:

  • Python: python3 with python-pptx>=0.6 (pip install python-pptx).
  • PDF inspection: pdfinfo and either pdftoppm (poppler, preferred) or mutool draw (mupdf) for rendering slides to PNG. Required so the per-page Codex call sees actual slide pixels, not text extraction alone. Render command: pdftoppm -r 150 -png <pdf> <out-stem> (or mutool draw -o <out-stem>-%d.png -r 150 <pdf>).
  • PPTX → PDF rendering: soffice (LibreOffice headless) preferred; otherwise the user must export PDF manually from PowerPoint/Keynote.
  • LaTeX (Beamer side only): xelatex (CJK) or pdflatex, plus latexmk for clean recompiles. The Beamer fix patterns in Phase 2 may require these LaTeX packages: microtype (letter-spacing in section labels), array (raggedright p-columns), tcolorbox (banners and callouts), ctex or xeCJK (CJK), tikz + tikz-cd (diagrams).
  • Selected reviewer: resolve the route before Phase 0. If unavailable, stop with REVIEW_UNAVAILABLE; do not silently select another provider. Its image/PDF input capability must satisfy the per-page visual review.

Fallback rules:

  • If pdftoppm/mutool missing → ask user to install, do not proceed (visual review without rendered pages produces low-confidence Codex feedback).
  • If soffice missing and PPTX is the input → ask user to export PDF from their slide tool; resume after.

Inputs

Discovered automatically from $ARGUMENTS and the project directory:

  1. Slides source:
    • A directory containing *.pptx, or talk_beamer/main.tex + main.pdf, or both.
    • A specific file path (talk.pptx or main.tex).
  2. Reference PDF (— reference: <path>, REQUIRED). If not supplied, the skill prompts the user. Do not silently substitute.
  3. Style preset (— style: <preset>, default generic). Influences color hex codes and element library; see Style Presets below.
  4. Effort (— effort: lite | balanced | max | beast, default balanced). See Effort Levels.
  5. Interactive flag (— interactive). Pauses after each per-slide fix.

Output Layout

<deck-dir>/
├── <stem>.pptx                       # original (untouched)
├── <stem>_pre_polish.pptx            # snapshot before any edit
├── <stem>_polished.pptx              # versioned working output
├── <stem>_polished.pdf               # rendered (when conversion available)
└── ... (Beamer files mirrored)

.aris/slides-polish/<deck-stem>/
├── POLISH_STATE.json                 # phase + per-slide status + version pointer
├── INSPECT_<stem>.json               # pre-polish shape inventory
├── TRIAGE.md                         # Phase-1 verdict matrix (per-slide PASS/NEEDS-WORK/BLOCKER)
├── POLISH_CHANGELOG.md               # per-slide fix log (auditable)
└── traces/                           # codex traces (per-slide review JSON, see review-tracing.md)
    ├── slide_01.json
    ├── slide_02.json
    └── ...

The skill keeps a self-contained cache under
.aris/slides-polish/<deck-stem>/. Per-call Codex traces also follow the
shared convention .aris/traces/slides-polish/<date>_runNN/ per
../shared-references/review-tracing.md. Resumable across sessions if
POLISH_STATE.json exists with "status": "in_progress" and is < 24h old.

Note: existing skills like /paper-slides may use a co-located state file
(e.g., slides/SLIDES_STATE.json). /slides-polish keeps its state
in .aris/ to keep the deck directory free of polish-specific cruft.

Workflow

Phase 0: Inventory, Inspect, Triage

  1. Discover inputs: parse $ARGUMENTS; locate slides files; check prerequisites; emit a brief inventory report.
  2. Confirm reference PDF: validate the file exists and has the same slide count (or at least ≥ slide count) as the input. If a mismatch, ask user.
  3. Inspect shapes: run the inspector (Phase 0 sub-step below) to produce INSPECT_<stem>.json listing every text-frame and shape on every slide with: shape id, type, text content (escaped), font sizes per run, bbox in inches, fill/line color, image dimensions for pictures, presence of speaker notes. This file is the ground truth for "find shape by text" downstream.
  4. Snapshot original: cp <stem>.pptx <stem>_pre_polish.pptx (and .tex if Beamer present). All subsequent edits target _polished copy.
  5. Render PPTX → PDF if needed (soffice --headless --convert-to pdf). If unavailable, prompt user to export.
  6. Render PDF → PNG: pdftoppm -r 150 <pdf> .aris/slides-polish/<stem>/png/page produces one PNG per slide; passed to Codex during per-page review.
  7. Triage pass: a single fresh Codex call sweeps all N slides comparing PPTX-PDF (or Beamer PDF) against the reference. Output: per-slide verdict matrix.

Inspector contract

The skill ships a contract for inspect_pptx.py rather than a fixed
implementation. On first run, if the script is absent under
.aris/slides-polish/<deck-stem>/inspect_pptx.py, create it from this
contract.
Implementations may evolve; the contract is what downstream
phases depend on.

CLI:

python3 inspect_pptx.py --pptx <input.pptx> --out <state-dir>/INSPECT_<stem>.json
# exit 0 on success, 2 on missing python-pptx, 3 on parse failure

Recurse through groups; surface table cells and placeholders. Convert all
geometry from EMU to inches via EMU_PER_INCH = 914400. Compute
notes_text_hash as sha256(notes_text) for byte-level integrity check
in Phase 4. Schema:

{
  "slide_count": 22,
  "slide_size_in": [13.33, 7.5],
  "slides": [
    {
      "index": 0,
      "page_number_text": "1 / 22",
      "has_notes": true,
      "notes_text_hash": "sha256:…",
      "shapes": [
        {
          "id": "13",
          "name": "TextBox 3",
          "shape_path": ["13"],
          "parent_group_ids": [],
          "type": "TEXT_FRAME",
          "placeholder_type": null,
          "table_cell": null,
          "text": "ARIS",
          "runs": [
            {"text": "ARIS", "font_pt": 80.0, "bold": false,
             "italic": false, "color_rgb": "1F1F1F"}
          ],
          "bbox_in": {"left": 0.5, "top": 1.6, "width": 12.33, "height": 0.95},
          "fill_rgb": null,
          "line_rgb": null,
          "image_size_px": null
        }
      ]
    }
  ]
}

Schema notes:

  • shape_path: list of shape IDs from outermost group to leaf shape.
  • parent_group_ids: empty if shape is at the slide root.
  • type: one of TEXT_FRAME | PICTURE | AUTO_SHAPE | GROUP | TABLE | CONNECTOR | PLACEHOLDER.
  • placeholder_type: e.g., TITLE | BODY | OBJECT | NONE.
  • table_cell: {row, col} if shape is a table cell, else null.
  • All hex colors are 6-char uppercase, no leading #.
  • All geometry in inches, rounded to 4 decimals.

Triage Codex prompt

Resolve this reviewer slot first; the following is the backend=codex example.

spawn_agent:
  model: gpt-6-astra
  reasoning_effort: xhigh
  message: |
    Triage pass. For each of N slides in <pptx-pdf-path>, compared against
    <reference-pdf-path>, give one line:

      Slide K | PASS | NEEDS-WORK | BLOCKER — <one-sentence reason>

    Focus on: visual-weight match, text-frame overflow, page-number overlap,
    awkward title wraps, italic style leaks, Chinese tofu/missing-glyph
    boxes, callout-box color discipline, anonymity leaks (e.g., real titles
    appearing where placeholders should be).

    Do NOT rewrite content. Do NOT propose font scaling for slides that
    already read fine. Do NOT comment on speaker notes.

    End with a one-line summary: "K BLOCKERS, K NEEDS-WORK, K PASS."

Save matrix to TRIAGE.md. Present to user before deep work begins.

Phase 1: Per-Page Review + Fix Loop

For each slide flagged NEEDS-WORK or BLOCKER, run a focused fresh-thread
Codex call. Apply the returned fix immediately (subject to INTERACTIVE),
recompile or save, move to next slide.

Per-page loop, not batch. Empirically: per-page Codex calls converge in
1-2 polish rounds where single-pass batch review never converges.

Per-page Codex prompt template

Resolve this reviewer slot first; the following is the backend=codex example.

spawn_agent:
  model: gpt-6-astra
  reasoning_effort: xhigh
  message: |
    SLIDE K review. Compare PPTX page K against reference page K.

    Files:
    - PPTX page rendering: <png-path>/page-K.png
    - Reference page rendering: <ref-png-path>/page-K.png
    - Source: <pptx-file-path> (slide index K-1) and/or <main-tex-path>
    - Inspector inventory for slide K: <inspect-json-slide-K-snippet>

    Slide K title (from inventory): "<title>".

    Style anchor: <style-preset> + reference PDF.

    Give:
    1. Status: PASS / NEEDS-WORK / BROKEN
    2. What's working (1-2 specifics)
    3. What's drifting vs reference (1-3 specifics)
    4. Concrete python-pptx (or .tex) fixes:
       - Identify shapes by their text content (NOT by index — index drifts).
       - Use unique-prefix substring matching; if duplicate matches, abort
         and request human disambiguation rather than touching the first.
       - Give before/after snippets.
    5. If a fix would change CONTENT (claims, numbers, anonymity placeholder
       text, etc.), STOP and report it instead of suggesting it.

    End: VERDICT: PASS | NEEDS-WORK | BROKEN. Under 500 words.

Fix application

After Codex returns, call apply_fix(slide_index, fix_block) which:

  1. Loads the _polished working copy.
  2. Locates each target shape by text_frame.text substring; asserts unique match or aborts.
  3. Applies edits (font size, position, color, italic, line spacing).
  4. Saves atomically (write to tmp + rename).
  5. Logs the change to POLISH_CHANGELOG.md (one line: Slide K | <change> | reason).

After every 3 slides, write a checkpoint snapshot
<stem>_polished_checkpoint_KK.pptx.

Robust shape selection

def find_shape(slide, contains: str, *, kind: str | None = None):
    """Return the unique shape whose text_frame.text contains `contains`.
    Aborts if duplicate matches (caller must disambiguate by bbox or kind).
    """
    matches = []
    for sh in slide.shapes:
        if not sh.has_text_frame:
            continue
        if kind is not None and sh.shape_type != kind:
            continue
        if contains in sh.text_frame.text:
            matches.append(sh)
    if len(matches) == 0:
        raise LookupError(f"no shape contains {contains!r} on slide")
    if len(matches) > 1:
        raise AmbiguousMatch(f"{len(matches)} shapes contain {contains!r}; "
                             f"need disambiguator (kind, bbox, or longer needle)")
    return matches[0]

For grouped shapes, recurse into shape.shapes if shape_type == GROUP.

Phase 2: Beamer-Side Polish (if Beamer source present)

Same per-page review pattern, but on main.tex source + compiled PDF. Fixes
are direct Edit tool operations on a main_polished.tex working copy
followed by xelatex recompile and PNG re-render. The original main.tex
is preserved.

Common Beamer fix patterns (inline catalog — no external file required)

These are encoded directly in this SKILL.md so the skill has zero external
dependencies:

  • Frame title size + thin underline rule: use beamercolorbox template
    with \hrule height 0.55pt AFTER the title text, NOT a bare \rule{}
    outside the beamercolorbox (which renders top-right, not under title).
  • \sectionlabel macro for small caps blue mini-headers:
    \newcommand{\sectionlabel}[1]{%
      {\sffamily\fontsize{8}{10}\selectfont
       \textcolor{<accent>}{\textls[200]{\MakeUppercase{#1}}}}}
    
    Requires microtype for \textls.
  • array package for >{\raggedright\arraybackslash}p{Xcm} in cards.
    Without it, tabular cells justify and create rivers / mid-word hyphenation
    in narrow columns.
  • Banner = real tcolorbox, not \begin{center}\color{...} (which
    renders as plain centered text, not a banner).
  • Em-dash spacing: prefer \textemdash{} (with explicit braces) or
    \,---\, over a bare —. A bare em-dash often renders with collapsed
    surrounding whitespace.
  • Color-leak inside \sectionlabel: \sectionlabel{... \textcolor{red}{...}}
    BREAKS because \MakeUppercase uppercases color name → undefined-color
    error. Put \textcolor outside or define a colored \sectionlabel* variant.
  • CJK + math: with xelatex, use \usepackage[fontset=fandol]{ctex} or
    set EA fonts explicitly. Mixed Chinese-English in titles needs the EA font
    hint or characters fall back to Latin.

Phase 3: PPTX-Side Polish

Apply font scaling first (Phase 3a), then layout fix loop (Phase 3b).
Bumping fonts without resizing frames creates overflow.

Phase 3a: Font scaling (heuristic table)

Compute target sizes from Beamer reference using PPTX_SCALE_HINT. Reference
mapping:

Beamer ptPPTX targetRole
8 / 8.514-18 small capssection labels
10 italic14 italicgray italic cue / hints
11 body22-24bullets, paragraphs
12 page number16"N / total" gray bottom-right (cap at 16)
14 emphasis body22-24bigger sub-headers
16 callout content24-28eqbox / yellowstrip body
17-22 big number28-36hero stats (e.g., "8.1k+", funnel "8/6/2/1")
22 frame title40-44every page title
28 emphasis hero36-44hero text
42 cover wordmark80-100 plain BLACKcover (Why-RF discipline: not colored)

Page-number rule: never bump page numbers above 16pt. They stay small.

After scaling, always revisit Phase 1 triage — the 1.6× hint is a
starting point; some slides need 1.5×, some 1.8×.

Phase 3b: Text-frame layout fix loop

Two recurring failure modes after font bump:

  1. Title overlaps subtitle/body: a title at 100pt sits in a 0.95"-tall
    frame but the glyph is ~1.4" tall, so it bleeds down. Fix: increase the
    text frame height AND reposition the next-element top.
  2. Body bullets wrap mid-sentence: a long-noun-phrase bullet wraps
    with the final noun alone on the next line because the frame width is
    sized for the old (smaller) font. Fix: widen the frame AND narrow the
    adjacent column.

Each per-page Codex call returns specific shape resize commands; apply via
the inspector's bbox primitives.

Phase 3c: Common PPTX pitfalls (inline catalog)

  • Image aspect ratio: bumping width without height stretches embedded
    PNGs. Always compute height = width × (image_height_px / image_width_px).
  • Banner = real filled rectangle: use tcolorbox-equivalent (in PPTX,
    a separate MSO_SHAPE.RECTANGLE behind the text frame), not just colored
    text.
  • Curved arrows: python-pptx has no curved-arrow primitive. Approximate
    with two straight MSO_CONNECTOR_TYPE.STRAIGHT connectors (vertical +
    horizontal) or use an add_freeform Bezier. Document the approximation.
  • Italic style leak: \itshape in the source without braces causes all
    following runs in the same paragraph to inherit italic. Wrap as
    {\itshape ...} or scope to a single run.
  • Chinese rendering: PowerPoint needs the East Asian font hint
    (<a:ea typeface="PingFang SC"/> for macOS, Microsoft YaHei for
    Windows). Without it, characters fall back to a Latin font and render
    as tofu boxes.
  • Em-dash spacing: bare — in titles often renders with collapsed
    spaces. Insert literal spaces (" — ") or use figure-space.
  • Cycle-arrow / feedback-loop labels: ensure label bbox stays inside
    slide bounds (L > 0.4in, T > 0.4in). PPTX silently clips off-slide
    content, and curved labels positioned near the left/top edge are the
    most common offenders.
  • Anonymity placeholder discipline: ALL placeholders for under-review
    work must use generic phrasing (e.g., "Withheld for anonymous review",
    "[anonymized]"). NEVER infer or fill in real titles, counts, or URLs.
    See ../shared-references/experiment-integrity.md.

Phase 4: Verification + Re-Triage

  1. Re-render PPTX → PDF (LibreOffice or user-export).
  2. Re-render PDF → PNG for visual.
  3. Re-triage: rerun Phase 0.7 prompt. Goal: 0 BLOCKERS, ≤2 NEEDS-WORK.
    If > 2 NEEDS-WORK remain, loop back to Phase 1 for those slides.
  4. Speaker-notes integrity check: assert every slide's notes_slide is
    present and unchanged from _pre_polish.pptx (a polish round must never
    touch notes content).
  5. Anonymity scan: grep the final PPTX for known sensitive strings (real
    author names absent from the original, real URLs added by the LLM, real
    submission counts). If found, fail closed and report.
  6. Final emit: <stem>_polished.pptx (and .pdf if rendered).

Phase 5: Changelog

Write POLISH_CHANGELOG.md:

Slide  1 cover  | bumped wordmark 80→86; subtitle 36→40; line spacing 0.9        | Codex per-page review
Slide  2 hook   | left body L=0.45 W=8.30; right cards 28→19pt; yellow strip 22→19 | wrap fix
Slide  3 …      | …                                                              | …

This makes every polish round auditable and reversible (each line maps to
a _polished_v{i} checkpoint).

Style Presets

Presets influence default colors and the element library only — the
reference PDF is always the visual ground truth, not the preset.

generic (default)

Black + one accent (default #2563EB). No callout-box fills beyond a single
neutral background where load-bearing.

why-rf (academic-minimalist, example preset)

Anchor: a 2025 academic talk on rectified flow with the following discipline.

ElementBeamerPPTX (1.6× hint)Notes
Frame title\fontsize{22}{26}40-44pt sans bold+ thin 0.55pt accent underline rule full-width
Body text11pt22-26ptCalibri / Helvetica Neue equivalent
Card title (chorebox)11pt bold20-26pt boldWithin chorebox callout
Section label8pt small caps16-18pt small caps wide-trackedColor = primary accent
Italic gray cue\scriptsize\itshape12-14pt italicColor = pagegray
Page number\footnotesize14-16ptBottom-right gray
Cover title44pt plain BLACK80-100pt plain BLACKTitle is not colored

Color palette (load-bearing only, sparingly):

  • Primary accent (e.g., #2E75B6)
  • Darker accent (chip backgrounds, big numbers, e.g., #1F4E79)
  • Light callout bg (e.g., #DEEBF7)
  • Honest-disclosure yellow (e.g., #FFF4CC)
  • Audit-bug red (safety disclaimers only, e.g., #C00000)
  • Page gray (e.g., #808080)
  • Text dark (e.g., #1F1F1F)

Element library (used sparingly):

  • chorebox: white bg + thin top accent rule + section-label + bold title + body
  • eqbox: light-accent full-width banner; load-bearing assumption / conclusion only
  • yellowstrip: honest-yellow + 3pt left-edge orange rule; honest disclosures only
  • redbox: light red + red border; safety disclaimers only
  • banner: light-accent full-width strip; brief banner caption

Discipline: fewer color boxes than typical "designerly" templates. Cosmetic
cards become plain bullets; marketing flourishes are removed.

neurips / icml / iclr / cvpr

Inherit color schemes from /paper-slides. Polish-loop and font-scaling rules
unchanged.

Effort Levels

See ../shared-references/effort-contract.md for the full contract.

effortBehavior
liteTriage pass + fix BLOCKERS only. Skip per-page review for NEEDS-WORK slides. ~30% of full token cost.
balanced (default)Triage + per-page review for all NEEDS-WORK and BLOCKER slides. PASS slides untouched.
maxPer-page review on every slide (including PASS). ~2.5× tokens.
beastmax + a second polish round after Phase-4 re-triage; chase remaining ≤2pt overfull / minor wraps. ~5× tokens.

reasoning_effort: xhigh is non-negotiable across all levels.

Hard Invariants

These are non-negotiable:

  1. Reference is required. The skill never polishes without an explicit visual anchor. If no reference PDF, ask the user. A style preset is not a substitute.
  2. Original is never overwritten. All edits target <stem>_polished.<ext>; the snapshot at <stem>_pre_polish.<ext> is the rollback target.
  3. Speaker notes are preserved verbatim. Every PPTX edit must preserve slide.notes_slide content. Phase 4.4 verifies this byte-for-byte against the snapshot.
  4. No content edits. No new claims, numbers, citations, URLs, author names, affiliations, or experiment results. No equation or figure-content changes. No paraphrasing of body text — only style/typography/box edits. If a Codex fix proposal would change content, the skill stops and reports it.
  5. No slide reordering, addition, or deletion unless the user passes an explicit flag (— add-slide-K-after-J, — drop-slide-K).
  6. Fresh-context independence: per-page Codex calls are fresh spawn_agent calls, not send_input. Reviewer never sees prior fix lists; base verdicts are same-family provisional.
  7. Anonymity placeholders fail closed. If a Codex fix proposes filling in a real title, count, or URL where a placeholder was, the skill rejects it and surfaces the proposal for human review. See experiment-integrity.md.
  8. Page numbers stay ≤ 16pt. Why-RF discipline; never bump them.
  9. reasoning_effort: xhigh is invariant across all effort levels.
  10. Robust shape selection: edits use unique-prefix text_frame.text matching with assert-unique semantics. If duplicate matches, abort and request disambiguation.

Review Tracing

After each per-page Codex call, save the trace following
../shared-references/review-tracing.md. Per-call file under
.aris/slides-polish/<stem>/traces/slide_KK.json with:

  • Codex agent_id
  • prompt (verbatim)
  • response (verbatim)
  • applied diff summary (list of shape edits with before/after sizes/bboxes)
  • validation status (post-fix re-render PASS/FAIL)

Both the triage pass and the per-slide passes are traced.

Prior Skill Relationship

  • Runs after /paper-slides (or any externally generated deck).
  • Compatible with /paper-poster-html workflow (same color discipline) but
    different output cadence.
  • Uses the same spawn_agent MCP infrastructure as
    /auto-paper-improvement-loop, /research-review, etc.
  • Does not call or compose with /paper-slides content phases — strict
    separation.

When NOT to Use

  • Slides are still in content drafting phase — go back to /paper-slides
    Phases 1-2.
  • Complete redesign needed (different colors / template / aspect ratio) —
    re-run /paper-slides, not polish.
  • Deck has fewer than 5 slides — per-page review overhead is not worth it;
    hand-edit.
  • The user explicitly says "no Codex" — this skill is Codex-driven by design.

Empirical Origin

This skill was extracted from a polish run on a Chinese-spoken academic
conference talk (May 2026). The convergent observation: once content
is locked, the remaining cost is per-page visual fidelity
— and per-page
Codex review with concrete python-pptx / .tex fix snippets converges in
1-2 rounds where single-pass batch review never converges. The fix-pattern
catalogs in Phases 2-3 (Beamer template gotchas, PPTX font scaling, layout
fix loop, Chinese-font hints) are the durable artifact.

Parameter Pass-Through

When invoked via /research-pipeline or another orchestrator, parameters
flow as:

  • — effort → see Effort Levels.
  • — reference → REFERENCE_VISUAL.
  • — style → STYLE_PRESET.
  • — interactive → INTERACTIVE = true.

Other args (e.g., — venue) are ignored by this skill and not propagated.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
specification-writingWrite the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.1 installspatent-pipelineFull patent drafting pipeline from invention description to jurisdiction-formatted filing documents. Supports CN (CNIPA), US (USPTO), EP (EPO). Supports invention patents and utility models. Use when user says "写专利", "patent pipeline", "专利申请", "draft patent", "写权利要求书", or wants to draft a complete patent application.1 installslean-formalizeDevelop and verify a mathematical proof in Lean, continue an incomplete Lean project, or audit whether it proves the original statement. Connect actual inputs to intermediate lemmas, assemble the target theorem, check its transitive axioms, and provide a reproducible handoff. Use when Lean is requested or a specific proof obligation benefits from formal verification; use proof-writer for ordinary mathematical drafting.1 installsfeishu-notifySend notifications to Feishu/Lark. Internal utility used by other skills, or manually via /feishu-notify. Use when user says "发飞书", "notify feishu", or other skills need to send status updates.1 installsauto-review-loop-llmAutonomous research review loop using any OpenAI-compatible LLM API. Configure via llm-chat MCP server or environment variables. Trigger with "auto review loop llm" or "llm review".0 installsinterview-cheatsheetGenerate a long-form Chinese interview-prep cheat sheet on a specific ML/LLM topic — formulas with derivations, from-scratch PyTorch code, comparison tables, and 高频面试题 (L1 必会 / L2 进阶 / L3 顶级 lab). Use when the user says '写面试 cheat sheet', '写一份 X 教程', '帮我准备 Y 面试题', '出一份 X 速查', or wants a detailed Chinese tutorial on a specific ML topic.0 installs

More from Auto Research

View source →
pixel-artGenerate pixel art SVG illustrations for READMEs, docs, or slides. Use when user says "画像素图", "pixel art", "make an SVG illustration", "README hero image", or wants a cute visual.9 installsmermaid-diagramGenerate Mermaid diagrams from user requirements. Supports flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and 18 more diagram types.4 installspaper-writingWorkflow 3: Full paper writing pipeline that goes from a narrative report to a polished, submission-ready PDF. Use when user says "写论文全流程", "write paper pipeline", "从报告到PDF", "paper writing", or wants the complete paper generation workflow.4 installspatent-reviewGet an external patent examiner review of a patent application. Use when user says "专利审查", "patent review", "审查意见", "examiner review", or wants critical feedback on patent claims and specification.2 installsexperiment-planTurn a refined research proposal or method idea into a detailed, claim-driven experiment roadmap. Use after `research-refine`, or when the user asks for a detailed experiment plan, ablation matrix, evaluation protocol, run order, compute budget, or paper-ready validation that supports the core problem, novelty, simplicity, and any LLM / VLM / Diffusion / RL-based contribution.2 installscitation-auditZero-context verification that every bibliographic entry in the paper is real, correctly attributed, and used in a context the cited paper actually supports — catching hallucinated authors, wrong years, fabricated venues, version mismatches, and wrong-context citations. Use when user says "审查引用", "check citations", "citation audit", "verify references", "引用核对", or before submission to ensure bibliography integrity.2 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.635 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.535 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.346 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.246 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.173 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs

Frequently asked questions about slides-polish

What does the slides-polish skill do?

Per-page Codex review + targeted python-pptx / Beamer fixes for academic talk slides. Use AFTER /paper-slides (or any externally generated PPTX/Beamer) when the deck looks 'mostly OK' but the user wants a final pass that aligns visual weight with a reference, bumps PPTX fonts to projector-readable size, kills italic style leaks, fixes text-frame overflow, and catches per-slide layout drift. Trigger phrases: "polish slides", "slides 排版不对", "PPTX 字体太小", "和 Beamer 比一下", "per-page review", "和 codex 一页一页过". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the slides-polish skill?

Run `npx @skills-hub-ai/cli install auto-research-skills-codex-slides-polish` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/auto-research-skills-codex-slides-polish/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does slides-polish work with?

slides-polish runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the slides-polish skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use slides-polish after installing it?

In Claude Code, type `/auto-research-skills-codex-slides-polish` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the slides-polish skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.