whitepaper-md

Open-source agent skill · zero-dependency CLI

Turn Markdown and a little JSON into a whitepaper that looks published.

Write the text in Markdown. Add a small JSON file for the title, authors and sources. Get a cover, a contents page with real page numbers, charts, call-outs, notes and a running footer, ready to print or save as PDF.

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

A whitepaper cover in the lab theme: a near-black page with a measurement grid, glowing rings and a lime rule under the title A whitepaper cover in the editorial theme: a vermilion page, a huge black serif title and a black band for the authors A whitepaper cover in the crisp theme: a bold navy title on white beside a navy block with a cobalt square

The ideap. 01

A long report should look like it was set by a publisher, even when one person wrote it on a Tuesday.

  • Plain files in.A Markdown file and a JSON file. Both stay yours.
  • One file out.A self-contained HTML file. Open it, print it or save it as PDF.
  • Numbers you can trust.Every page number in the contents is checked against the real print layout.
  • No dependencies.One Node script. Playwright is optional, for PDF export.

How it worksp. 02

  1. Write

    Put the text in Markdown. Use # for chapters and the engine numbers them. Add tables, charts, call-outs, notes and citations.

    ## Where we start Table: Portfolio {#tbl-portfolio}
  2. Describe

    A small JSON file holds the title, authors, abstract, key figures and sources. Your agent writes it with you and checks it.

    { "title": "Rooftops Together", "body": "paper.md" }
  3. Render

    Pick a theme from a side-by-side preview. The engine lays out every page, fills in the contents and writes one file.

    npx github:isatimur/whitepaper-md render paper.json

“Turn my notes on the cycling study into a policy brief with a chart and a reference list.”

What a published report hasp. 03

  • Cover page1
  • Abstract and key figures2
  • Contents with page numbers3
  • Numbered headings4
  • Charts from a few lines of JSON5
  • Tables that split cleanly6
  • Pull quotes and call-outs7
  • Notes, citations and references8
  • Running header, “Page x of y”9
  • A4 and US Letter10
  • Any script, left to right or right to left11
  • Escaped text, no raw HTML12

The list above is only a joke about contents pages. The real one is generated: the print check renders every example in every theme on A4 and Letter, prints each to PDF, and compares every page number in the contents with where the heading lands.

Five themesp. 04

Each theme has its own type, cover and layout. Every picture is a real page from the engine. Open one to read the whole paper.

Crisp theme page: a huge cobalt chapter numeral, a navy table and a callout on white
crispConsulting report. Navy, cobalt and a heavy grotesque.
Journal theme page: justified serif text, small-caps headings and a booktabs table
journalAcademic paper. Justified serif, small caps, one oxblood accent.
Editorial theme page: a display serif headline, a red drop cap and a ruled table
editorialThink-tank paper. Display serif, drop caps, huge pull quotes.
Lab theme page: a grotesque headline, mono labels and a black pull quote with a lime edge
labTechnical report. Dark cover, mono labels, lime accent.
Civic theme page: a plain legible sans, a green rule above each heading and a bordered call-out
civicGovernment plain. One legible family, green rules, a yellow bar.

Installp. 06

Claude Code plugin

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

Any agent, via skills.sh

npx skills add isatimur/whitepaper-md

Command line

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

Node 20 or newer. Nothing else to install.