Skip to main content
skill CX Codex

lyria — Claude Code skill: generate music with Google Lyria

A skill for Claude Code and Codex that builds prompts and checks music from Google Lyria through the Gemini API. Fits into OpenMontage google_music calls and audio prep for video.

AGPL-3.0 ★ 78,316 updated 2026-11-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add calesthio/OpenMontage --skill lyria -a claude-code
Open on GitHub

What lyria does

The lyria skill walks through a fixed workflow before any generation call. First the role gets confirmed: underscore, loop, instrumental cue, or full song. Then vocals, language, target duration, structure, and delivery format.\n\nPrompts follow a nine-part contract: purpose and duration, genre and era, tempo and harmony, instrumentation, sectioned structure, dynamics tied to edit times, vocal policy, mix and ending, exclusions. Instrumental-only output has a ready-made block that bans vocals, choir, humming, and spoken samples. Custom lyrics go into a separate Lyrics: block with section labels, and performance direction sits above it.\n\nDuration is treated as untrusted until probed. The OpenMontage adapter bounds requests to 5–184 seconds, but its duration_seconds field is the request, not a media probe. The skill checks the actual file with ffprobe. For exact-duration video work it keeps the provider source untouched, trims at a musical boundary, applies a short fade, and probes the master again. A Gemini key is required before use; GOOGLE_API_KEY takes precedence over GEMINI_API_KEY when both are set.

What it helps with

  • build a structured prompt for Lyria 3.5 or Clip
  • measure the real duration of a generated file
  • produce an instrumental track with no vocal artifacts
  • fit music to an exact video timestamp
  • diagnose a failed Lyria call

Example prompts for the agent

  • Prepare a Lyria prompt for a 30-second instrumental loop as video background
  • Generate a song with female vocals in Spanish, lyrics in a Lyrics block
  • Check output.mp3 with ffprobe and report the actual duration

How to install lyria

1Skills CLI (Vercel)

npx skills add calesthio/OpenMontage --skill lyria -a claude-code

2Manually: put the files in place

~/.claude/skills/lyria/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/lyria/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about lyria

How do I install lyria in Claude Code?

Run npx skills add calesthio/OpenMontage --skill lyria -a claude-code. The skill file lands in ~/.claude/skills/lyria/SKILL.md.

How do I install lyria in Codex?

Run npx skills add calesthio/OpenMontage --skill lyria -a codex. The skill file lands in .agents/skills/lyria/SKILL.md.

Which Lyria models does the skill cover?

lyria-3-clip-preview for iterations and 30-second loops, lyria-3.5 for full songs with vocals. The OpenMontage google_music adapter accepts model="lyria-3.5" or model="lyria-3-pro-preview"; Clip and RealTime do not route through it.

How does the skill verify track duration?

With an ffprobe command that outputs JSON: codec, bitrate, sample rate, channels, and duration. The adapter's duration_seconds field is the requested length, not a probe.

Similar skills

All skills for AI and ML →

From the same set101

The whole set →
hyperframes-animation The hyperframes-animation skill for Claude Code builds HyperFrames motion from reusable rules and scene blueprints. Consult runtime-specific API notes when authoring choreography or auditing a composition. CX Codex +1 ★ 78,316repo stars model-selection-guide model-selection-guide — a decision rule that matches FLUX models to priorities: speed, quality, balance, typography, or image editing. Quick matrix and decision tree streamline the choice for each task. CX Codex +1 ★ 78,316repo stars widget-embedding widget-embedding guides the integration of ElevenLabs voice conversation widgets into web projects, handling visual styles, mobile layouts, and secure access. CX Codex ★ 78,316repo stars center-outward-expansion The center-outward-expansion rule moves elements from a shared center to their final positions. Use it for burst scenes or motion tied to another animation’s progress. CX Codex +1 ★ 78,316repo stars comfyui Guides OpenMontage tools through ComfyUI workflows for images, video, and audio, handling node IDs and VRAM constraints. CX Codex +1 ★ 78,316repo stars kinetic-beat-slam The kinetic-beat-slam rule shapes short phrases into beat-led kinetic typography, with separate entrances and a locked final stack for punchy text scenes. CX Codex +1 ★ 78,316repo stars threejs-world-generation threejs-world-generation turns a written brief into one continuous Three.js world with terrain, regions, scattered props and a camera flight. Made for cinematic scenes rather than single models. CX Codex +1 ★ 78,316repo stars colors colors is a Claude Code rule covering ManimGL palettes, gradients, and GLSL shading for coloring mathematical animations. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open