bracket-md

Open-source agent skill

List the players and get a tournament bracket ready to print or fill in.

Give your coding agent the names. It seeds them, adds the byes, draws the lines, moves the winners along and leaves a slot for the champion.

npx github:isatimur/bracket-md render cup.yaml --out cup.html

A 32-entrant two-sided bracket in the neon theme, with Korean player tags, the final in the middle and a champion slot above it An eight-player chess knockout in the club theme: ivory paper, a chequerboard border and the champion named A sixteen-entry cookie bake-off bracket in the kids theme, with round pills and sprinkles

One list of names. Four kinds of sheet.

  • Single elimination + byes
  • Double elimination
  • Round robin table
  • Blank, to fill in
How it works

Three steps. No bracket maths.

The agent writes a small YAML file. The engine does the seeding, the byes and the results. You print the page.

Say who plays

Paste the names, or just say how many. Add seeds and results when you have them.

event: Fernhill Chess Club Autumn Knockout
format: single
entrants:
  - { name: Ines Marlow, seed: 1 }
  - { name: Tobias Wren, seed: 2 }
  # ...
results:
  - { players: [Ines Marlow, Rupert Vale], score: 1-0 }

Check it

The check finds a result that names a game which does not exist, and says how to fix it.

$ bracket-md validate cup.yaml
ok: cup.yaml is valid
  (8 entrants, 7 games, 7 played)

$ bracket-md matches cup.yaml
  1  Quarterfinals  Ines Marlow v Rupert Vale

Print it or fill it in

Pick a theme, then print on A4, Letter or A3. Add --blank for an empty copy.

$ bracket-md render cup.yaml \
    --theme club
wrote cup.html: theme club,
  paper A4

$ bracket-md render cup.yaml --blank
Five themes

Pick the look that fits the room.

Each theme has its own type, shapes and colour. The agent shows you all five side by side before you choose.

Arena theme: a midnight-blue sports broadcast bracket with slanted condensed italics and gold score tags
Arena broadcastarena Midnight blue, slanted type, gold score bugs.
Club theme: ivory paper, Garamond small caps and a green chequerboard border
Chess club classicclub Ivory, Garamond, a chequerboard border.
Neon theme: near-black screen with cyan and magenta light and angular type
Esports neonneon Near-black, cyan and magenta glow.
Chalk theme: a pub chalkboard in a wooden frame with hand-lettered chalk in four colours
Pub quiz chalkboardchalk Slate, wooden frame, chalk lettering.
Bake theme: butter-cream paper with sprinkles, rounded sticker boxes and coloured round pills
Kids' bake-offbake Sprinkles, round badges, sticker boxes.
Install

Add it to your agent.

Claude Code plugin

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

Any agent, via skills.sh

npx skills add isatimur/bracket-md

Command line

npx github:isatimur/bracket-md render cup.yaml --out cup.html

Node 20 or newer. Nothing else to install. pdf export works when Playwright is present; otherwise print to PDF from the browser.