comic-md

Open-source agent skill

Write a comic script in Markdown and get lettered pages with panels and balloons.

Describe each panel in plain lines. Comic MD draws the page, sets the balloons with tails that point at the speaker, and keeps every word inside its panel.

npx github:isatimur/comic-md render story.md

A school safety comic page in the bold cartoon theme: two kids and a robot at a zebra crossing, with captions and speech balloons A one-page science fiction comic in the golden age theme: halftone dots, a red planet, a robot and an alien in speech balloons A four-panel noir strip about an office cat who stole a stapler, in black and white with one red accent

You write the story. The engine does the lettering.

How it works

story.md

## Strip 1

### Panel 2
Scene: office (night)
Dana (left): Has anyone seen my stapler?
Biscuit (right, thought): It was a good stapler.

### Panel 4
Scene: office (night)
Dana (left): Biscuit. Why is there a stapler in your bed?
Biscuit (right, shout): MEOW.
SFX: KA-CHUNK
  1. Write the script

    Pages, panels, captions, dialogue, sound effects. Add a size tag such as [wide] or [tall], or a scene such as office.

  2. Pick a look

    The agent previews your first page in the themes side by side. You choose one. Manga can read right to left.

  3. Print or hand it on

    Get one HTML file that prints page by page. Export a lettering script for a human artist, or save a PDF.

Five themes

One script, five looks. Every image here is real output from the engine. Open one to see the page itself.

Golden age theme: newsprint paper, halftone dots, thick black frames and hand-lettered capitals
goldenage Newsstand comic: halftone dots and hand-lettered capitals.
Manga theme: black ink and screentone, speed lines, thin frames and round gothic lettering
manga Ink and screentone, speed lines. Reads right to left on request.
Indie webcomic theme: soft pastel colours, rounded panels and friendly handwriting
pastel Indie webcomic: soft colour, rounded panels, handwriting.
Noir theme: a black page, white frames, heavy shadow and one red accent
noir Black page, white frames, one red accent, typewriter narration.
Kids' cartoon theme: bright primary colours, fat outlines and hard shadows
cartoon Kids' bold cartoon: primaries, fat outlines, big round type.

Made for comics

  • Words stay in their panel. Every balloon, tail, caption and sound effect is placed inside a safe margin. A print check measures them in a real browser.
  • Tails find the speaker. Speech, thought, shout and whisper balloons each have their own shape. Off-panel voices point at the edge.
  • Panels are never empty. No picture yet? Each panel gets a flat-colour scene and character silhouettes. Add your own art with one line.
  • Grids and strips. One to six panels per page, with wide, tall and big spans. Or a four-panel strip.
  • Reads both ways. Left to right, or right to left for manga. Arabic, Hebrew, Japanese and Cyrillic text all work.
  • Plain text out too. The script command writes a numbered lettering script for a human letterer.

Five example comics

All characters are invented. Each example is a Markdown file in the examples folder.

Two rows of four noir panels: a cat and a worker argue about a missing stapler

The Case of the Missing Stapler

An office cat strip in noir. Four panels, two strips.

A one-page science fiction story in the golden age theme with six panels

Signal Lost on Station Nine

A science fiction one-pager in golden age style.

A cooking how-to comic page in pastel colours: a chef and a kid make dumplings step by step

Dumpling Day

A cooking how-to with a cover, in indie pastel.

A manga page that reads right to left: a night station, speed lines and a boy running

The Last Train Home

A manga page that reads right to left.

A school safety comic in the bold cartoon theme: stop, look and listen at a crossing

Zoe and Max Cross Safely

A school safety comic in the kids' cartoon theme.

Install

Claude Code plugin

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

Any agent, via skills.sh

npx skills add isatimur/comic-md

Command line

npx github:isatimur/comic-md render story.md --theme noir --out story.html

Node 20 or newer. Nothing else to install. PDF export needs Playwright; without it, print from the browser.