/palladius-public-goodies:slide-diagram-routerfrom palladius-public-goodies
Routes slide visuals to the best engine (generative, topological SVG, or HTML/SVG cards) for Marp, Reveal.js, Slidev, or Google Slides. Prefers native editable shapes over monolithic PNGs on Google Slides.
Ships in palladius-public-goodies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
No single diagram generator wins every slide. Route every technical slide visual to the exact engine that matches its cognitive structure, prefer N native editable Google Slides shapes over 1 monolithic flat PNG whenever targeting Google Slides, and never destroy a strong existing slide when proposing a visual alternative.
🧩 NATIVE-FIRST RULE ON GOOGLE SLIDES: Before rendering a full-slide raster PNG, check if the slide is a multi-card grid, board comparison, code snippet, or bar chart (
10^5 .. 10^170). On Google Slides, always build cards, pills, captions, code blocks, arrows, and bars asNnative editable Google Slides shapes, using small isolated PNGs only for the inner artwork (e.g., individual game boards or cloud icons). A single monolithic image locks the speaker into editing only theH1title!
digraph slide_diagram_router {
rankdir=TB;
node [fontname="Inter", fontsize=11, shape=box, style="rounded"];
q_code [shape=diamond, label="Needs verbatim prompt,\ncode, or JSON across\n2-4 contrast columns?"];
q_topo [shape=diamond, label="Needs exact M×N / M+N\nconnector counts &\nauthentic brand logos?"];
e3 [label="Engine 3: Custom HiDPI\nMulti-Tab Card (2x HTML/SVG)"];
e2 [label="Engine 2: Deterministic 2x\nTopological SVG + Brand Logos"];
e1 [label="Engine 1: NanoBanana 'Physical Lego'\nPipeline (N>=4 + Vision Judge)"];
q_code -> e3 [label="yes"];
q_code -> q_topo [label="no"];
q_topo -> e2 [label="yes"];
q_topo -> e1 [label="no (cloud/data arch)"];
}
| Visual Archetype | Winning Engine | Why It Wins | Canonical Exemplar |
|---|---|---|---|
Cloud Architecture & Physical "Lego" Pipelines (until CloudArchDraw MCP is in prod) | Engine 1 — Generative "Physical Lego" (gemini-3-pro-image / imagen + N >= 4 tournament) | Fuses tangible metaphors (PDF pages inside a bucket, stacked tables + green ACL padlock, GPU chip, [1][2] answer bubble) with cloud service icons in one memorable strip | RAG 1/3: Homemade (GCS Bucket -> Cloud Run OCR -> Embeddings -> AlloyDB ScaNN + ACL -> GPU Reranker -> Gemini) |
| Many-Icon / Many-Arrow Topological Graphs (non-network diagrams) | Engine 2 — Deterministic 2x Retina Topological SVG | Guarantees exact connector math (4 × 4 = 16 red spaghetti curves vs 4 + 4 = 8 hub connectors) and crisp, uncorrupted vector brand logos (Claude, Cursor, Gemini CLI, Postgres, Slack, Drive) | Before MCP: M × N spaghetti vs After MCP: M + N one standard |
Multi-Tab / Multi-Column Sequential Contrast Cards (1..4 or (a)(b)(c)) | Engine 3 — Custom HiDPI Multi-Tab HTML/SVG (2x Retina + DOM Audit) | Preserves 100% letter-accurate monospace SYSTEM PROMPTs and JSON ({"name": "get_weather", "args": {"city": "ZRH"}}) with micro-step vertical arrows (↓), numbered badges, and bottom verdict pills | 2024: grounding fragile models & 4-Step Real JSON Function Calling Flow |
gemini-3-pro-image)N >= 4 candidates into /tmp/, convert outputs to true RGBA/RGB .png (Pillow), and visually inspect every candidate to reject garbled labels (ScaMN), dark #0F172A frames, or backwards arrows.#FFFFFF integration: place aspect-fitted on the light slide canvas with zero border box so the illustration floats natively.2x Retina Topological SVG (Many Icons + Arrows)M x1 y1 C cx1 cy1, cx2 cy2, x2 y2) anchored strictly to card borders.4 × 4 = 16 custom integrations in #FEE2E2/#991B1B vs 4 + 4 = 8 standard connectors in #DCFCE7/#166534).2x Retina (1232×560 -> 2464×1120 PNG) using the bundled CLI:
python3 $SKILL_DIR/scripts/render_slide_diagram.py --mode bipartite --spec /tmp/mcp_spec.json --out /tmp/mcp_bipartite.png
# Built-in smoke demo:
python3 $SKILL_DIR/scripts/render_slide_diagram.py --demo-bipartite --out /tmp/demo_bipartite.png
1..4 Columns + Verbatim Code/JSON)1232×560 CSS flexbox grid at --force-device-scale-factor=2 (2464×1120 PNG) with every CSS font >= 18px, semantic border colors (#C5221F red, #B06000 amber, #188038 green, #1A73E8 blue), and an automated Headless Chrome DOM audit (0 font/overflow warnings):
python3 $SKILL_DIR/scripts/render_slide_diagram.py --mode multitab --spec /tmp/era_2024.json --out /tmp/era_2024.png
# Built-in smoke demo:
python3 $SKILL_DIR/scripts/render_slide_diagram.py --demo-multitab --out /tmp/demo_multitab.png
Creativity and high-craft visuals cost real time and tokens; deleting or skipping a slide in Google Slides takes 2 seconds. Whenever an existing slide already has a decent visual and you generate a competing style or layout:
skip the existing slide! Do not choose on the speaker's behalf.fill: #FEF9C3, border: 1.5pt solid #F59E0B, text #78350F bold 10pt) in the top-right margin (x=470pt, y=8pt, w=214pt, h=20pt on a 720×405pt Google Slide, or .option-pill in Marp):
Option 1: Deterministic Lego SVGOption 2: NanoBanana Physical Flow<div style="position:absolute; top:14px; right:40px; background:#FEF9C3; border:1.5px solid #F59E0B; color:#78350F; font:700 13px 'Inter',sans-serif; padding:3px 12px; border-radius:999px;">
Option 1: NanoBanana Physical Flow
</div>
skip: true or a Slide Graveyard — Never Destroy Good Art:
skip: true (slideProperties.isSkipped: true) or move them to an end-of-deck Slide Graveyard / Appendix so they can be rescued for future talks. Only genuinely broken/ugly drafts get deleted.| Agent Excuse | Reality & Required Action |
|---|---|
"I'll generate the 4-column SYSTEM PROMPT + JSON card in NanoBanana so it looks cohesive." | Image models corrupt multi-line monospace JSON and prompts. Use Engine 3 (--mode multitab). |
| "I'll draw the 4-column JSON comparison using native Google Slides shapes." | 30+ manual shapes drift, clip, and lose syntax-card polish. Render Engine 3 HiDPI PNG (2464×1120, 0 DOM warnings). |
| "One NanoBanana call is fast enough under deadline pressure." | Single-shot outputs frequently misspell ScaNN/OCR or add grey borders. Generate N >= 4 and run the 5-gate vision check. |
"I'll mark the old slide isSkipped: true and put my new diagram on the main slide to avoid clutter." | Hiding the original robs the speaker of a 2-second visual comparison. Keep both visible with #FEF9C3 Option 1 / Option 2 pills. |
M × N connector math, real brand logos, or verbatim code/JSON.image_url / replaceImage over an existing strong visual without asking or creating side-by-side Option 1 / Option 2 yellow-pill slides.skip: true or the Slide Graveyard.COMPANION SKILL: Pair with presentation-that-riccardo-likes for slide typography, <= 10–20 word editorial copy, and whisper-thin footers.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
slide-decks, architecture-diagrams, google-slides, marp, revealjs, slidev, visual-routing
68 skills in this plugin
/a2ui(💛) Build and render portable, declarative Generative UIs with Google A2UI (Agent-to-User Interface). Use whenever the user asks to generate, design, or wire interactive UI widgets, cards, forms, or dashboards using A2UI./add-to-portfolio-app(💛) Adds or syncs Talks, Keynotes, Workshops, Articles, Codelabs, Slides, and Videos in Riccardo's personal portfolio application (apps-portfolio) and companion bio repo (my-sessions-and-bio), including SQLite sync, TDD checks, default speaker images, and automated Cloud Run deployment./adk-python(💛) Create and manage AI agents using Google's Agent Development Kit (ADK) for Python. Use when the user wants to build single or multi-agent systems, evaluate agents, or deploy them. Includes instructions for fetching fresh ADK documentation and links for TypeScript and Go development.Other plugins' skills for the same job
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies