slide-lab
Skill1 starsChanged 41 days agoMITView on GitHub
Front door for ALL deck and PowerPoint work in Slide Lab. Start here for ANY request to build, make, port, rebuild, review, or brand a multi-slide deck — from an objective, an outline, scratch notes, a finished storyline/package, or an HTML mockup. NEVER hand-roll a deck from a blank python-pptx Presentation for a branded or narrative deck — that is the documented failure path (wrong template, tiny fonts, no review). Presents the user a menu and routes: new narrative → storyline-helper; already-written storyline/package or HTML mockup → storyline-helper's review-and/or-build path, then slide-builder (build on the client template's real layouts); RFP/proposal → rfp-helper; rebuild/insert a slide in a deck Slide Lab built → slide-builder; work on an existing .pptx Slide Lab didn't build → slide-builder's external-deck door (6a fix text, 6b redesign a slide via adopt_deck + splice-back, 6c refresh a recurring/PMO deck); register a client template (one-time, standalone) → register_template; QC of a built deck → slide-qc. A deck is not done until slide-qc has run.
In this repository5 other files it gives its agents.
- rfp-helperSkill
- slide-builderSkill
- slidelab-logSkill
- slide-qcSkill
- storyline-helperSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Before the menu (or the first route), run py -3 slide-builder/scripts/update.py check.
- Distinctive: line 22
If the user's intent is already specific, name the route in one line and go.
- Very specific: line 23
If they ask for help, invoke /slide-lab, or their intent is unclear, show the menu below and let them pick — do not silently guess.
- Distinctive: line 41
If the request is already specific ("build me a 5-slide steering deck from this brief on template X"), skip the menu, state the route, and …
- Distinctive: line 47
Registration is a standalone step, never inline in a build: If any path finds an unregistered template, STOP and route to option 7 first.
- Very specific: line 91
Run py -3 slide-builder/scripts/register_template.py list — it prints the registered templates as JSON (and self-heals: prunes ones whose …
- Distinctive: line 101
Ask up to three, then route:
- Very specific: line 103
Do you already have a deck Slide Lab built (a build folder / REVIEW.html)?
≈ “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.
Files
Slide Lab — front door
Windows vs macOS/Linux — applies to every Slide Lab skill. Commands are written with
py -3(Windows). On macOS/Linux, run the identical command withpython3instead ofpy -3. Paths/flags are unchanged. LibreOffice (used for rendering) is located automatically on all three OSes; PowerPoint COM QC is Windows-only and opt-in.
Start of every Slide Lab session: updates (once a day)
Before the menu (or the first route), run py -3 slide-builder/scripts/update.py check. It changes no files. It prints UP TO DATE, SKIPPED: ... (already checked today, offline) or UPDATE AVAILABLE: <n> change(s) with a short change list.
- UP TO DATE / SKIPPED: say nothing and go on.
- UPDATE AVAILABLE: tell the user in one or two plain sentences what changed (translate the change list, no jargon) and ask: "A Slide Lab update is available. OK to install it now? It takes under a minute." On yes, run the printed install command (normally
git -C "<skills folder>" pull --ff-only; a one-timereset --keepwhen the server history was replaced) as its own visible command, thenpy -3 slide-builder/scripts/update.py after-pull. If that prints RESTART NEEDED, ask the user to close and reopen Claude before building (otherwise the next build refuses with out-of-date agents), and stop there. On no, go on with the current version and do not ask again today. - During a build (between prep and compile), mention an update and offer it after the deck is done. If agent files from main were installed mid-build anyway (an update, or the Slide Lab owner's main session after a merge), the build carries on: compile accepts two versions that are both on main and writes one line about it into COMPILED.md; suggest a new Claude session before the next round. A version only on a branch or never committed is refused. Since 2026-10-14 compile judges only the translator file (the workers have finished by then), and
check_done.pyonly warns about a file installed after the last agent step (no page was made with it); a version an agent actually ran with is still judged. - A build session never copies, installs or restores agent files (
~/.claude/agents), not even when the user says it is fine. Installs go throughupdate.py after-pullordoctor.py fixonly, from main. If compile refuses over agent files (exit 7), show the user its message and do what it says. - "Update Slide Lab" (any time): run
update.py check --nowand follow the same steps. - "Is Slide Lab set up right?", install problems, or a build failing on a missing package or browser: run
py -3 slide-builder/scripts/doctor.pyand show its table.doctor.py fixcopies the agent files, adds Slide Lab's permissions to settings and creates the local work folder; it never installs software. Run any install or download command it prints as its own visible command, only with the user's OK.
You are the single entry point for deck work. You build nothing yourself. Two jobs:
- If the user's intent is already specific, name the route in one line and go.
- If they ask for help, invoke
/slide-lab, or their intent is unclear, show the menu below and let them pick — do not silently guess.
Show the menu when intent isn't already specific
Present this to the user (adapt lightly), then route on their choice:
Slide Lab: what would you like to do?
- Make a new deck: from a topic, your notes, a storyline you already have, or an RFP.
- Change a deck: one Slide Lab built, or any other PowerPoint file you have.
- Check a deck before you send it.
- Set up a client's template (once per template).
- Not sure: I'll ask a couple of questions.
Then route with one follow-up question when needed (the internal option numbers below are for routing only; never show them):
- 1 → a brand-new storyline is option 1; material they already have (a storyline, outline, notes, mockup, or an old deck as a source) is option 2; an RFP or proposal is option 3. Ask only if it is not obvious.
- 2 → a deck with a Slide Lab build folder is option 5. Any other file is option 6: ask "Fix text or numbers, redesign a slide or two, or refresh a recurring report with this cycle's text?" (6a / 6b / 6c).
- 3 → option 4. 4 → option 7. 5 → option 8.
If the request is already specific ("build me a 5-slide steering deck from this brief on template X"), skip the menu, state the route, and proceed — with a one-line "not what you wanted? here are the options" fallback.
Absolute rules (on every route)
- Never hand-roll
python-pptx/pptxgenjsfrom a blankPresentation()for a branded or multi-slide deck — that is the documented failure path. - "Use the client template" means build on its layouts/masters (register it, build on it) — not scrape its colors into a blank deck.
- Registration is a standalone step, never inline in a build. If any path finds an unregistered template, STOP and route to option 7 first.
- A deck is not "done" until
slide-qchas run and produced a report. A PDF you rendered yourself is not QC, and neither is reading pictures you drew yourself: invoke the slide-qc skill (again, in a long or resumed session, since the copy of its steps you carry may be old); it reads the pagesqc_pages.py planwrites to<build>\_qc\to_read\and records them withrecord_vision_qc.py, andcheck_done.pyrefuses anything else. The page reading goes to a fresh reader agent (owner's decision 2026-10-14):planwrites<build>\_qc\reader_brief.mdwith the approved headlines, the no-person-attribution rule, the type rules and the deck's rulings file; dispatch one agent on it, and it hands back only the open Critical and Major findings, one line each. The main chat does the fixes and the approvals, never the reading as well. (Applies to any built or rebuilt deck — options 1/2/3/5, and 6b/6c. A 6a text-only tweak is exempt, but run QC anyway if the edit changed text length, since a longer run can overflow its box.) - One Slide Lab page per deck (owner's decision, 2026-10-16):
<deck topic> - Slide Lab.htmlin the build folder, with tabs Storyline, Slide designs and Final check. It is the only page the user opens; each tab's Done copies one message that startsSlide Lab, <deck>, <tab>, code XXXX. Never point the user at REVIEW.html or FINAL-CHECK.html separately. - The user's rulings live in one file, in their words (owner's decision, 2026-10-14). Every Slide Lab script prints
RULINGS: <path to _session\rulings.md>; read it before replying about any slide or changing the storyline, and after a compaction. Record each new steer withslide-builder/scripts/add_ruling.py(it checks the words against this session's transcript); never retype the user's direction into a designer's file. A ruling's reading never narrows or widens its quote ("fix those" over a list of ten notes means all ten, not "the layout ones"). Not sure where a build stands?slide-builder/scripts/build_status.py --out <session folder>prints the stage and the next command. When a script prints the /compact suggestion (storyline approved, picks recorded), pass it on with its exact command. - Content reviews: once on the brief's numbers before design, then on the picked pages only (owner's decision 2026-10-14). Before the designers start, run ONE fact check of the brief's numbers against their sources (number errors live in the text, so this catches them once instead of in every option). A content committee (several reviewers on the deck's content) runs after the picks, on the picked pages only, never on options the user did not pick (on one client deck 63% of fix edits went to options that never shipped). The number-check rounds on the finished deck still cover every page; record each round with
slide-builder/scripts/number_check.py(slide-builder § "Content reviews and number checks"). - Font sizes stay on PowerPoint's default grid, 8pt floor; body ~11–14pt.
- When the user says a Slide Lab deck is good ("looks good", "approved", "final"), run
slide-builder/scripts/publish_cleanup.py --out <session folder>and say how much space it freed. It keeps the deck and everything needed to edit it later; it removes unpicked options, renders and per-option files. Only on the user's say-so. - "Clean up my old / finished decks" or "free up space": run
publish_cleanup.py --scan <the user's sessions folder>, which lists each finished deck, how much it would free, and when it last changed (flagging any changed in the last day as possibly in progress). Show that list as a table, let the user say which decks are final, then run--outon each one they name. Never clean a deck the user did not name. Then runpublish_cleanup.py --temp, which lists Slide Lab scratch folders underC:\Temp\slidelab\not changed for 7 days, with sizes; show them as a table too and delete only the ones the user names (--temp --delete "<name>" ..., or--temp --all-listedwhen they say all). It never touches anything outside that folder and skips folders in use. When the user says a deck is good,--outalso deletes that session's scratch folder.
Routing — what each choice invokes
| Choice | Route | |
| 1 Build new | storyline-helper → coaches narrative → quality gate → emits brief + storyline (dot-dash) → then stops and asks whether to build. On yes: slide-builder → slide-qc. (A user who just wants a storyline/dot-dash stops here — that's a valid finish.) | |
| 2 Work from what I have | storyline-helper "review &/or build" path — produces a new deck; it does not edit an existing file in place (that's option 6). First ask review or build (see below). Review → critique + suggestions, STOP. Build → validate → emit → slide-builder. An existing deck or HTML mockup is read as reference/source (its content/structure), then slides are rebuilt on the client template — the source's exact design is not copied 1:1; say so up front. Carve-out — a page the user hands over to be KEPT: if the user supplies a specific page and asks for that page (a one-pager, a mockup they want reproduced), do NOT silently substitute your own summary of it. Pin it (see slide-builder § "Replicating a supplied page") so the build cannot quietly drop it, and reconcile its figures. Substituting a rebuilt equivalent for a page the user explicitly handed over is a known failure — it is how a supplied one-pager became an exec-summary nobody asked for. If you are unsure whether they want it reproduced or re-argued, ask before building. | |
| 3 RFP | rfp-helper → proposal brief (mode: rfp) → slide-builder. | |
| 4 QC a deck | slide-qc on a built .pptx. Ask for the deck path if not given. | |
| 5 Change a Slide-Lab-built deck | slide-builder — rebuild: build_deck.py --slide N; insert: build_deck.py --insert N (the design count comes from settings, 1 out of the box; do not ask; --options 3 only when the user asks for three, or they click +3 designs on a slide in REVIEW.html; never tell a worker a different count than its _prompt.md); then worker → finalize_deck.py --slide N → the same review sequence as any build (REVIEW.html → record_picks.py → translate a picked sketch → finalize → FINAL-CHECK.html → compile with its token; picks or a "build it" the user types in chat while that page is open count too, recorded with their words: record_picks.py --approved-in-chat / compile_picks.py --approved-in-chat). Only works on a deck Slide Lab built (an <out>/ with _meta.json). For an external deck, use option 6. | |
6 Work on an external .pptx (Slide Lab didn't build it) | slide-builder, forked by what's changing (ask 6a/6b/6c): 6a — tiny text/number edit → "Edit an existing PowerPoint" mode: open with python-pptx, tweak/extract text, save a copy (small tweaks only, no build/QC). 6b — redesign a slide (or a few) → adopt_deck.py (extract the deck's content → brief; register the deck's own template; synthesize _meta.json + slide dirs) → build_deck.py --slide N → worker → finalize_deck.py --slide N → the review sequence (REVIEW.html → record_picks.py → translate a picked sketch → finalize → FINAL-CHECK.html) → its Build command, which compiles with --splice-into (replaces slide N in a copy of the original, keeps every other slide) → slide-qc. 6c — refresh a recurring/PMO deck → refresh_deck.py (dump text shapes → user tags the volatile fields → saved refresh spec → batch in-place run.text updates to a dated copy, design frozen) → slide-qc. Never overwrite the user's original — always write a new file. | |
| 7 Register a template | First copy the client .pptx into <home>\Slide Lab\templates\<Client>\ (the one place templates are kept: the local drive, never OneDrive) and register that copy. register_template.py propose → Claude asks the color and layout questions in chat → commit-cli. Standalone, no build; writes <stem>/ brand.yml + theme.json + chrome.yml, saves a normalized build-template.pptx every build opens (original never touched), and builds a real mock slide (<stem>/selftest/mock.pptx) on the default layout. Registration is NOT done until the user opens that mock slide in PowerPoint, confirms the title/takeaway/footnote/source land + fit and the page number shows, and you run register_template.py confirm <template> (which also deletes the self-test folder) — the automated self-test can pass when something is still off, so a human check is required. A commit auto-adds the template to the pick-list (register_template.py list) marked "(needs review)" until confirmed. | Follow slide-builder's "Register a new client template" rules: show the palette in chat and ask for the main, highlight and cover colors separately with no pre-picked answer — do NOT auto-accept (the automatic guess has been wrong on every template so far), and you MUST capture the default content layout (plus the cover layout), or every later build fails mid-way. |
| 8 Not sure | Orientation (below), then route. |
Disambiguator — options 2 vs 5 vs 6 all touch "a deck"
Route on provenance first, then effort — two short questions.
Level 1 — provenance. "Is there a deck file involved, and did Slide Lab build it?"
- No deck yet / I have material to build from (storyline, outline, notes, HTML mockup, or an existing deck to use as source for a new one) → option 1 (from scratch) or option 2 (from material). Both produce a new deck; neither edits an existing file in place.
- Yes — Slide Lab built it (there's a build folder / REVIEW.html /
_meta.json) → option 5 (rebuild slide N, insert a slide, or remove one withbuild_deck.py --delete N: see slide-builder SKILL.md, "Remove a slide"), or option 4 to QC it. - It's an external
.pptxSlide Lab did NOT build → option 6, then ask Level 2.
Level 2 — effort (only for option 6, the external-deck door). "What are you changing in it?"
- Just the words / numbers, design stays → 6a (direct python-pptx edit, save a copy).
- The look of a slide — layout or visual treatment → 6b (adopt → rebuild slide N on the deck's own template → splice back into a copy → QC).
- It's a recurring deck on a fixed template and you're dropping in this cycle's content → 6c (content refresh from a saved spec, design frozen → QC).
Two boundary tests to keep straight: option 2 vs option 6 — "a new deck built from this one's ideas (2), or change this actual file (6)?" 6a vs 6b — "changing words/numbers = 6a; changing how it looks = 6b." The per-slide rebuild/insert of option 5 needs the pipeline's _meta.json and only works on decks Slide Lab produced; 6b is how you get equivalent redesign on an external deck (it synthesizes that _meta.json via adopt_deck.py).
Before any build path (options 1, 2, 3) — pick the template from the list first
A build needs a registered template, chosen at the start — before the user does all the storyline/RFP work — not after. Do this via the pick-list, never by guessing a path:
- Run
py -3 slide-builder/scripts/register_template.py list— it prints the registered templates as JSON (and self-heals: prunes ones whose files are gone, rediscovers a template's settings files in<home>\Slide Lab\templates\, the one place templates are kept). - Present them to the user as a numbered pick-list, e.g. "Which client template? 1) Acme — Template2 2) Globex — Deck (needs review) … N) Register a new one." Show each entry's
confirmedstatus — markconfirmed: falseones "(needs review)". - Route the chosen entry's
template_path(the original.pptx) into the build as the brief'sclient_template:front-matter. Always pass the original path — the pipeline opens the normalized build copy automatically (viaresolve_build_template); the entry'sbuild_template_pathis informational only. Passing the copy asclient_template:would fail the build (its sidecars live under the original stem). - If the template they want is not in the list, do NOT guess a path — go to option 7 (set up the template) first, then re-run
listand pick it. If the list is empty, the user has no registered templates yet → option 7. - If the chosen template is not yet confirmed (
confirmed: false), stop and have the user open its mock slide (<stem>/selftest/mock.pptx) in PowerPoint; once they confirm the title/takeaway/footnote/source land and the page number shows, runregister_template.py confirm <template>before building. Prep refuses an unconfirmed template (exit 12);--allow-unconfirmedoverrides it only on the user's say-so and is recorded.
Picking at the start spares a first-timer from finishing the whole narrative only to hit a "set up your template first" wall at the end.
Orientation — option 8 ("not sure")
Ask up to three, then route:
- Is this the first time building with this client's template? → set it up first (option 7).
- Do you already have a deck Slide Lab built (a build folder / REVIEW.html)? → yes: fix/insert a slide (5) or QC it (4).
- Starting fresh, or do you already have a storyline / outline / mockup? → fresh: (1); have material: (2). Is it an RFP / proposal? → (3). Just editing an existing
.pptx? → (6).
After routing
State the route in one line, invoke the skill, and let it run. Do not duplicate its work.
Enforcement note (for maintainers, not a build instruction)
This front door and the skill descriptions steer routing strongly, but they are advisory — they cannot hard-block a hand-rolled script on their own. A true hard block requires a PreToolUse hook shipped as a Claude Code plugin and force-deployed by your org's Claude Code admin via managed settings; it is not active by default, and in a managed-enterprise org a self-installed plugin's hook may be suppressed by allowManagedHooksOnly. Until an admin deploys that, this router plus the skill descriptions are the enforcement layer.
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
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.

