preso-builder
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Builds executive-ready Google Slides decks in "The AI Factory Blueprint" visual style from a YAML spec (preso_spec.yaml), ingesting codebases, existing decks, or markdown docs, with geometry-aware text-fit checks, duration tiers, and a render-audit loop on real thumbnails. Use when asked to create, restyle, or QA a Blueprint-style slide deck, convert a repo or doc into slides, cut a 5/15/45-minute version of a deck, or redesign a single slide.
- Installs packages
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- apigee-x-proxy-developmentSkill
- architecture-research-blueprintSkill
- aws-lambda-fleet-to-cloud-runSkill
- aws-lambda-to-cloud-run-migrationSkill
- visual-docsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Not for: data charts or telemetry plots (dataviz), didactic diagrams/walkthroughs (visual-docs, though you can render its diagrams to PNG …
- Very specific: line 47
Before writing a spec, make sure you know these five things.
- Very specific: line 74
Vary the layout: Don't use more than 2 slides in a row with the same archetype.
- Very specific: line 79
Mark the demo: Put a demo_pivot slide before any live demo, with up to 3 watch_for chips that tell the audience what to notice.
- Distinctive: line 82
Speaker notes are optional: Write them only when the user wants them and you have real content.
- Very specific: line 85
No research residue: Remove citation markers like [cite: 3], [1], and 【4】.
- Distinctive: line 136
When the user wants to improve one slide, don't jump straight to an edit.
- Very specific: line 169
Run commands as preso … only if the package is installed.
- Distinctive: line 172
Leave it off, since template slides are pruned automatically.
- Very specific: line 174
Avoid emoji outside the Basic Multilingual Plane (😀 and similar) in visible text.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
preso-builder: The AI Factory Blueprint deck builder
A spec-first engine: you author preso_spec.yaml. The engine (bundled in
engine/ next to this file) validates it, compiles it into one atomic gslides batch, builds the deck from the
Blueprint template (1FJ4wCMDlI1zW3XCbIXXn-ejOOjq5iQ1Mit_9MuGnO-U), then exports
thumbnails so you can audit what actually rendered.
When to use
- Build a Blueprint-style executive deck from docs, RFCs, notes, or a repo.
- Restyle an existing Google Slides deck (
ingest --slides <deck_id>). - Cut one deck to several talk lengths (
--duration 5|15|45|full). - Redesign one slide, or QA/audit a built deck.
Not for: data charts or telemetry plots (dataviz), didactic diagrams/walkthroughs
(visual-docs, though you can render its diagrams to PNG and place them with
image_split), Docs/Sheets authoring.
Setup
SKILL_DIR=<directory containing this SKILL.md>
pip install -e "$SKILL_DIR/engine" # gives you the `preso` command
# or, without installing:
alias preso="python3 $SKILL_DIR/engine/preso.py"
test -x /google/bin/releases/gemini-agents-gslides/gslides && echo "live build OK"Without gslides, the engine still validates, previews (preview.html), and emits
the batch JSON (build --dry-run --output-batch ops.json).
Workflow
1. Intake gate (ask first, only what is missing)
Before writing a spec, make sure you know these five things. If the user did not
say, ask in one ask_question call. Do not ask about anything they already
told you.
| Question | Why it matters |
| Audience (execs / engineers / customer / mixed) | Density, jargon, which archetypes |
| Talk length (5 / 15 / 45 min) | Slide count and tiers (--duration) |
| Language (EN / PT-BR / ES …) | All visible text and notes |
| Tone (executive, technical deep-dive, workshop) | Titles, verbs, demo slides |
| Source of truth (repo, doc, deck, or "from scratch") | ingest vs spec |
Rough sizing: about 1 slide per minute for 5–15 minute talks, and about 0.7 per minute for 45 minutes.
2. Draft the spec (Maker)
preso ingest --repo <dir> | --markdown <doc.md> | --slides <deck_id> --output preso_spec.yaml
preso spec --preset ai_factory --title "<Title>" --output preso_spec.yaml # from scratchAuthoring rules:
- Titles are short labels, and the subtitle is the takeaway sentence. Every content slide needs a subtitle of at least 4 words that states the point ("Agents cut review time from 2 days to 3 hours"), not a topic ("Review time"). The validator warns when it's missing.
- Vary the layout. Don't use more than 2 slides in a row with the same archetype. The
validator warns. Rotate
split_cardswithhero_metrics,ladder_hierarchy,executive_grid, andimage_split. - Tier every slide for length variants:
core(always shown),explain(15 min and up),detail(45 min and up), orappendix(built but hidden). Useskip: trueto hide one slide. - Mark the demo. Put a
demo_pivotslide before any live demo, with up to 3watch_forchips that tell the audience what to notice. - Use images when no archetype fits. See the escape hatch below.
- Speaker notes are optional. Write them only when the user wants them and you have real content. Nothing is generated, placeholdered, or flagged when a slide has none. Never pad notes with filler.
- No research residue. Remove citation markers like
[cite: 3],[1], and【4】. The validator flags them.
Archetypes are listed in references/archetypes.md, and the full schema is in references/spec_schema.md.
3. Validate and fit (Checker)
preso inspect --spec preso_spec.yaml # outline, tiers, per-slide notes word count
preso budgets # per-slot capacity from real geometry
preso qa --spec preso_spec.yaml -o dist/qa # full offline QA + preview.htmlpreso build runs the validator's geometry pass. It compiles the spec and
reports each overflowing box as Geometry fit in '<element>' … (cut ~N chars;
capacity ~M). Cut exactly that much and don't guess. Geometry numbers are authoritative
over the flat per-field budgets. Roughly: a 3-card title holds about 19 chars, a 2-card
title about 32, the one-line subtitle about 94, and a hero value about 5 (3 metrics) or 9 (2 metrics). Check with preso budgets.
4. Build
preso build --spec preso_spec.yaml [--duration 15] [--deck-id <existing>]- The build copies the template, runs the batch, prunes the template's own slides, uploads any
local
image_splitimages, exports fresh thumbnails (stale ones are deleted), and writesdist/qa/audit_checklist.md. --deck-idrebuilds in place. Previous slides are pruned after the new ones are added.
5. Render audit (look at the pixels)
The heuristics can't see the rendered slide, so you have to. Open every PNG listed in
dist/qa/audit_checklist.md (use view_file on the path) and check each one against the rubric:
overflow/clipping, padding/alignment, the bottom-left footer zone, collisions,
contrast, leftover template shapes, and whether the subtitle lands as a takeaway.
- Fix issues in the spec and rebuild.
- Stop after 2 fix rounds. Show the user the deck URL, the remaining issues, and the thumbnails. Don't loop forever.
- To re-audit a deck without rebuilding:
preso audit --deck-id <ID> --spec preso_spec.yaml -o dist/qa.
6. Deliver
Return the Slides URL, the tier/duration you built, and any open audit items.
Single-slide redesign: offer 3 options
When the user wants to improve one slide, don't jump straight to an edit. Propose
3 distinct directions, each with a different archetype or structure (for example
split_cards → hero_metrics → image_split with a diagram). Give a one-line
rationale for each and show them as spec snippets or a quick preview.html. Build
only the one they pick.
Escape hatch (when the archetypes don't fit)
Try these in order:
- Pathway A (use an archetype). Almost everything fits one of the 10 archetypes. Rephrase the content before you reach for anything else.
- Pathway B (render a diagram). Author Mermaid (
mmdc -i d.mmd -o d.png -w 1600 -b white) or draw.io (thedrawio-skill, export PNG), or take a screenshot. Place it withimage_split:
Relative paths resolve against the spec file. URLs go through batch- archetype: image_split title: Request path subtitle: One gateway fronts all three regional backends image: {path: diagrams/request_path.png, alt: "Gateway → 3 regions", caption: "Figure 2"} bullets: [Single ingress policy, Regional failover, mTLS end to end] image_side: right # or left image_layout: split # or full (no bullets)add-image. Local files are uploaded after the batch. - Pathway C (surgical edit). For a tweak on a built deck, use
gslidesbatch or mutate commands directly on the element IDs (gslides read-all <deck>). Then re-runpreso audit. Remember that the nextpreso buildoverwrites the change, so put durable changes back into the spec.
Gotchas
- Run commands as
preso …only if the package is installed. Otherwise usepython3 <skill-dir>/engine/preso.py …. --clean-placeholdersreturns 400 on the Blueprint template because it has noi0/i1. Leave it off, since template slides are pruned automatically.- Hero metric values overflow at 54pt beyond about 5 chars with 3 metrics, or about 9 with 2. Move the qualifier into
unit. - Avoid emoji outside the Basic Multilingual Plane (😀 and similar) in visible text. Slides uses UTF-16
ranges and the compiler doesn't adjust for them. BMP symbols like
▶ ✓ ✗ →are fine. - In raw
gslidesbatch edits (Pathway C), note these quirks:style-textignoresline_spacing,resize-elementtakes a scale factor rather than points,move-elementresets scale,skip-slide/unskip-slideexist even though--helpdoesn't list them, and--jsonreturnsresolved_ids(placeholder → real object ID). - The chapter divider is white with a rainbow bar, not navy.
demo_pivotis the navy slide. - The validator blocks the build on errors (unknown archetype or tier, missing
required content, budget overruns in strict mode). Everything else is a warning. Use
--forceonly when you understand the warning.
References
- references/archetypes.md: the 10 archetypes, fields, and capacities
- references/spec_schema.md: the
preso_spec.yamlschema, tiers, and images - references/design_tokens.md: canvas, palette, and type scale
- references/batch_operations.md: batch ops, IDs, and gslides quirks
- references/narrative_framework.md: the 5-act storyline
- scripts/validate_spec.py: standalone validator wrapper
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.

