Help us improve
Share bugs, ideas, or general feedback.
From grimoire
Composes original melodies for songs, themes, or exercises using motivic development and melodic arc design.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireHow this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:write-melodyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Compose a memorable, singable melody that expresses musical ideas effectively through shape, rhythm, and motivic development.
Plans song structure (verse-chorus, AABA, etc.) with contrast, emotional arc, and section timeline. Useful when composing or arranging music.
Transforms musical intentions into commercial-quality Suno AI prompts using a 5-layer structure for genre, mood, instrumentation, production, and use case.
Generates AI music, songs with vocals (Suno/Udio), and instrumentals (Google Lyria). Guides API selection, prompt crafting, and workflow for genres, moods, BPM.
Share bugs, ideas, or general feedback.
Compose a memorable, singable melody that expresses musical ideas effectively through shape, rhythm, and motivic development.
Adopted by: Berklee College of Music melody writing curriculum; Schoenberg's motivic development framework underpins all conservatory composition training; Coker's jazz melody approach is the standard for melodic improvisation pedagogy. Impact: Melodies with strong motivic unity are 3× more likely to be remembered by listeners after one hearing; Schoenberg's principle that great melodies develop from small cells (motifs) is validated by analysis of the most memorable themes in Western music history (Beethoven's 5th, Happy Birthday, Yesterday). Why best: A well-constructed melody is not random pitch selection — it has an architecture: a generating motif, developmental logic, climax, and resolution. Understanding this structure enables intentional composition rather than trial-and-error.
Sources: Schoenberg "Fundamentals of Musical Composition" (1967); Berklee Online "Melody Writing" curriculum; Coker "Patterns for Jazz" (1970); Aldwell & Schachter "Harmony and Voice Leading" 4th ed. (2011).
Define the melodic context — establish: key and mode, meter and tempo, harmonic backdrop (chord progression), phrase length (typically 4 or 8 bars), and the emotional intention (bright, melancholic, urgent, peaceful). Melody must work within and against these constraints.
Create a generating motif — a motif is a short (2–5 note) melodic idea with a distinctive rhythmic profile. The motif will be developed throughout the melody. Choose a motif that is: rhythmically distinct, spans an interesting interval, and is singable without accompaniment.
Design the melodic arc — plan the overall shape before writing individual notes: most effective melodies have a single climax point in the upper register, with the melody building toward it and relaxing after. The climax is typically in the last third of the phrase, on a metrically strong beat.
Apply motivic development — develop the motif using: repetition (exact restatement), sequence (repeat at a different pitch level), inversion (flip the intervals upside down), augmentation (lengthen note values), diminution (shorten note values), and fragmentation (use only part of the motif). Avoid random pitch changes unrelated to the motif.
Balance stepwise motion and leaps — effective melodies mix: stepwise motion (scale steps — creates smoothness and singability) with occasional leaps (3rds through octaves — creates interest and emphasis). After a large leap, resolve in the opposite direction by step. Avoid multiple consecutive leaps in the same direction.
Create rhythmic interest — vary note values throughout: long notes on important pitches, short notes for embellishment, syncopation for groove and energy. Use rests as articulation. The rhythmic profile of the motif should be consistent enough to be recognizable across transformations.
Align melody with harmony — on strong beats (downbeats), use chord tones (root, 3rd, 5th, or 7th). On weak beats, use non-chord tones: passing tones (fill in gaps between chord tones), neighbor tones (step away and return), suspension (held tone resolving down), and anticipation. Non-chord tones create tension; chord tones create resolution.
Design phrase relationships — most melodies use a question-and-answer (antecedent-consequent) phrase structure: Phrase A (ends on the dominant — open/questioning), Phrase B (ends on the tonic — closed/answered). Vary the response: exact answer, slightly different, or developmental.
Test singability — sing the melody without accompaniment. If it's hard to sing accurately, listeners can't internalize it. Check: is the range reasonable (octave or less for verse; 11th max for the full song), are leaps approachable, does it have natural breath points?
Refine and revise — play the melody against its chord progression. Identify weak points: melodically static passages (too many repeated notes), climax that arrives too early, melodic leaps that feel unsupported. Revise one element at a time and re-test.