mira-visuals

Generates static slide images, infographics, and D3.js diagrams captured as PNG via Puppeteer.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/mayconspirlandelli/slides-podcast-ia-home-office --skill mira-visuals-mayconspirlandelli
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mira-visuals
Source: https://github.com/mayconspirlandelli/slides-podcast-ia-home-office/tree/main/.agents/skills/mira-visuals
Command: npx skills add https://github.com/mayconspirlandelli/slides-podcast-ia-home-office --skill mira-visuals-mayconspirlandelli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires puppeteer, puppeteer-core, and includes scripts (resource) and references (resource) components.

What problem does it solve? Creating consistent, legible static visuals for slide decks and books requires juggling multiple formats, pipelines, and tools. This Skill unifies panel images (1920x800), square infographics (1920x1920), technical diagrams, and data charts into one entry point that picks the right format and pipeline automatically. ## Core Features & Use Cases - Format Decision: Routes each request to the right output format — 1920x800 panels for slides, 1920x1920 squares for dense visual summaries, or fullwidth diagrams and charts. - Four Pipelines: Photorealistic images via JSON prompts for external image services, D3.js technical diagrams with arrows and labels, D3.js data charts, and D3.js infographics with four layout templates. - HTML-to-PNG Capture: Ships a Puppeteer-based capture script that renders HTML/SVG at exact dimensions, with fallback from puppeteer to puppeteer-core plus a cached or system Chrome. - Use Case: A user asks for a "quadro resumo" of a chapter; the Skill selects the 1920x1920 infographic layout, generates D3.js HTML with theme colors and minimum 24px fonts, and captures a PNG saved to the deck's assets folder. ## Quick Start Ask the assistant to create a static image, diagram, chart, or infographic for your slide deck and it will generate the HTML and capture the PNG into the deck's assets folder.

Frequently Asked Questions about mira-visuals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert an HTML or D3.js visualization to a PNG image?▼

Run the capture script with node, passing the input HTML file, output PNG path, width, and height. It opens the file in headless Chrome via Puppeteer, waits for fonts and rendering to settle, then screenshots the exact viewport dimensions.

What image formats and sizes does this Skill generate for slides?▼

It produces PNG files in two main formats: 1920x800 panels for horizontal slide content and 1920x1920 square infographics for dense visual summaries. Diagrams and data charts use the fullwidth slide format.

What happens if the puppeteer package is not installed?▼

The capture script falls back to puppeteer-core combined with a Chrome binary from the puppeteer cache or a system Chrome installation. You can also force a specific binary by setting the PUPPETEER_EXECUTABLE_PATH environment variable.

Can this Skill create animations or animated visuals?▼

No, it only produces static images. For animations you must use the separate mira-animator skill; this Skill explicitly handles still images such as panels, infographics, diagrams, and charts.

Why does my captured PNG have wrong dimensions or cut-off text?▼

Check that the SVG viewBox and width/height attributes match the target canvas size passed to the capture script. Also verify minimum font sizes are respected and internal padding is at least 60px so text is not clipped at the edges.