agentleFS
mperaltajrmperaltajr/skills/slide-qc/SKILL.md

slide-qc

Skill1 starsChanged 42 days agoMITView on GitHub

QC reviewer for built PPTX decks. Runs a deterministic hygiene pre-pass (lorem ipsum, hidden slides, comments, speaker-note junk, filename smell), then renders every slide to PNG silently (PowerPoint on Windows, opened read-only without a window, never closing the user's decks; LibreOffice headless on a Mac or as the backup), reads each PNG zone-by-zone with vision, and produces a unified Critical / Major / Advisory report. Override-with-reason flow for Majors; Criticals are hard stops. Invoke after a build completes.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After any slide-builder pipeline run completes (specifically after compile_picks.py produces the deck, named after the topic.

    line 23
  2. Very specific:

    When the user says "qc this", "check the deck", "review the slides", or /slide-qc

    line 24
  3. Distinctive:

    When the user has a PPTX and wants to know if it's safe to present

    line 25
  4. Distinctive:

    If the script errors out (file not found, malformed PPTX), do not continue to Step 3 — report the error and ask the user to confirm the …

    line 98
  5. Very specific:

    Run the silent renderer. Replace <SKILL_DIR> with the absolute path to this skill's scripts/ folder.

    line 104
  6. Distinctive:

    Do not continue to Step 4 until the export succeeds and all PNG files exist.

    line 127
  7. Distinctive:

    Use the Read tool to load each PNG file.

    line 137
  8. Distinctive:

    Use this exact shape:

    line 222
  9. Distinctive:

    Do not send the report to the user and wait when it has automatic findings: go to Step 7 and fix them first (at most two rounds).

    line 245
  10. Distinctive:

    Put every content Major in the one table, each with a concrete fix, and ask once.

    line 264
  11. Very specific:

    When a reason is given, record it alongside the QC report in _session/_qc/qc-flags-YYYY-MM-DD.md.

    line 270
  12. Very specific:

    Keep the current design of every slide to be fixed: py -3 <skills>\slide-builder\scripts\apply_qc_fix.py --out <build_dir> --slides N[,M] …

    line 299
  13. Distinctive:

    Single conflict exception to the batch rule: if two fixes touch the same shape with incompatible changes, flag it to the user and ask which …

    line 320
  14. Distinctive:

    Report what you see, not what you expect: If the mockup says there should be a chart and you see a white box, that is a Critical regardless …

    line 334

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Slide QC

Updates first (once a day). If this skill was started directly, not through slide-lab, run py -3 <skills folder>/slide-builder/scripts/update.py check before anything else and follow slide-lab SKILL.md's "Start of every Slide Lab session: updates" steps (UP TO DATE or SKIPPED: say nothing; UPDATE AVAILABLE: tell the user in plain words and ask before installing; during a build, offer it after the deck is done). It changes no files on its own.

You are the QC reviewer. You look at every slide. You report what is wrong. The user does not open the PPTX until you give them the all-clear.

Windows vs macOS/Linux. Commands here use py -3 (Windows). On macOS/Linux, run them with python3 instead. PowerPoint draws the slides on Windows when it is installed (the default there); on a Mac, LibreOffice does (found automatically: macOS /Applications/LibreOffice.app, Linux via PATH).

MANDATORY — the two rules that bind every QC run. Past QC failures cost user trust; these are the guardrail:

  1. Render the real PPTX, never an approximation. This skill renders the actual deck — through PowerPoint itself on Windows (the default since 2026-10-09), LibreOffice headless on a Mac. Never substitute an HTML preview or python-pptx text inspection — those are approximations.
  2. Per-zone inspection — rendering is not QC, reading is QC. Glancing at a thumbnail and saying "looks fine" is what broke trust. For every slide PNG, walk through every zone (title, sub-headline, every text block, every numeral, every chart label/annotation, footer/source, page number). Read the words. Check size, color, alignment, overlap, clipping, legibility. If you cannot truthfully say "I read every zone on every slide" — the QC is not done.

When to invoke

  • After any slide-builder pipeline run completes (specifically after compile_picks.py produces the deck, named after the topic; older builds named it final_deck.pptx)
  • When the user says "qc this", "check the deck", "review the slides", or /slide-qc
  • When the user has a PPTX and wants to know if it's safe to present

This is the definition of "done" for any deck. A PPTX is not finished — and you may not tell the user it is QC'd, reviewed, or ready — until this skill has run and produced its report.

Record the pass so "done" is a fact, not a claim. When the deck came from a Slide Lab build (there is a _state.json in its build dir), every QC round is planned and recorded by script (owner's definition of done, 2026-10-09):

py -3 <skills>\slide-builder\scripts\qc_pages.py plan --out <build_dir>
# a fresh reader agent (Step 4) opens every picture it lists, fills in
# <build_dir>\_qc\page_notes.json, then runs:
py -3 <skills>\slide-builder\scripts\record_vision_qc.py --out <build_dir>

plan compares each page's image in the current render (<build_dir>\_qc, which compile already drew) with the image that page had when it was last reviewed, and lists the pages to read: the ones whose image changed, or every page when there is no earlier page review, the page count changed, the renderer or dpi changed, or the template changed. You do not choose the pages; the script does. It writes each page to read as _qc\to_read\page_NN.png with a check code in a yellow band under the page, plus the deck-wide look: thumbnail sheets of the whole deck (sheet_NN.png) and each changed page beside an unchanged page of the same layout (pair_NN.png), each with its own code. In page_notes.json, for each page: the code from under that page, a short quote (3+ words) of that page's own title or body as you read it on the picture (a page whose text is all in pictures gets a description in seen instead), and every finding still open on it ({"severity": "Critical|Major|Advisory", "category": "<key>", "issue": "..."}; a Major the user chose to keep also gets "user_reason": "<their words>"). Under deck_look: every sheet and pair code, and the cross-page findings (Step 5c) with their pages. record_vision_qc.py refuses (and records nothing) unless every page of the round has the right code and a quote found on that slide, every sheet and pair code is right, and any --slides-reviewed is no more than the notes prove; finding counts are no longer typed. It runs the whole-file hygiene and type-scale check itself. Unchanged pages keep their earlier review and their open findings; to clear a carried finding, plan with --also N and read page N again. Every Critical and Major must be fixed; only Advisory may remain. check_done.py refuses to call the deck deliverable unless every page's reviewed image is that page's image in the current render of this exact deck, a deck-wide look was recorded for this exact deck, and no Critical or Major is open on any page. A finding that turns out to be wrong is not open: leave it out of the notes. Fix defects by rebuilding the slide through the pipeline and recompiling; "re-QC" after a fix means a new round (plan again: it lists the pages whose image changed, which catches a fix that moved something on another page). Do not record a pass you did not perform. What the record proves, honestly: a right code shows the page's picture was opened (codes are new every round and are only in the pictures), and the quote shows the note is about that page. Neither proves the page was inspected zone by zone; that is still on you (Step 5a). Pages with no readable text are proved by the code only.

If a page was replicated from one the user supplied, the build dir holds a source_ledger.json with one section per copied slide (pages.slide_NN), each with an unreachable list: surfaces whose text cannot be read from the file at all (numerals baked into a picture, SmartArt, an embedded think-cell or Excel object). Those were checked by nobody. You are the only gate that can see them, because you are reading a rendered image rather than the XML. Read every numeral on those surfaces specifically and compare them against the brief's figures; report any mismatch as a Critical. Say in your report how many unreadable surfaces you covered. When the supplied page was a PDF with a text layer, source_kind is "pdf_text": its figures that came through onto the slide were rows the user answered, and only the pictures on the page are in unreachable (read those). When it was a scanned PDF or a picture, source_ledger.json has source_kind: "visual" and the whole page is one unreachable entry: nothing on it was machine-checked, so read every figure on that slide and compare it with the brief (a mismatch is Critical); delivery tells the user the page was checked by eye only. A PDF that the building agent rendered and looked at is not QC: the agent that built the deck cannot grade its own output, and self-review is exactly what has missed tiny fonts and whitespace before. No slide-qc run, no "QC'd." This holds even when the deck was built outside the normal pipeline.


Step 1 — Locate files

Identify two things:

  1. PPTX path — the built deck. When it was passed to you (slide-builder passes it), use it; don't ask. If it is ambiguous, ask the user for the full Windows path.
  2. Design reference — for a Slide Lab build, each picked option's design is in its build folder: slide_NN/option_<pick>.sketch.png (the worker's sketch) for sketch-path slides, and FINAL-CHECK.html shows every pick as the user approved it. Use them for the "does it match what was approved" check. If neither exists (a deck built elsewhere), proceed without; you can still catch structural issues.

Step 2 — Programmatic hygiene pre-pass

Run the hygiene script first — it catches issues that don't need vision and resolves deterministically. Doing this BEFORE rendering means the visual pass focuses on what only eyes can catch, and trivially-fixable issues (lorem ipsum residue, hidden slides, comments left in) surface immediately without waiting for a render.

py -3 <SKILL_DIR>/scripts/check_pptx_hygiene.py "<pptx_path>"

The script emits a JSON document to stdout with this shape:

{
  "pptx": "<absolute path>",
  "slides": <int>,
  "violations": [
    {"slide": <int or null>, "severity": "Critical|Major|Advisory", "category": "<tag>", "issue": "<one-line>"},
    ...
  ]
}

On a Slide Lab build, record_vision_qc.py runs this same check itself every round and records it; its Critical and Major findings block done (see Hard rules). Parse this and hold the violations in memory. They will be merged with the visual-pass findings into a single unified Critical / Major / Advisory table at Step 5.

What this script catches (deterministic, no vision needed):

  • Lorem ipsum / placeholder residue ([Insert ...], "Subtitle goes here", TODO/FIXME/XXX) → Critical
  • Placeholder prompts ([add footnote here or delete], [add source here or delete]) → Major. Designers no longer write them, so one on a finished slide is a leak.
  • The template's own sample text (category template-sample-text): a whole line in angle brackets (<Customize with ...>) or a "Click to add" / "Click to edit" line on a slide → Critical. A layout footer cloned with its sample line once shipped on every slide and only a human eye caught it (2026-10-08); finalize now clears such lines, so one here is a leak. A < inside a sentence ("fell <5%") is not flagged.
  • Buzzwords and competitor names from slide-builder/reference/banned-words.md → Major, one finding per slide listing the words.
  • Text size (body under 10.5pt, more than 3 body sizes, exceptions under 9pt) → Major, one finding per problem per slide; body at 10.5 to 11pt (below the 12pt default) → Advisory. Slide Lab's own 9pt "Option B" label on an all-options deck (shape chrome-option-badge) is skipped, not counted; any other shape is checked, whatever its name.
  • A line that repeats the title (category repeats-title): the takeaway under the title or a bottom takeaway / so-what band where half or more of its content words are already in the title → Major, marked "content": true, "auto_fix": false. It is a wording choice: show it to the user with the suggestion (state the number or consequence the title does not, or leave the line out); never fix it automatically. A two-line title with a takeaway under it AND a filled bottom band (category title-load) → Advisory recommendation (a one-line title, or no takeaway under a two-line title). The owner's rule (2026-10-08): a two-line title is allowed, each line must add something the others do not say. Both come from slide-builder/scripts/title_load.py.
  • The chart and punctuation rules (owner's rules, 2026-10-09; slide-builder/scripts/chart_rules.py), all layout Majors fixed automatically ("auto_fix": true): a text item ending with a final period (category final_period, one finding per slide with the count; periods between sentences, ellipses, abbreviations such as "Inc." or "U.S." and list numbers such as "3." are fine); a chart without its header line "Chart title, Unit" at its top left, or with a value axis and no unit, or with the unit written in brackets or parentheses ("Title, [M GPUs]", "Title (M GPUs)": "unit written in brackets; write it plainly after a comma", corrected 2026-10-13) (category chart_header); a legend that is not one row at the chart's top right (category legend_position). Drawn charts are found by shape name (chart-... pieces, header chart-title, legend chart-legend-...); a deck whose chart pieces are not named that way gets no chart finding here, so the vision pass must look (Step 5b). Native PowerPoint charts are read from the chart object (legend position must be top or top right). Finalize already removes final periods on Slide Lab builds, so one here usually means an external deck or a later hand edit.
  • Line spacing tighter than the font needs (category line-spacing, slide-builder/scripts/type_scale.py, 2026-10-14; finalize runs the same check on every design): "exactly N pt" line spacing so tight that the letters of one line meet the next (a wrapped line, a line break, or the next paragraph with its space before and after) → Major, fixed automatically as an overlap; the first line of a top-anchored box set so high that its capitals reach above the box, which shows only when the box is selected → Advisory. The converter's one-line boxes (spacing 0.8 x the size, with a top inset since 2026-10-13) pass both; a hit usually means a direct-path script, an older conversion or a hand edit.
  • A page number typed as plain text (category page_number_field, Major, fixed automatically, "auto_fix": true): a slide-number placeholder, or a shape named like a page number, holding a bare number with no slide-number field (<a:fld type="slidenum">). Owner's rule (2026-10-12): page numbers are never hardcoded; a typed "5" stays "5" when slides are moved, added or deleted. Fix: recompile (Slide Lab builds since 2026-10-12 write fields).
  • Icons (owner's rules, 2026-10-21; icons are found by the alt text Icon: <name> or the shape name icon-<name> that slide-builder gives them): an icon inside a chart (category icon_in_chart, Major, fixed automatically: remove it or move it out and label the point in words); and Advisory notes (category icon_use, never fixed automatically): more than 6 icons on a page, icons on more than a third of the pages, one icon on 3 or more pages. The vision pass also reports an icon in a headline, or an icon and a number on the same item, as an Advisory note (category icon_use).
  • Hidden slides leaking into the file → Major
  • Comments left attached to slides → Major
  • Speaker notes containing scratch content (TODO / asdf / WIP / etc.) → Major
  • File name patterns that signal workspace dumps (Final_final_v3.pptx, Copy of ..., deck (3).pptx) → Major

What this script intentionally does NOT catch (left to the visual pass at Step 5 because they require resolved rendering):

  • Missing footer or page number — master / layout inheritance is not visible at slide level
  • Overflow, overlap, clipping — visual only
  • Font size drift across same-slide type slides — visual only
  • Color contrast — visual only

If the script errors out (file not found, malformed PPTX), do not continue to Step 3 — report the error and ask the user to confirm the PPTX path.


Step 3 — Export slides to PNG

Run the silent renderer. Replace <SKILL_DIR> with the absolute path to this skill's scripts/ folder.

py -3 <SKILL_DIR>/scripts/render_slides.py "<pptx_path>" "<build_dir>/_qc/"

For a Slide Lab build this usually draws nothing. compile_picks.py already rendered the deck once at 150 dpi into <build_dir>/_qc/ with render_manifest.json (the deck's digest, the program, the dpi, each page's image hash). When that folder holds a render of these exact deck bytes by the same program at the same dpi, render_slides.py reuses it and says so ("Reused ..."); otherwise it draws again and rewrites the manifest. --fresh always draws again. Use the build's _qc folder: the page plan (qc_pages.py) and check_done.py read the manifest there. For a deck Slide Lab did not build, use <session_folder>/_qc/ as before.

Pictures drawn anywhere else cannot be recorded. For a Slide Lab build, never render into _session\_qc or another folder and read those: a review of them can't be matched to the deck, record_vision_qc.py has nothing to check it against, and check_done.py refuses (one session read 30 such pictures in about 80 seconds and none of it counted, 2026-10-13). Read only what qc_pages.py plan --out <build_dir> writes to <build_dir>/_qc/to_read/. If record_vision_qc.py refuses, follow the steps in the last lines it prints: they are always current, even when this text in your session is an older copy.

Before you run it, tell the user in one plain line: "PowerPoint may pause for a few seconds while Slide Lab renders slides; editing in PowerPoint during that time slows the build." (Windows with PowerPoint; the script prints the same line once.)

Which program draws the slides. On Windows with PowerPoint installed, PowerPoint does (owner's decision, 2026-10-09): what you review is what the recipient's PowerPoint shows, including its fonts and its text layout. It goes through scripts/ppt_safe.py: the deck is opened read-only without a window, only that deck is closed, and PowerPoint is quit only if this run started it and nothing else is open in it (the user may open PowerPoint while it runs). It never closes, saves or touches another presentation, and renders run one at a time. Never kill POWERPNT.EXE, never use Stop-Process; the user's open decks are not yours to close. On a Mac (or Windows without PowerPoint) LibreOffice headless draws them, in its own process. Output lands in the _qc folder as slide_01.png, slide_02.png, etc. (hidden slides included, so slide_NN is always slide NN).

Always the same _qc folder. A re-run replaces the previous images there. Never create _qc2, _qc3, _qc_editable, … for a new round: each copy is another full set of slide images (one session piled up six of them, about 110 MB), and nothing reads the old ones.

  • Both are real renderers of the actual PPTX (same XML, same master inheritance, same layout resolution), not an HTML approximation.
  • LibreOffice's font gap: a font it does not have (a proprietary brand typeface) is replaced by a similar sans-serif with close but not identical letter widths, which can mask 2-3 character title overflows. PowerPoint uses the installed fonts, so on Windows this gap is gone.
  • --engine libre starts with LibreOffice and --engine ppt with PowerPoint (slide-builder/settings.json renderer sets the default; SLIDE_LAB_RENDERER for one run). If one fails twice, the other takes over when it is installed. scripts/export_slides.py renders through PowerPoint the same safe way.

Rendering rules

  • DPI 150 (≈ 2000px wide; --width 1920 gives 1920px) is the minimum. Do not lower — at 1280px small text (footnotes, chart annotations, numerals) is unreadable and small-text bugs slip past QC.
  • Without PowerPoint AND LibreOffice, tell the user how to install LibreOffice. Never substitute python-pptx text inspection or HTML preview: those ARE approximations and the rule against them stands.
  • Do not continue to Step 4 until the export succeeds and all PNG files exist.

Step 4 — Read every slide PNG

For a Slide Lab build, first run qc_pages.py plan --out <build_dir> (see the box at the top). It says which pages this round must read and writes them to <build_dir>/_qc/to_read/page_NN.png; read those pictures (not the plain slide_NN.png, which carry no check code), then every sheet_NN.png and pair_NN.png for the deck-wide look. Pages it does not list kept the same image since they were reviewed; their review and open findings carry forward. Fill in page_notes.json as you read each page.

The reading is done by a fresh reader agent, not the main chat (owner's decision 2026-10-14: reading 30-60 pages in the main chat cost about 17M tokens a round, a reader agent about 3-6M). plan also writes <build_dir>/_qc/reader_brief.md (from slide-qc/READER_BRIEF.md, filled for this round) and prints the hand-off. Dispatch ONE general-purpose agent with the prompt "Read <build_dir>\_qc\reader_brief.md and do exactly what it says." and nothing else; the brief already carries what the reader must apply: every page's approved headline (never reworded; only a title that differs from it is flagged), no person attribution (no named quote such as "In the CEO's words" unless the brief has it word for word), the type rules, and the deck's rulings file (<session>\_session\rulings.md, the user's own decisions word for word) when there is one, so the reader does not flag settled items. The reader reads every page alone, zone by zone (Steps 5a to 5c), fills page_notes.json, runs record_vision_qc.py itself (the proof is unchanged: a code and a quote per page) and hands back only the open Critical and Major findings, one line each (slide N [category] Severity: finding; fix), under 40 lines. Do not read the pages in the main chat as well. The main chat keeps the rest: the report to the user (Step 6), the fixes (Step 7), the user's approvals, the next round and check_done.py. If the reader says record_vision_qc did not record, dispatch it again with the printed reason; a round is done only when the record says so. A rule the user adds mid-build belongs in the rulings file (so the next reader gets it), not only in chat.

Use the Read tool to load each PNG file. Read them all before writing your report — do not report slide by slide as you go; review everything first so you can catch cross-slide consistency issues.

Also look at the design reference from Step 1 (FINAL-CHECK.html, or each pick's option_<pick>.sketch.png) if it exists — you need to know what was intended for each slide to judge whether content is missing.


Step 5 — QC each slide (visual pass)

For every slide, run the Per-zone inspection first (mandatory), then the categorical checks below. The hygiene pre-pass already covered the deterministic findings; this pass catches what only vision can.

5a — Per-zone inspection (MANDATORY, run on every slide)

This is the hard gate. For each slide PNG, walk through every zone and read what is there. Glancing at a thumbnail and saying "looks fine" is what broke trust historically.

For each slide, write a brief quote-back of what you actually saw at each zone. If a zone is absent on a layout (e.g. no chart on a cover slide), mark it "n/a." If you cannot quote what you saw, you did not read it — the QC is not done for that slide.

Example shape of the inspection notes (kept internal — only violations surface in the final report):

SLIDE 5 — PER-ZONE INSPECTION
- Action title: "Three patterns explain 80% of the drift" — 32pt, dark gray, top-left, no overlap. OK.
- Sub-headline: "And none are policy violations" — 18pt, gray, aligned with title. OK.
- Numerals: hero stat "80%" visible, full digits, 80pt orange, no clipping. OK.
- Body text block: 4 bullets, ~16pt, line spacing tight but legible. OK.
- Chart: bar chart, axis "% of drift" labeled, 3 bars labeled "Pattern A/B/C," value labels present. OK.
- Annotation: "Source: Q1 FY26 survey, n=1,200" — 8pt italic gray, bottom-left of chart, legible. OK.
- Icons: none on this slide. n/a.
- Footer row: "Client · 2026 · Confidential" — 9pt, bottom-center, present. Page "5" bottom-right. OK.
- Overall composition: balanced, single focal point on hero stat. OK.

The quote-back is the auditable record that the inspection actually happened. If a zone has a defect, write the defect alongside the quote and the slide enters the violations list at the appropriate severity.

5b — Categorical visual checks

For each slide, in addition to the per-zone walkthrough, evaluate these categories. Subjective categories (whitespace, hierarchy, composition) are capped at Major severity — they can be wrong because they're judgment calls. Programmatic-style failures (overflow, clipping, blank charts where data should be) can be Critical.

CategorySeverityWhat to flag
Placeholder prompt left on a slideMajorThe strings [add footnote here or delete] and [add source here or delete]. Designers are told never to write them, so one on a finished slide is a leak the audience would see: put the real source or footnote in, or remove the line. Other bracketed text ([Kickoff activities - fill from ...], [your_company], etc.) stays Critical.
Overflow / clippingCritical if text/data clipped; Major if shape bleeds past boundary without losing contentText or shapes bleeding past the slide boundary; clipped numerals or descenders; chart axis labels cut off
Blank chart / broken visualCriticalA blank white rectangle where the mockup had a chart; missing image placeholder; broken icon
Unreadable overlapCriticalText obscured by another element so it cannot be read
Background contrastCriticalWhite text on white background; same-color-on-same-color violations that hide content
Action title contentMajorTitle missing on a non-cover slide; title is a topic label not an action title (refer to storyline brief if available)
Text sizeMajorBody text under 10.5pt, more than 3 body text sizes on a slide, or a source, footnote or chart label under 9pt (text in the template's Source or Foot Note slot counts as a source; the hygiene script runs slide-builder/scripts/type_scale.py). The fix is fewer words or split content, never smaller text; the user may give a reason to keep one. Body text at 10.5 to 11pt (below the 12pt default) is an Advisory note
Font size drift across same slide typeMajorSlide N title is materially different size from slide M title where both are the same slide type
Missing footer / page numberMajorNo footer or page number on a non-cover slide (the visual pass catches this because rendered output resolves master inheritance)
Chart axis missing unitMajorY-axis labeled "Value" / "Amount" with no unit — is it $M, count, percent?
Chart header line missingMajorEvery chart has one line at its top left: "Chart title, Unit" (e.g. "Who owns the GPUs that retire, M GPUs"), the title bold, the comma and the unit not bold, the unit written plainly after the comma, an optional superscript footnote mark after the title. Flag a chart with no such line, with a value axis and no unit in the line or the axis title, or with the unit in square brackets or parentheses ("Title, [M GPUs]", "Title (M GPUs)") (owner's rule, 2026-10-09, corrected 2026-10-13: no brackets; category chart_header, fixed automatically)
Legend not one row at the chart's top rightMajorThe legend belongs at the far right of the chart's header line, one row, right-aligned to the chart's right edge. Flag a legend under the chart, stacked at the side, under the takeaway, or at the top left; a one-series chart with a legend is Advisory (owner's rule, 2026-10-09; category legend_position, fixed automatically)
Final period on a text itemMajorA title, takeaway, label, bullet, panel text, callout, table cell, chart label, footnote or source that ends with a period. Periods between sentences stay; ellipses, abbreviations and list numbers are fine (owner's rule, 2026-10-09; category final_period, fixed automatically)
Mixed icon styles within deckMajorFlat icons on some slides, outline on others, emoji elsewhere
Buzzwords and hedgingMajorAny word on slide-builder/reference/banned-words.md (robust, seamless, leverage, synergies, best-in-class, transformational, unlock value, holistic and the rest; the hygiene script flags them) and hedges like "could potentially". The fix is the number or named fact the word stands for. A competitor firm's name (McKinsey, BCG, Bain, MBB) on a slide is Major too.
Bullets not parallelMajorOne slide's bullets mix sentence structures (some verb phrases, some noun phrases, some full sentences)
Chart Y-axis truncationMajorY-axis starts above zero in a way that exaggerates differences without disclosure
Chart aspect ratio dishonestyMajorSquashed or stretched axes that distort the visual message
Arrow runs into a boxMajorAn arrowhead that touches or enters a box it points at (cycle and flow diagrams). The build checks this before review (MAJOR_ARROW_END_AT_BOX, slide-builder/scripts/arrow_ends.py), but only for arrows it can locate; read every arrow end
Panel that vanishes into the backgroundMajorA panel or card whose fill is so close to the slide's background (often a light gray-blue master, not white) that its edge cannot be seen and its content floats
Source line missing where mockup expected oneMajorMockup had a data-role="source" element; PPTX shows no source
Curly vs straight quotation marksAdvisoryStraight quotes used instead of curly — small but flagged
Stock photo with no informational valueAdvisoryGeneric businesspeople photo that adds nothing
Whitespace / hierarchy / compositionAdvisorySubjective: page feels cluttered, hierarchy unclear, whitespace uneven
Bold used everywhereAdvisoryBold should be sparing emphasis; if half the slide is bold, it has no emphasis

5c — Cross-slide consistency (run once for the deck)

After all per-slide checks, scan for consistency issues that only appear when comparing slides. On a Slide Lab build do it on the plan's thumbnail sheets (the whole deck, changed pages marked) and pairs (each changed page beside an unchanged page of the same layout), every round, even when only one page changed: a change on one page can break consistency with pages that did not change. Write the findings under deck_look in page_notes.json with their pages.

CheckSeverityWhat to flag
Typography drift across deckMajorTitle sizes vary across slides of the same slide type; body text sizes drift
Footer driftMajorSame confidentiality / client name should appear on all non-cover slides; if it changes, flag
Color palette driftMajorA slide uses an off-brand color without semantic reason
Chrome drift for same slide typeMajorTitle, takeaway or footer sit in different positions on two slides of the same type. Different body layouts are not drift: the build deliberately varies them (no three slides in a row share a layout).
Takeaway, footnotes or source line out of placeMajorThe owner's chrome rule (2026-10-08): on every content slide the takeaway sits directly under the title at the title's text left edge, in one size (the template's Subtitle-slot size, else 16 pt), regular weight, the template's main text color; the source line sits at the template's source position at the same left edge in 9 pt; footnotes sit directly above the source line, stacked, same edge, 9 pt. Slide Lab places them itself at finalize, so any slide where one differs (another size, x, height, bold, a footnote mid-page, a centered source) is a defect: flag it on that slide. Covers and section dividers are exempt.

Cross-slide findings get tagged to the slide(s) where they appear in the final table — not as a separate "cross-deck" section.


Step 6 — Write the report

Merge the hygiene-pass violations (from Step 2) with the visual-pass violations (from Step 5) into one unified table. Output as markdown — the chat renders the table.

Use this exact shape:

[deck-filename].pptx · [N] slides QC'd · [X] Critical, [Y] Major, [Z] Advisory

| Page | Severity | Category | Issue | Fix |
|------|----------|----------|-------|-----|
| Slide [N] | **Critical** / **Major** / Advisory | [key] | [one-line description] | automatic / asked: [proposed fix] |
| [...] | [...] | [...] | [...] | [...] |

Sort the rows: page number ascending; if a single page has multiple issues, Critical → Major → Advisory within the page.

Category and Fix come from one place: slide-builder/scripts/qc_fix_policy.py (py -3 <skills>\slide-builder\scripts\qc_fix_policy.py --list prints it; classify "<findings>" checks a list). Tag every Critical and Major with its category key. The owner's decision (2026-10-09):

  • Fixed automatically, without asking: every Critical and every Major in the layout/format group: text_size (under the size floor, more than 3 body sizes), overflow (overflow, clipping), overlap, arrow_into_box, panel_vanishes (a panel vanishing on the background), chrome (chrome drift, a misplaced takeaway, footnote or source line), sample_text (template sample text, placeholder prompts), footer_page_number, page_number_field (a page number typed as text, not a slide-number field), axis_unit, palette (color palette drift), final_period (a text item ending with a period), chart_header (a chart without its "Chart title, Unit" line or unit, or with the unit in brackets), legend_position (a legend not one row at the chart's top right), icon_in_chart (an icon inside a chart).
  • Asked, in ONE table with proposed fixes and one reply: findings in the content group, whatever their severity (a Critical content finding is asked too): number_not_in_brief (a number or label not in the brief), buzzwords (buzzwords, hedging), headline (not a fact, or a topic label), repeats_title (a takeaway or band that repeats the title), title_load (a long title with a takeaway and a band), bullets_parallel, missing_source (a source expected and missing), rewrite (anything that rewrites the user's words or numbers). A finding that fits no key is asked.
  • Tags the checks write map onto these keys (lowercase, - and spaces read as _): text-size / text size = text_size, template-sample-text, placeholder-prompt and placeholder-residue = sample_text, buzzword = buzzwords, repeats-title = repeats_title, title-load = title_load, line-spacing = overlap. Keep this list in step with ALIASES in qc_fix_policy.py.
  • How to write a finding for apply_qc_fix.py --auto: slide N [key] Severity: finding, one per slide and key. The severity counts only in its place right after the tag (the word "critical" in the text means nothing); a finding with no tag or a tag that is not a key is never fixed automatically; a layout tag on text that reads like content (a number, a headline label, a rewrite) is asked. Findings are split only where ; or a new line is followed by slide N, so fix detail after a ; stays with its finding (it is read too: "reword the headline" in it makes the finding a question).
  • Advisory: never fixed automatically. List each as a row with a concrete proposed fix; when the fix changes words (a headline, label, footnote or tagline), put the exact new words in the row (old -> new). For an approved headline that wraps badly, propose a layout fix first; if only rewording fixes it, give the shortest rewording that keeps the claim and every number. A plain reply over the list ("fix those", "fix them", "fix it all", "yes, fix") approves every row as proposed, wording and approved headlines included: apply them all in one pass and do not ask again. Leave out only the rows the user names. A note that is not a defect (text at exactly 10.5pt, which the rules allow) is said in one line, not listed as needing a call. (Owner, 2026-10-27: "People ask you to fix stuff because it's broken. Fix it.")
  • Small new problems the fixes cause (a gap that opens on page 3 after a box is shortened, a panel that now runs into the source line) are fixed in the same pass, inside the existing two-round cap (Step 7), and are NOT reported back for approval: the user's "fix those" covers them. Show them in the after-report as old -> new like the rest. A finding the fixes did not cause goes in a new list, with its proposed fix, for one more "fix those".
  • A headline change, approved this way, goes through the tools so the brief, storyline and design agree: replace_phrase.py --find "<old>" --replace "<new>" --apply, then seal_brief.py to re-seal the brief, add_ruling.py with the user's words ("fix those") as the quote and the new headline in --reading, then apply_qc_fix.py --slides N --approved "<their words>". Show old -> new per page in the same reply, ending "say undo page N to get the old wording back". An "undo page N" runs the same four steps with old and new swapped. Never edit only the HTML (the brief and storyline keep the old headline, the headline check flags it, and the next rebuild puts it back).

Do not send the report to the user and wait when it has automatic findings: go to Step 7 and fix them first (at most two rounds). The user gets ONE message after that:

[deck-filename].pptx: [K] issue(s) fixed automatically, [M] need your call.

Fixed automatically (no action needed; say "undo slide N" to get a slide's earlier design back):
- Slide 3: text cut off at the bottom (Critical) -> body shortened to fit.
  Before: <path to the picture before>   After: <path to the picture after>
- [...]

Need your call (one reply covers them all):
| # | Slide | Issue | Proposed fix |
|---|-------|-------|--------------|
| 1 | 5 | "42%" is not in the brief | use the brief's 38% |

Reply **fix** to apply all of them, name the ones to keep as they are and why, or give your own fix.
[Still open after two automatic rounds: list them, with what was tried.]

Put every content Major in the one table, each with a concrete fix, and ask once. Do not walk the user through them one message at a time.

Override path for Major issues: A user can ship a Major as-is, but only by writing a reason in their own words (no shortcut keyword). If the reply doesn't include a reason ("skip," "override," "ignore" alone), ask once:

I need either a fix or your reason for shipping with the issue. What's the reason?

When a reason is given, record it alongside the QC report in _session/_qc/qc-flags-YYYY-MM-DD.md. Format per entry:

  • Slide: [N]
  • Issue: [what the QC flagged]
  • User reason: [their words, verbatim]
  • What the audience might see: [the concrete consequence — derive in one sentence]

If no Criticals and no Majors (only Advisory or clean):

✓ No Critical or Major issues. Deck is shippable.

[If advisories exist:] [N] small notes, none blocking:

| # | Slide | Note | Proposed fix (old -> new for wording) |
|---|-------|------|---------------------------------------|
| 1 | 8 | headline wraps onto a third line | box 0.4 in wider; if that is not enough: "Old headline words" -> "Shorter words, same claim and numbers" |

Reply **fix those** to apply all of them as written, or name the ones to leave.
[If clean:] All clear.

Step 7 — Batch the fixes

Batch every fix into a single rebuild pass, for the automatic fixes and, after the user's reply, for the approved ones. Never fix one issue at a time and re-render — that's the failure mode that multiplies build time 5–6× on a 10-slide deck.

Automatic fixes (no approval asked; owner's decision, 2026-10-09). For the Criticals and layout/format Majors (Step 6, qc_fix_policy.py says "auto"):

  1. Keep the current design of every slide to be fixed: py -3 <skills>\slide-builder\scripts\apply_qc_fix.py --out <build_dir> --slides N[,M] --snapshot (the deck too; this is what "undo slide N" restores, kept until delivery).
  2. Rebuild only those slides, one design each, keeping every other pick and anything the translator agent drew: build_deck.py --slide N with the finding and the fix in slide_NN/_prior_feedback.md, one worker, its sketch render (on a slide that keeps several options, re-dispatch the worker on the flagged option in place instead).
  3. py -3 <skills>\slide-builder\scripts\apply_qc_fix.py --out <build_dir> --slides N[,M] --auto "slide N [category] Severity: finding; ...". It refuses a content finding, a slide with no snapshot, and a third automatic round; it records each fix with its finding text as fixed automatically (not as the user's approval), compiles, and prints the before/after picture paths. Exit 3: run the translator agent in FALLBACK MODE, then the same command again.
  4. Re-QC the full deck. At most TWO automatic rounds; then stop, whatever is left.
  5. Send the ONE message of Step 6: what was fixed per slide with before/after pictures, the content findings table, anything still open. "Undo slide N" from the user: apply_qc_fix.py --out <build_dir> --undo N --approved "<their words>" restores that slide's earlier design and compiles again. check_done.py lists every automatic fix at delivery.

Fixes the user approved (the content table, or anything after the automatic rounds):

  1. Compile the list of all approved fixes across all slides.
  2. Fix them through the pipeline, not by patching the compiled deck: rebuild each slide with the finding as direction (build_deck.py --slide N, write the finding and the fix into slide_NN/_prior_feedback.md, one worker, render its sketch), then compile straight from the user's approval: py -3 <skills>\slide-builder\scripts\apply_qc_fix.py --out <build_dir> --slides N[,M] --approved "<the user's words>". The user's "fix it" / "build it" is the approval: do not send them back to REVIEW.html or FINAL-CHECK.html (owner's decision, 2026-10-02). The command keeps every other pick, converts and finalizes the fixed slides, records the user's words in the build record, and compiles. If it exits 3, part of the new design needs the translator agent: run it in FALLBACK MODE, then the same command again (a slide the agent finished is not converted again, so its drawing is kept). Use the pages only if the user asks to see options, or a fix needs several options to choose from. Patching the compiled file with python-pptx is what broke the 09/29 deck four separate ways (a badge on every page number, deleted lead text, shifted labels, a file PowerPoint refused), and a later compile silently overwrites patches anyway. check_done.py refuses a deck whose bytes changed after compile. The one exception is a deck Slide Lab did not build (option 6a); there, patch text runs only, then re-QC. Parent direct edit (owner's decision, 2026-10-09): when the approved fix is only a color, a font size, or wording the user gave word for word, the main session edits the picked design itself, no worker and no build_deck.py --slide N: option_X.py on a direct-path page, option_X.html on a sketch page (since 2026-10-13; it is converted again, keeping what the translator agent drew when nothing it draws changed); brand color names from _context.md, never a raw hex; any new number or claim goes back to the user; a layout change still goes to a worker. Then apply_qc_fix.py --out <build_dir> --slides N --approved "<the user's words>" --edited-by-parent "<what changed>". Look at each new picture it prints and confirm the change shows as asked and the colors can be told apart. check_done.py lists it at delivery as "edited by parent".
  3. Re-render to PNG.
  4. Re-QC the full deck (hygiene pre-pass + visual pass).
  5. Produce a new report. Repeat until clean or until the user accepts remaining items via override-with-reason.

Fixable programmatically (one pass, no rebuild): lorem ipsum removal, page-number insertion, footer text fixes, font size adjustments, quotation mark normalization, weasel-word removal at user's direction.

Fixable by re-running for specific slides: blank chart rectangles, missing content from the mockup, font/color regressions from a buggy build.

Not fixable without user input: wrong source data, content the user needs to supply, governing-thought changes (those go back to storyline-helper).

Single conflict exception to the batch rule: if two fixes touch the same shape with incompatible changes, flag it to the user and ask which takes precedence before applying anything.


Hard rules

  • Scratch files: one place. Put any scratch files (copies, renders, checks) under C:\Temp\slidelab<session>\ (scripts/_scratch.py); never invent new folders in C:\Temp. Render into the build's _qc folder as usual; anything else (a local copy, a test render, a check) goes in the session's scratch folder (py -3 slide-builder/scripts/_scratch.py --session "<session folder>" prints it).
  • The whole-file checks block done. Every Critical or Major from the hygiene and type-scale check that record_vision_qc.py runs each round stops check_done.py until it is gone on a later round (fixed), or, for a Major the user decides to keep, their exact words are recorded: record_vision_qc.py --out <build> --keep-file-check KEY --user-words "<what they said>" (the KEY is printed beside each finding). A Critical cannot be kept. Advisory never blocks. check_done lists every kept one at delivery (owner's decision 2026-10-09).
  • Never say "looks good" without reading the PNGs. Running the export and reporting without using the Read tool on the images is a silent QC failure — it is worse than not running QC at all. On a Slide Lab build the reader agent (Step 4) does the reading and record_vision_qc.py proves it; the main chat reports what the reader handed back and never fills page_notes.json itself without reading.
  • Per-zone inspection is the hard gate, not the categorical checks. The visual categorical checks (Step 5b) only catch coarse failures. Small-text bugs (washed-out chart annotations, clipped numerals, sub-headlines inheriting master color, footer fills that shouldn't be there) only get caught by walking through every zone of every slide and reading what is rendered. You must produce a quote-back for each zone on each slide (Step 5a). If you cannot quote what you saw, you didn't read it — and the QC is a lie regardless of what severity you report.
  • Severity discipline. Critical issues block ship and cannot be overridden — they have to be fixed. Major issues can be shipped with a written reason from the user (no shortcut keyword — they must explain). Advisory issues are judgment calls and never block. Do not promote an Advisory to Major to force the user to engage, and do not demote a real Major to Advisory to avoid friction.
  • Fix the automatic findings without asking; ask about content. Criticals and layout/format Majors are fixed automatically (Step 7), at most two rounds, each recorded; content Majors (anything that changes the user's words or numbers) are never fixed without the user's reply. slide-builder/scripts/qc_fix_policy.py is the only list of which is which: do not re-class a finding by judgment to skip the question, and do not ask about an automatic one.
  • Never skip a slide. If there are 10 slides, every slide gets walked in Step 5a. On a Slide Lab build a later round reads the pages qc_pages.py plan lists (every page whose image changed); a page whose image is unchanged keeps its earlier walk, which the record checks by image hash. A slide that is "all clear" still produces a quote-back — the absence of violations is fine, but the absence of the inspection record is not.
  • Cover slides are not exempt from content checks. They are exempt from footer / page-number checks only.
  • Report what you see, not what you expect. If the mockup says there should be a chart and you see a white box, that is a Critical regardless of what the build log said.
  • Batch all fixes — never fix one issue at a time. Read every slide, identify every issue, fix all issues in a single pass at Step 7 (all automatic findings in one round), rebuild once, then re-QC once. One fix → one rebuild → one QC cycle per issue is the failure mode that multiplies build time by 5–6× on a 10-slide deck. There is exactly one exception: if fixing issue A would conflict with fixing issue B (e.g., different background colors on the same slide), flag the conflict to the user and ask which takes precedence before fixing anything.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.