Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate self-contained HTML/SVG infographics from JSON data, including stat cards, bar charts, flow diagrams, and mixed dashboards. Offers 8 color palettes and built-in icons with no external dependencies. Triggered when users request data visualization, infographics, charts, or dashboards.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 48% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 3% | 0% |
Generate self-contained HTML/SVG infographics from JSON data. Four supported types:
Output is a fully self-contained HTML file (all CSS/SVG inline, no external dependencies), ready to open directly in a browser.
bashpython3 scripts/build_infographic.py config.json
Also supports reading from stdin:
bashcat config.json | python3 scripts/build_infographic.py
The script outputs a JSON status to stdout and writes the generated HTML to the path specified in the output field.
Common fields:
| Field | Type | Required | Description | |-------|------|----------|-------------| | title | string | No | Infographic title | | subtitle | string | No | Subtitle | | type | string | Yes | stats / comparison / flow / dashboard | | palette | string | No | Color palette (default: auto) | | data | object/array | Yes | Data content (format depends on type) | | output | string | No | Output file path (default: infographic.html) | | footer | string | No | Footer text |
Available values: auto (automatically chosen based on data), ocean, sunset, forest, berry, vibrant, corporate, pastel, earth
json{ "type": "stats", "data": [ { "label": "Total Revenue", "value": "$1.2M", "icon": "money", "trend": "+12.5%", "trend_dir": "up" }, { "label": "Users", "value": "45,230", "icon": "users", "trend": "+8.2%", "trend_dir": "up" } ] }
icon options: users, user, money, percent, globe, clock, check, star, target, zap, chart-bar, chart-pie, database, rocket, shield, heart, light, search, mail, settings, flag, trending-up, trending-down
trend_dir: up (green upward arrow) or down (red downward arrow)
json{ "type": "comparison", "data": { "chart_title": "Quarterly Revenue Comparison", "categories": ["Q1", "Q2", "Q3", "Q4"], "series": [ {"name": "2024", "values": [320, 410, 380, 520]}, {"name": "2025", "values": [380, 490, 450, 610]} ] } }
json{ "type": "flow", "data": [ {"step": 1, "title": "Requirements", "description": "Gather user needs", "icon": "search"}, {"step": 2, "title": "Design", "description": "Create technical plan", "icon": "light"}, {"step": 3, "title": "Development", "description": "Code and test", "icon": "settings"}, {"step": 4, "title": "Launch", "description": "Deploy to production", "icon": "rocket"} ] }
json{ "type": "dashboard", "data": { "stats": [ {"label": "DAU", "value": "12.3K", "icon": "users", "trend": "+5%", "trend_dir": "up"}, {"label": "Conversion Rate", "value": "3.8%", "icon": "target", "trend": "-0.2%", "trend_dir": "down"} ], "chart": { "chart_title": "Monthly Trend", "categories": ["Jan", "Feb", "Mar", "Apr"], "series": [{"name": "DAU", "values": [10200, 11500, 11800, 12300]}] }, "breakdown": [ {"label": "iOS", "value": 45}, {"label": "Android", "value": 38}, {"label": "Web", "value": 17} ], "flow": [ {"step": 1, "title": "Sign Up", "description": ""}, {"step": 2, "title": "Activate", "description": ""}, {"step": 3, "title": "Retain", "description": ""} ] } }
The script outputs a JSON result to stdout:
json{ "status": "success", "output": "/absolute/path/to/infographic.html", "type": "stats", "title": "My Infographic", "palette": "auto", "size_bytes": 8432 }
On error:
json{ "status": "error", "errors": ["Missing required field: data"] }
Other measured skills in the registry, with their headline benchmark lift.