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
<title>, <desc>, 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
<style> inside the SVG or use web-safe fallbacks.
- Include the brand logo mark in a corner (default: bottom-right, small, 50% opacity).
- Add accessibility:
<title> for the infographic name, <desc> for a plain-text summary.
Step 5: Validate
Before delivering, check:
Design Principles
See design-principles.md for the full reference. Key rules:
Data-Ink Ratio
Every visual element should encode data. Remove anything that does not:
- No decorative borders or shadows.
- No 3D effects on charts.
- No background textures or patterns unless they encode information.
- Gridlines should be light gray and minimal (or removed entirely if the axis labels are sufficient).
Color with Meaning
- Use color to encode information, not for decoration.
- Primary brand color for the key data series or most important element.
- Secondary colors for supporting data.
- Neutral gray for context, labels, and axes.
- Never use color as the only differentiator -- pair with labels, patterns, or position for accessibility.
Typography Hierarchy
Three levels maximum:
- Title: Large, bold. States the key insight, not the chart type. "Revenue grew 47% in Q3" not "Revenue Chart."
- Labels: Medium, regular weight. Axis labels, category names, data point annotations.
- Footnotes: Small, light. Sources, methodology notes, date ranges.
Whitespace
Whitespace is not empty space -- it is structure. Use it to:
- Separate sections of the infographic.
- Create visual breathing room around the key insight.
- Guide the eye from one element to the next.
Grid Alignment
Align elements to an invisible grid. Misaligned elements create visual noise. In SVG, use consistent x/y coordinates and spacing values.
Template Types
Data Visualization (templates/data-viz.svg.template)
For quantitative data: bar charts, line charts, donut charts, area charts.
Key rules:
- Start bar chart y-axes at zero (truncated axes mislead).
- Use horizontal bar charts when category labels are long.
- Limit pie/donut charts to 5 segments. Use "Other" for the rest.
- Annotate data points directly on the chart when possible (reduces need for legends).
Process Flow (templates/process-flow.svg.template)
For sequential information: workflows, how-it-works diagrams, timelines, pipelines.
Key rules:
- Flow left-to-right or top-to-bottom. Never right-to-left.
- Each step: icon or number + title + one-line description.
- Connect steps with arrows or lines.
- Use consistent spacing between steps.
- Highlight the current or most important step with the brand accent color.
Comparison (templates/comparison.svg.template)
For side-by-side evaluation: versus layouts, feature matrices, pros/cons, before/after.
Key rules:
- Equal visual weight to both sides (unless the infographic is designed to favor one).
- Clear visual separator (vertical line, color difference, or whitespace).
- Consistent structure: same categories in the same order on both sides.
- Use icons or color coding to indicate positive/negative/neutral.
Stat Card (templates/stat-card.svg.template)
For single key metrics: hero numbers, KPI highlights, social media sharing.
Key rules:
- The number is the largest element by far.
- Context below the number in smaller text.
- Optional: trend indicator (arrow up/down), comparison ("up from 32% last quarter").
- Keep the card focused: one stat, one context line, one optional trend indicator.
Brand Logo Embedding
If brand/logo/logo-mark.svg exists, embed it in the infographic:
<g transform="translate(1120, 750)" opacity="0.5">
<!-- Contents of logo-mark.svg pasted here -->
</g>
Placement: bottom-right corner by default. Adjust position based on layout.
Size: approximately 5-8% of the infographic width.
Opacity: 40-60% so it does not compete with the data.
Output Formats
| Format |
When to Use |
How |
.svg file |
Web embed, presentation slide, further editing |
Direct SVG output |
| Inline SVG in HTML |
Blog post embed, email |
SVG wrapped in <div> with responsive CSS |
| HTML + CSS |
Interactive infographic |
HTML structure with CSS styling and optional JS |
For social media, suggest the user render the SVG to PNG at 2x resolution using a tool like svgexport or a browser screenshot.
Error Handling
- If the user provides no data, ask for it. Do not generate placeholder infographics with fake numbers.
- If the data has too many categories for the chosen format (e.g., 15 items in a pie chart), recommend a different format or suggest grouping.
- If brand/ is missing, proceed with a clean minimal style and note that running content-setup would improve consistency.
- If the data tells no clear story, push back: "What is the one thing you want the viewer to take away from this?"
1---2name: content-infographic3description: 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.4---56# Content Infographic Skill78## Purpose910Generate 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.1112---1314## When This Skill Activates1516- User asks for an infographic, data visualization, process diagram, comparison chart, or stat card.17- User has data they want to visualize.18- User needs a visual summary for a blog post, social media, report, or presentation.19- User says "visualize this" or "make this visual" about any data or process.2021---2223## SVG-First Approach2425Always default to SVG output unless the user requests otherwise. SVG advantages:2627- **Scalable**: Looks sharp at any size, from social media thumbnail to conference poster.28- **Embeddable**: Inline in HTML, embed in markdown, include in presentations.29- **Print-ready**: No pixelation at any DPI.30- **Editable**: Users can modify colors, text, and layout after generation.31- **Accessible**: Supports `<title>`, `<desc>`, and `aria-label` attributes for screen readers.32- **Small file size**: Vector graphics compress well.3334When to use HTML instead of SVG:35- Interactive infographics with hover states, tooltips, or animations.36- Infographics that need responsive reflow at different screen sizes.37- Dashboards with live data bindings.3839---4041## Generation Flow4243### Step 1: Read Brand Context4445Read these files if they exist:46- `brand/VISUAL.md` -- colors, fonts, logo rules47- `brand/BRAND.md` -- identity, audience (affects visual tone)4849Extract:50- Primary, secondary, and accent colors51- Font family (or use a clean sans-serif default)52- Logo mark SVG path (for embedding in the infographic)53- Visual style preferences (minimal, bold, playful, corporate)5455If `brand/` is missing, ask for 2-3 colors and proceed with a clean default style.5657### Step 2: Understand the Data5859Before designing anything, understand what needs to be communicated:6061- **What is the data?** Numbers, categories, processes, comparisons, timelines.62- **What is the key insight?** Every infographic has one main takeaway. Identify it.63- **Who is the audience?** Technical vs. general, internal vs. external.64- **Where will it live?** Blog post, social media, email, print, presentation slide.6566Ask clarifying questions if the user provides raw data without context.6768### Step 3: Choose Layout6970Based on the data type and key insight, select the appropriate template type:7172| Data Type | Template | When to Use |73|---|---|---|74| Quantitative comparison | `data-viz` | Bar charts, line charts, pie charts, metrics |75| Sequential steps | `process-flow` | Workflows, how-it-works, timelines, pipelines |76| Side-by-side evaluation | `comparison` | Versus, pros/cons, feature matrix, before/after |77| Single key metric | `stat-card` | Hero numbers, KPI highlights, social sharing |7879See `templates/` for each template type.8081### Step 4: Generate SVG8283Build the SVG following these principles:84- Set a viewBox appropriate for the output context (1200x800 for blog embeds, 1080x1080 for social, custom for others).85- Use CSS custom properties for colors so the user can retheme easily.86- Embed brand fonts via `<style>` inside the SVG or use web-safe fallbacks.87- Include the brand logo mark in a corner (default: bottom-right, small, 50% opacity).88- Add accessibility: `<title>` for the infographic name, `<desc>` for a plain-text summary.8990### Step 5: Validate9192Before delivering, check:93- [ ] Key insight is immediately visible (the most important information is the largest/most prominent element).94- [ ] Color contrast passes WCAG AA for all text.95- [ ] No more than 5-6 colors total.96- [ ] Text is readable at the intended display size.97- [ ] Brand colors and fonts are applied correctly.98- [ ] Logo is present but not distracting.99- [ ] SVG is valid and renders in all major browsers.100101---102103## Design Principles104105See `design-principles.md` for the full reference. Key rules:106107### Data-Ink Ratio108109Every visual element should encode data. Remove anything that does not:110- No decorative borders or shadows.111- No 3D effects on charts.112- No background textures or patterns unless they encode information.113- Gridlines should be light gray and minimal (or removed entirely if the axis labels are sufficient).114115### Color with Meaning116117- Use color to encode information, not for decoration.118- Primary brand color for the key data series or most important element.119- Secondary colors for supporting data.120- Neutral gray for context, labels, and axes.121- Never use color as the only differentiator -- pair with labels, patterns, or position for accessibility.122123### Typography Hierarchy124125Three levels maximum:1261. **Title**: Large, bold. States the key insight, not the chart type. "Revenue grew 47% in Q3" not "Revenue Chart."1272. **Labels**: Medium, regular weight. Axis labels, category names, data point annotations.1283. **Footnotes**: Small, light. Sources, methodology notes, date ranges.129130### Whitespace131132Whitespace is not empty space -- it is structure. Use it to:133- Separate sections of the infographic.134- Create visual breathing room around the key insight.135- Guide the eye from one element to the next.136137### Grid Alignment138139Align elements to an invisible grid. Misaligned elements create visual noise. In SVG, use consistent x/y coordinates and spacing values.140141---142143## Template Types144145### Data Visualization (`templates/data-viz.svg.template`)146147For quantitative data: bar charts, line charts, donut charts, area charts.148149Key rules:150- Start bar chart y-axes at zero (truncated axes mislead).151- Use horizontal bar charts when category labels are long.152- Limit pie/donut charts to 5 segments. Use "Other" for the rest.153- Annotate data points directly on the chart when possible (reduces need for legends).154155### Process Flow (`templates/process-flow.svg.template`)156157For sequential information: workflows, how-it-works diagrams, timelines, pipelines.158159Key rules:160- Flow left-to-right or top-to-bottom. Never right-to-left.161- Each step: icon or number + title + one-line description.162- Connect steps with arrows or lines.163- Use consistent spacing between steps.164- Highlight the current or most important step with the brand accent color.165166### Comparison (`templates/comparison.svg.template`)167168For side-by-side evaluation: versus layouts, feature matrices, pros/cons, before/after.169170Key rules:171- Equal visual weight to both sides (unless the infographic is designed to favor one).172- Clear visual separator (vertical line, color difference, or whitespace).173- Consistent structure: same categories in the same order on both sides.174- Use icons or color coding to indicate positive/negative/neutral.175176### Stat Card (`templates/stat-card.svg.template`)177178For single key metrics: hero numbers, KPI highlights, social media sharing.179180Key rules:181- The number is the largest element by far.182- Context below the number in smaller text.183- Optional: trend indicator (arrow up/down), comparison ("up from 32% last quarter").184- Keep the card focused: one stat, one context line, one optional trend indicator.185186---187188## Brand Logo Embedding189190If `brand/logo/logo-mark.svg` exists, embed it in the infographic:191192```svg193<g transform="translate(1120, 750)" opacity="0.5">194 <!-- Contents of logo-mark.svg pasted here -->195</g>196```197198Placement: bottom-right corner by default. Adjust position based on layout.199Size: approximately 5-8% of the infographic width.200Opacity: 40-60% so it does not compete with the data.201202---203204## Output Formats205206| Format | When to Use | How |207|---|---|---|208| `.svg` file | Web embed, presentation slide, further editing | Direct SVG output |209| Inline SVG in HTML | Blog post embed, email | SVG wrapped in `<div>` with responsive CSS |210| HTML + CSS | Interactive infographic | HTML structure with CSS styling and optional JS |211212For social media, suggest the user render the SVG to PNG at 2x resolution using a tool like `svgexport` or a browser screenshot.213214---215216## Error Handling217218- If the user provides no data, ask for it. Do not generate placeholder infographics with fake numbers.219- If the data has too many categories for the chosen format (e.g., 15 items in a pie chart), recommend a different format or suggest grouping.220- If brand/ is missing, proceed with a clean minimal style and note that running content-setup would improve consistency.221- If the data tells no clear story, push back: "What is the one thing you want the viewer to take away from this?"