---
name: content-infographic
description: Generate SVG and HTML infographics with brand-aware design. Use when user wants to create an infographic, data visualization, process flow, comparison chart, stat card, or visual data summary.
---
# Content Infographic Skill
## Purpose
Generate production-ready SVG and HTML infographics that are brand-aligned, accessible, and optimized for web, print, and social media embedding. This skill produces visual assets, not presentations or documents.
---
## When This Skill Activates
- User asks for an infographic, data visualization, process diagram, comparison chart, or stat card.
- User has data they want to visualize.
- User needs a visual summary for a blog post, social media, report, or presentation.
- User says "visualize this" or "make this visual" about any data or process.
---
## SVG-First Approach
Always default to SVG output unless the user requests otherwise. SVG advantages:
- **Scalable**: Looks sharp at any size, from social media thumbnail to conference poster.
- **Embeddable**: Inline in HTML, embed in markdown, include in presentations.
- **Print-ready**: No pixelation at any DPI.
- **Editable**: Users can modify colors, text, and layout after generation.
- **Accessible**: Supports `
`, ``, and `aria-label` attributes for screen readers.
- **Small file size**: Vector graphics compress well.
When to use HTML instead of SVG:
- Interactive infographics with hover states, tooltips, or animations.
- Infographics that need responsive reflow at different screen sizes.
- Dashboards with live data bindings.
---
## Generation Flow
### Step 1: Read Brand Context
Read these files if they exist:
- `brand/VISUAL.md` -- colors, fonts, logo rules
- `brand/BRAND.md` -- identity, audience (affects visual tone)
Extract:
- Primary, secondary, and accent colors
- Font family (or use a clean sans-serif default)
- Logo mark SVG path (for embedding in the infographic)
- Visual style preferences (minimal, bold, playful, corporate)
If `brand/` is missing, ask for 2-3 colors and proceed with a clean default style.
### Step 2: Understand the Data
Before designing anything, understand what needs to be communicated:
- **What is the data?** Numbers, categories, processes, comparisons, timelines.
- **What is the key insight?** Every infographic has one main takeaway. Identify it.
- **Who is the audience?** Technical vs. general, internal vs. external.
- **Where will it live?** Blog post, social media, email, print, presentation slide.
Ask clarifying questions if the user provides raw data without context.
### Step 3: Choose Layout
Based on the data type and key insight, select the appropriate template type:
| Data Type | Template | When to Use |
|---|---|---|
| Quantitative comparison | `data-viz` | Bar charts, line charts, pie charts, metrics |
| Sequential steps | `process-flow` | Workflows, how-it-works, timelines, pipelines |
| Side-by-side evaluation | `comparison` | Versus, pros/cons, feature matrix, before/after |
| Single key metric | `stat-card` | Hero numbers, KPI highlights, social sharing |
See `templates/` for each template type.
### Step 4: Generate SVG
Build the SVG following these principles:
- Set a viewBox appropriate for the output context (1200x800 for blog embeds, 1080x1080 for social, custom for others).
- Use CSS custom properties for colors so the user can retheme easily.
- Embed brand fonts via `