Open-source agent skill
Turn a short JSON file into folded brochures that print and fold right.
Tell your coding agent about your business. It writes a small JSON file and renders two print-ready pages: the outside and the inside. Print them back to back, fold, and you have a brochure.
npx github:isatimur/brochure-md render brochure.json
Made for the printer
- Two pages, one sheet.Outside and inside, imposed so the panels land behind each other. Flip on the short edge.
- Folds that fit.The folded-in panel is 2 mm narrower, so the brochure closes flat. Letter fold, roll fold or bi-fold.
- A4 and US Letter.Both landscape. The text shrinks a little before it ever runs out of room.
- No dependencies.One Node script. Text is escaped, and Arabic or Hebrew mirrors both pages.
How it works
Three steps. You do the first. Your agent does the rest.
-
Say what you need
Describe the business, the offer and how to reach you. The agent asks for what is missing and never invents a fact.
“Make a tri-fold for our guesthouse. Six rooms, breakfast at eight, book by phone.”
-
Pick a look and check the flat preview
The agent shows three themes side by side. Then it opens a flat preview with the panels in reading order.
-
Print and fold
Print both pages double-sided, margins none, flip on the short edge. Fold the flap in first, then the cover over it.
Why the flap is narrower
When a panel folds in, it needs a little room. Make every panel the same width and the edge of the flap pokes out, or the cover will not close. The engine takes the room from the folded-in panel.
Optional fold marks print as small ticks at the top and bottom edge, so you can crease in the right place.
Five themes
Each theme has its own type, colour, shapes and layout. These are front covers, straight from the engine.
voyageVintage travel poster. Didone titles, sand paper, a vermilion stamp.
calmClinic calm. Light serif, soft shapes, teal and one peach accent.
studioArchitecture mono. Grotesk titles, mono text, hairlines, black and white.
festivalBold colour. Condensed capitals, hard shadows, tilted stickers.
groveWellness organic. Soft italic serif, arched windows, moss and fig.
Five example brochures
Every business here is invented. Open one to see the flat preview and the two printed pages. Each example also renders in all five themes.
-
Gull Quay Guesthouse
- Tri-fold
- Letter fold
- A4
- Fold marks on
A harbour bed and breakfast. Three sections, a booking panel, a sketch map and opening hours.
-
Brindle Lane Dental
- Tri-fold
- Roll fold
- US Letter
A family clinic. Short, reassuring sections and a clear way to book.
-
Tolland Studio
- Bi-fold
- A4
- Local SVG image
A small architecture firm. A bi-fold with its own line drawing, loaded from a file next to the JSON.
-
Tuckermarsh Street Festival
- Tri-fold
- Letter fold
- A4
A one-day community festival. Music, food, families, and a call for volunteers.
-
Hollow Oak Retreat
- Tri-fold
- Letter fold
- US Letter
A three-day yoga retreat in a wood. Arched pictures, leaf bullets and a quiet call to action.
Install
Claude Code plugin
/plugin marketplace add isatimur/brochure-md
/plugin install brochure-md@brochure-md
Any agent, via skills.sh
npx skills add isatimur/brochure-md
Command line
npx github:isatimur/brochure-md render brochure.json --out brochure.html
Node 20 or newer. Nothing else to install. PDF export works when Playwright is already on your machine.