songbook-md

Songbook · an open-source agent skill

Paste your lyrics and chords. Get a songbook you can play from.

Give your coding agent a song in ChordPro, or just paste the words with chords in brackets. It checks the song, shows it in three looks, and renders a one-page chord sheet, a whole songbook, or a phone view with transpose buttons.

npx skills add isatimur/songbook-md

Blue Tram After Midnight in the realbook theme: a hand-lettered jazz chart with chord diagrams, boxed section letters and bar lines Harbour Lights at Evening in the campfire theme: hand-written lyrics on a dot grid with red chords above the words and guitar diagrams The phone view in the worship theme: white lyrics and blue chords on a dark screen, with scroll and text size buttons at the bottom

One song file in. A sheet that fits one page, a songbook with page numbers and an index, and a phone view you can play from, out.

  • Chords on the right syllable. Each chord sits over the letter it belongs to, in any font, even in the middle of a word.
  • Any key, spelled right. Move a song to any of the 12 keys. Bb stays Bb, not A#, and D/F# becomes F/A.
  • Capo and Nashville numbers. Play in E with a capo on 2, or read the song as 1, 4, 5 and 6m.
  • Guitar and ukulele diagrams. Common shapes from a built-in table. A rare chord gets a plain “no diagram” box, never a guess.

How it works

  1. 1 Paste the song

    Words with chords in square brackets, in the ChordPro format most chord sites use. The agent asks for the title and key if they are missing.

    {title: Amazing Grace}
    {key: G}
    A[G]mazing grace, how [G7]sweet
    the [C]sound
  2. 2 Pick a look

    The skill renders your song in three themes side by side. You pick one. Want it in D, or with a capo? Say so.

    preview song.cho
    render song.cho --key D
  3. 3 Print it or play it

    Open the HTML and print it on A4 or US Letter. Or open the phone view on the music stand and let it scroll.

    render porch-songbook.json
    web song.cho

Five themes, five ways to read a song

The same song, Harbour Lights at Evening, in every theme. Each one has its own type, its own chord style and its own songbook cover.

A whole songbook, numbered and indexed

List your songs in one small file. You get a cover, a contents page, one song per page with page numbers, and an index of titles and first lines.

  • Songbook cover in the campfire theme: a doodled fire above the title Porch Songs
  • Songbook cover in the realbook theme: a framed page with a hand-lettered title over a staff
  • Songbook cover in the worship theme: a dark blue page with a soft light and a bold white title
  • Songbook cover in the zine theme: a black title block, staples and song titles on paper strips
  • Songbook cover in the minimal theme: a vermilion circle and a light title with a numbered song list
The contents page: seven songs with their page numbers The index page: titles and first lines in alphabetical order, grouped by letter

Play from your phone

One HTML file, no app. Put it on the music stand and play.

  • Transpose buttons on every song, spelled for the new key.
  • Auto-scroll with a speed you set. The screen stays awake.
  • Bigger or smaller text with one tap.
  • The worship theme turns into a dark screen for low light.

Open the phone view

The phone view in the campfire theme: transpose buttons under the title and guitar diagrams above the song The phone view in the worship theme: a dark screen with the chorus in a tinted box

Install

Claude Code plugin

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

Cursor, Codex and other agents

With skills.sh:

npx skills add isatimur/songbook-md

Command line

Node 20 or newer. No install, no dependencies.

npx github:isatimur/songbook-md render song.cho --theme campfire

Then ask your agent: Make a chord sheet for this song, in D with a capo on 2, and add guitar diagrams.

Example songs

Traditional songs in the public domain, and two new songs written for this project by fictional bands. Open any of them in any theme.

SongWhere it is fromOpen in
Amazing GraceHymn, John Newton, 1779
Scarborough FairEnglish ballad, as printed in 1891
ShenandoahAmerican river song, capo 2
Indo Eu, Indo EuPortuguese folk song, Beira
Arroz con lecheSpanish children’s song, as song JSON
Harbour Lights at EveningNew song, The Lantern Street Band (fictional)
Blue Tram After MidnightNew jazz ballad, The Rua Nova Quartet (fictional)
Indo Eu, Indo Eu, a Portuguese folk song, in the zine theme with a verse and a chorus labelled Verso and Refrão Arroz con leche, a Spanish children’s song, in the campfire theme with the sections Estrofa and Estribillo Amazing Grace in the worship theme with ukulele chord diagrams above four verses