infographic-md

Open-source agent skill

Give your agent the numbers and the story.

Get an infographic for print and social media. Your agent writes a small JSON file, checks it and renders a page you can share as PNG, PDF or web.

npx skills add isatimur/infographic-md

A story-format infographic in the warm theme: a marigold header, two big numbers, an icon row, a bar chart of litter by type and a list of places A feed post in the bold theme: lime figures on a near-black grid, a line chart of daily bike trips and a two-bar comparison A US Letter page in the Swiss theme: a large black figure, horizontal bars and a comparison, with one vermilion accent

Honest by design

The charts tell the truth.

A pretty chart that misleads is worse than no chart. The engine keeps three promises, and the tests check them.

  • Zero baselines.

    Bars and columns start at zero. Their lengths stay in proportion to the numbers.

  • Never invents.

    The engine draws your numbers and does not round, estimate or fill gaps. Numbers must be JSON numbers.

  • Always a source.

    A page with numbers needs a source line, or a flag that the data is your own. Otherwise it does not validate.

Fictional loans, from the library example. Each bar is its value divided by 5,000.

How it works

Three steps, no design tool.

Tell your agent the story

Say what the numbers are, where they come from and where the page will go. The agent asks for anything missing.

Make a feed post: 46,210 books
borrowed in 2025, loans by month.
Source: our annual report.

It writes and checks the JSON

Big numbers, charts, icon rows and timelines go into one small file. The checker lists every problem.

{ "type": "bar",
  "title": "Loans by branch",
  "data": [
    { "label": "Main",
      "value": 31200 } ] }

You pick a theme and share

See three themes side by side. Then export a PNG for social media, a PDF for print, or publish the web page.

infographic-md png page.html
  --out post.png --scale 2

Five themes

Each one has its own voice.

Every image here is real output from the engine, with fictional data. Open one to see the page itself.

Editorial theme: a serif headline, a red tag on the top edge, three blue figures, a column chart, a donut and a timeline
editorialNewsroom data desk. Serif headline, red tag, heavy rules.
Warm theme: a marigold header with round shapes, rounded figure cards and round bars
warmNGO annual report. Round shapes, friendly colour.
Bold theme: capital headline, lime monospace figures and a line chart on a faint grid
boldTech poster. Near-black, acid lime, monospace figures.
Isotype theme: a framed sheet, capital headline and rows of blue icons filled in for five, three and two of ten
isotypeRetro picture statistics. Flat red, blue and yellow.
Swiss theme: tight black headline flush left, hairline rules and a vermilion accent
swissMinimal grid. One accent, hairlines, white space.

Every size

One layout, seven formats.

The same JSON fits a feed post, a story, a long scroll post, a poster or a web page. The text shrinks to fit and never spills off the page.

  • feed1080 x 1350
  • story1080 x 1920
  • long1080 x 3000
  • a4210 x 297 mm
  • a3297 x 420 mm
  • letter8.5 x 11 in
  • webresponsive, with data tables

Examples

Six pages, all fictional.

Invented towns, trusts and households. The numbers are made up and each page says so. Each one also has a web version with the text and data tables.

Install

Pick the way you work.

Claude Code plugin

/plugin marketplace add isatimur/infographic-md
/plugin install infographic-md@infographic-md

Any agent, via skills.sh

npx skills add isatimur/infographic-md

Command line

npx github:isatimur/infographic-md render infographic.json --out infographic.html

Node 20 or newer. Nothing else to install. PNG and PDF export use Playwright when it is there.