Use the skill: song-maker. Run `npx -y @neta-art/neta-search-cli@latest skills use @kingdomrushdev/song-maker --via site` and follow what it prints. Read its complete output, redirecting it to a temporary file first if necessary, and resolve relative paths from the skill directory it prints.
Turn an idea into an original song with sung vocals, timed lyrics and a square cover image.
Tell it who or what the song is about and which language to sing in. It designs the lyrics first, then writes the melody and chords.
You get a finished song, 30 seconds by default or any length you ask for, in Chinese, English or Japanese.
Lyrics are concrete, with real objects, numbers and moments, and the checks reject stock clichés. Words are fitted note by note.
Everything comes as one bundle: audio, lyrics that follow along with the music, the written score, design notes and a cover image.
Works best with a clear subject, such as a person, an occasion or a mood. You can also ask for lyrics only.
SKILL.md
# song-maker — design the lyrics, write the melody, produce the song
One project directory, one `song_project.json`; every script is re-runnable and prints the next command. Paid calls
(composition, transcription) pass one budget gate. The result is a **song package** (`references/song-package.md`).
> **Language:** reply in the language the user wrote the request in — not the language of the song, of this
> skill or of any notes around the request. Rule 0 below has the details.
>
> **Work one step at a time:** run one line of the quick path, read only the reference that step names, check
> the output, then go on. Do not read every reference first or write several files in one message.
>
> **Use the scripts, not raw `cohub generate`.** A song generated from lyrics alone ignores the requested length
> and has no score, so the lyrics cannot be timed for subtitles; the score path below controls length and timing.
## Inputs
| Input | Required | Counts as given when |
|---|---|---|
| What the song is for (person, occasion, theme) | yes | the request names who or what it is about |
| Lyric language | yes | stated, or clear from the singer / the request (default: the user's language) |
| Budget for paid generation | yes, to generate | a dollar amount, or an explicit go-ahead such as "generate it, don't ask" |
| Length | no | a length the user states (seconds, minutes, "full song") - use exactly that; otherwise **30 s** |
| Genre, mood, tempo, voice | no | stated; otherwise choose from the theme and say what you chose |
| Existing lyrics or a recording | no | a file is attached or the text is pasted |
If a required item is missing, ask once - every missing item in one message - before writing anything, then stop.
When all required items are given, build to delivery without asking; never ask again for something already given.
## Quick path (copy, replace `DIR` and `<...>`)
```bash
S=<this skill>/scripts; T=<this skill>/templates
python3 $S/doctor.py # first: checks python, numpy, ffmpeg, cohub
python3 $S/song_init.py DIR --title "<title>" --lang <zh|en|ja> --budget 1 --seconds 30 # 0 brief (30 s unless the user gave a length)
cp $T/lyric-design.md DIR/plan/lyric-design.md # 1 fill EVERY row in the user's language (references/lyric-design.md)
python3 $S/scorekit.py draft DIR/plan/score.py --form "verse:7,7 chorus:7,7,7,7" --key D --bpm 128
# (that form is ~30 s; a 90 s song: "verse:10,10,11,7 pre:8,11 chorus:6,10,6,10" at 140 BPM)
# 2 melody: syllables per lyric line, per section (from the design). Writes a complete grooving score
# (song2's own phrasing, colour chords, singable line) and prints its length against the target - change
# lines, sections or BPM until it says OK.
# Then edit DIR/plan/score.py (make the chorus hook memorable) and rebuild after every edit:
python3 $S/scorekit.py DIR/plan/score.py # -> song.abc, vocal.abc, lyrics.skeleton.txt + groove report
cp DIR/plan/lyrics.skeleton.txt DIR/plan/lyrics.txt # 3 replace every … line with ONE lyric line of exactly the
# syllables shown above it (zh: characters, ja: morae, en: syllables); shape: H highest / L long note -> open
# vowels there; ~ = melisma -> hold the syllable before it with `_`
python3 $S/lyric_lint.py --abc DIR/plan/vocal.abc --lyrics DIR/plan/lyrics.txt --allow <motif1,motif2> # until E 0
python3 $S/song_compose.py DIR new a --style "<genre, mood, instruments, Mandarin female vocal>" \
--lyrics-file DIR/plan/lyrics.txt --abc-file DIR/plan/song.abc --vocal-abc-file DIR/plan/vocal.abc \
--abc-mode full --seed 1122 --return-abc --allow <motif1,motif2> # 4 two seeds
python3 $S/song_compose.py DIR new b <same options> --seed 425
python3 $S/song_jobs.py DIR plan && python3 $S/song_jobs.py DIR submit --yes && python3 $S/song_jobs.py DIR poll --wait 600
# (poll without --wait checks once; --wait N keeps polling up to N seconds)
python3 $S/song_lyrics.py DIR asr --take a --yes; python3 $S/song_lyrics.py DIR asr --take b --yes # 5 compare takes
# (the take goes to the transcription model by an unlisted link - that is not publishing; always do this step)
python3 $S/song_compose.py DIR use b 1 # the take whose transcript has every line; BPM/sections from the score
python3 $S/song_lyrics.py DIR fromabc DIR/plan/vocal.abc DIR/plan/lyrics.txt --asr DIR/plan/asr_b.json # 6 timing
# --asr (always pass it, with the transcript of the take you chose) finds where the score starts, and where song2
# dropped or added whole bars (shorter intro/interlude); it moves the lines and fixes first_downbeat + sections.
# Re-running fromabc rebuilds the timeline; manual `shift` only after the last fromabc.
python3 $S/song_lyrics.py DIR check
python3 $S/song_compose.py DIR trim # only if `use` reported trailing silence
python3 $S/song_cover.py DIR --scene "<the picture, in English, from the lyric design>" --yes # 7 1:1 cover
# the only text on it is the song title in the title's own language (--no-text: none); look at the result
python3 $S/song_export.py DIR --zip # -> DIR/out/<name>/ and DIR/out/<name>.zip
python3 $S/verify_package.py DIR # last check before handover: 0 problems
```
Model answer: `examples/snow-globe/` (design table, score.py, lyrics fitted to it, measured results) - read it before
writing your own. Rhythm, harmony and style-prompt recipes: `references/groove.md`. (`examples/wanxiang/` is an
older, plain melody; keep it as a lyric-design example only.) Edit `plan/lyrics.txt` or the score freely after `new`: jobs that were not yet
submitted pick the change up at `lint` / `plan` / `submit`. Existing recording
instead of a generated song: `song_init.py DIR --audio x.mp3 --bpm N`, then `song_lyrics.py DIR import x.lrc`
(or `asr --yes`), `song_compose.py DIR grid --downbeat S --sections intro:4,verse:8,...`, then export.
## When a check fails
| Message | Fix |
|---|---|
| `lyric #N has X syllables, melody requires Y` | Read the `counted:` line under it. Change words; hold a syllable over two notes with `word_`; English: force a count with `fire(1)` / `every(2)`; Japanese: add kana readings `未来(みらい)`. Or add/remove an `x` in that line's grid in score.py (and a note name) and rebuild. Never pad with filler words. |
| `Lyrics have N lines, melody has M phrases` | One lyric line per `…` in lyrics.skeleton.txt (= per `/` in the grids) |
| scorekit `bar N has X steps` | Every bar is 16 characters in 4/4 (x, o, -, .); count again; `/` and `|` take no time |
| scorekit `the rhythm has N notes ... names` | One note name per `x` and `o`; the message lists the counts per line |
| scorekit / lint `mechanical` (E) | The rhythm is square (`references/groove.md`): use `draft`/`lines()` rhythms, start lines with pickups, syncopate, mix note lengths, leave rests. `FEEL = 'plain'` / `new --plain` only for a deliberately plain song |
| `note N of this line is a melisma` | The skeleton shape has `~` there: hold the syllable before it (`届け_`) |
| `transcript sentences that did not place a line` | Read each listed sentence; if you can tell which lyric line it STARTS with (the transcript may write 3つ for みっつ, kanji for kana), re-run the same `fromabc ... --anchor LINE=SECONDS` (repeatable). Lines after it move with it, snapped to whole bars |
| key in song.json misses a key change | `use` reads only `K:`; describe it: `song_compose.py DIR grid --key "D major, final chorus E major"` |
| `song2: ...` from abc_lint | Only for hand-written ABC: let scorekit write the score instead |
| `stock buzzwords ...` (E) | Replace the clichés with concrete things from the brief; keep deliberate motif words with `--allow` |
| sections / BPM look wrong after `use` | `use` takes BPM and sections from the score and the downbeat from the audio; correct with `song_compose.py DIR grid --bpm N --downbeat S --sections ...` (no librosa needed) |
| budget refusal | Ask the user before raising `budget_usd`; never resubmit after a moderation rejection without consent |
## Deliver
1. `python3 $S/song_cover.py DIR --scene "..." --yes` -> `DIR/song/cover.png`, a square 1:1 cover. If it has text, the
text is only the song title, spelled exactly, in the title's language (not translated into the user's language);
look at it and remake it with `--force` if the title is misspelled or other text appears.
`python3 $S/song_export.py DIR --zip` -> `DIR/out/<name>/` (song.json, the audio, cover.png, lyrics.json,
lyrics.lrc, lyrics.txt, score/, lyric-design.md) and `DIR/out/<name>.zip` - the song package (`references/song-package.md`).
Then `python3 $S/verify_package.py DIR` must print 0 problems (package, audio, timed lyrics, lyric check, groove,
cover, length vs target, budget; report in `DIR/out/verify-report.json`) - fix what it names and export again.
2. Report in the user's language: length, BPM, which take and why (transcript completeness), the `lyric_lint.py`
result (E 0, any W kept on purpose), the groove report, cost (`song_jobs.py DIR status`) and what was not
verified (nobody listened).
3. Hand over with an interaction-components file card (required - the run is not delivered until it is done): the
zip, the audio and the cover, paths from the output of `song_export.py`; without that skill, give the file paths.
Lyrics only (the user asked for lyrics, not a song): deliver the design table and the lyrics (in chat and as a file),
report the `lyric_lint.py --free` result (E count, and each W you kept on purpose; `verify_package.py --lyrics FILE`
records it) and say that no melody and no audio were produced; nothing is generated and no budget is needed.
## Out of scope
- Changing world or space settings or config (visibility, members, slugs), WORLD.md or the world's visual style.
- Deleting or overwriting files that existed before the run, other skills' folders, or anything outside the project
directory; publishing apps or permanent public links unless the user asks.
- Paid calls beyond `budget_usd`; resubmitting after a moderation rejection without the user's consent.
- Lyrics or melodies of existing songs, imitation of a named artist, voice cloning of a real person.
- Making the music video (that is a separate step that takes the song package).
## Rules
0. **Language: the user's language in every message, above all the final handover; translate script output.** Reply in the language the user writes in, and write the lyrics, the design
table and all notes in it unless the user asks for another (`song_init.py --lang zh|en|ja|…`). Name the vocal
language in the style prompt (`Mandarin female vocal`, `English male vocal`). Commands, file names and JSON keys
stay English. Japanese: write natural kanji + kana and add readings to kanji for the slot count — `未来(みらい)`; they are
stripped before sending and from the subtitles.
1. **Design before writing**: no lyric line before the design table has a concept, key phrase, motif chain, hook and reversal.
2. **Lyrics fit the melody slot by slot** (draft either first; the final check is `lyric_lint.py` E = 0); open vowels
on long and highest notes; no function words on long notes, strong beats or line ends; declare deliberate motif
words with `--allow` instead of deleting them.
3. **Every deliverable with lyrics passes `lyric_lint.py` (E = 0) before delivery** - also lyrics-only work and
lyric edits. With a score: `python3 $S/lyric_lint.py --abc DIR/plan/vocal.abc --lyrics DIR/plan/lyrics.txt
--allow <motifs>`. Lyrics only, or no melody built yet: `python3 $S/lyric_lint.py --free --lyrics <file>
--allow <motifs>`. Revise until E = 0 and review every W; reading the file back is not a check.
4. **Designed lyrics are concrete** (objects, numbers, dates, actions), change rhyme per section, repeat chorus lines
with variation, and end on an image — see `references/lyric-design.md` and `anti-ai-lyrics.md`.
5. **The melody must groove** - song2 sings the score as written, so a square score gives a stiff song. Write it
with `scorekit.py` (never ABC by hand): pickups and late starts, syncopation, mixed note lengths, a rest after
every line, 2-4 bars per line at 130+ BPM, colour chords (m7, maj7, sus4 -> resolution, slash bass), and a
style prompt that names groove, instruments and the energy curve (`references/groove.md`). Fix every groove E.
6. **song2 dialect**: Vocal + Ins voices with chord symbols and `abc_mode=full` (scorekit writes it); a vocal-only
score loses its instrumental bars. Generate two seeds and compare transcripts.
7. **You cannot hear audio.** Report what was verified (duration, BPM, transcript completeness) and ask the user to listen.
8. **Length and cover**: 30 s unless the user asks for another length (then exactly theirs); every song gets a 1:1
cover whose only possible text is the title, in the title's language.
9. **Money**: set `budget_usd` (two takes $0.30 + transcription ~$0.10 + cover ~$0.07); check `song_jobs.py plan`; never resubmit after a moderation rejection without consent.
10. **Rights**: original lyrics and melodies only; style prompts describe sound, not "in the style of <artist>".
## Gotchas
- A lyrics-only run once delivered without running any script; its only "check" was reading the file back. Lyrics
are not done until `lyric_lint.py` reports E = 0 (`--free` when there is no melody) - rule 3.
- A square, on-the-beat score makes song2 sing stiffly; `scorekit.py` blocks it as mechanical - rule 5.
## Files
| Path | Purpose |
|---|---|
| `scripts/doctor.py` | Environment check with exact fixes (run first) |
| `scripts/song_init.py` | Create a project (optionally from an existing recording) |
| `scripts/scorekit.py` | The melody tool: `draft` (form or lyrics -> complete grooving score.py), build (score.py -> song.abc, vocal.abc, lyrics skeleton, groove report), `lines` / `fit` (rhythm ideas), `check` (groove of any score) |
| `scripts/abc_lint.py` | ABC validation: bar sums, voices, ties, repeats, `--song2` dialect, `--dump-notes` |
| `scripts/abc_slots.py` | Melody slots per phrase (what the lyrics must fill); `--skeleton` writes a lyrics.txt to fill in |
| `scripts/lyric_lint.py` | Lyric fit (syllables per phrase, long-note vowels, function words) and cliché/repetition/rhyme check; `--free` without a melody |
| `scripts/abc_to_musicxml.py` | ABC → MusicXML / MIDI (needs music21) |
| `scripts/song_compose.py` | Composition jobs `new`, `lint`, `list`; choose a take `use`; bar grid `map` |
| `scripts/song_jobs.py` | Paid jobs: `plan`, `submit`, `poll`, `status` |
| `scripts/song_lyrics.py` | Lyric timeline: `fromabc`, `asr`, `import`, `shift`, `check`, `show` |
| `scripts/audio_map.py` | BPM, downbeat, sections, energy, breaks (needs librosa) |
| `scripts/beat_grid.py` | BPM + first downbeat with numpy only (used automatically when librosa is missing) |
| `scripts/song_cover.py` | Square 1:1 cover image (title text in the title's language, or `--no-text`; budget-gated, model fallback) |
| `scripts/song_export.py` | Write the song package (`--zip`) |
| `scripts/verify_package.py` | Last check before handover (package, audio, timed lyrics, lyric check, groove, budget; `--lyrics` for lyrics only) -> verify-report.json |
| `references/workflow.md` | Every step in detail, with commands |
| `references/groove.md` | Why scores sound stiff, the rhythm grid, pickups, syncopation, harmony, style prompt |
| `references/lyric-design.md` | The design table: concept, key phrase, motif chain, hook, reversal |
| `references/songwriting.md` | Melody with scorekit, lyrics by slot, generation, choosing and timing |
| `references/song2-format.md` | The ABC dialect song2 accepts, note values, chords, observed behaviour |
| `references/abc-syntax.md` | ABC notation reference (for reading scores) |
| `references/prosody.md` | Fitting words to notes: Chinese tones and rhymes, English stress, Japanese morae |
| `references/anti-ai-lyrics.md` | Stock phrases and structures that make lyrics sound generated |
| `references/song-package.md` | The song package format handed to video tools |
| `references/cost-safety.md` | Prices, the budget gate, moderation rejections, what attaching files means |
| `references/sources.md` | Where the methods and facts come from |
| `templates/` | `lyric-design.md`, `score.py` (annotated scorekit score) |
| `examples/snow-globe/` | Model answer: Japanese Christmas song made with scorekit and song2 (design, score.py, lyrics, gloss, measured results) |
| `examples/wanxiang/` | An earlier finished song (Mandarin): design table, lyrics with gloss; its melody is plain (pre-scorekit) |
| `data/` | Cliché lexicon (zh / en / ja), pinyin finals, English syllable dictionary (CMUdict-derived), song2's own phrase rhythms (`song2_rhythms.json`) |
| `tests/run_tests.py` | Offline regression tests (paid calls stubbed) |
## Requirements
Python 3.10+, numpy, ffmpeg/ffprobe, the `cohub` CLI for paid calls. Optional: librosa + soundfile (section guesses
in `audio_map.py`; without them `--analyze` still finds tempo and downbeat), music21 (`abc_to_musicxml.py`).
If the system Python refuses `pip install` (PEP 668): `python3 -m venv ~/.venvs/audio && PIP_USER=0
~/.venvs/audio/bin/pip install librosa soundfile`, then `export SONG_PYTHON=~/.venvs/audio/bin/python`.