# 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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/lyria/SKILL.md
- Updated: 2026-11-10
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/lyria

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add calesthio/OpenMontage --skill lyria -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/lyria/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/lyria/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add calesthio/OpenMontage --skill lyria -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/lyria/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add calesthio/OpenMontage --skill lyria -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/lyria/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install calesthio/OpenMontage .agents/skills/lyria
```

2. **Manually: put the files in place**
- File: `.github/skills/lyria/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add calesthio/OpenMontage --skill lyria -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/calesthio/OpenMontage --path .agents/skills/lyria
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/lyria/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/lyria/SKILL.md

## When to use it
- 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
- 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

## Similar
- [google-lyria](https://affpapa.org/en/nevibecode/skills/google-lyria.md) — skill · 137 installs
- [scenario-ace-step](https://affpapa.org/en/nevibecode/skills/scenario-ace-step.md) — skill · 843 installs
- [elevenlabs-music-generation](https://affpapa.org/en/nevibecode/skills/elevenlabs-music-generation.md) — skill · 387700 installs
- [gemini-omni-flash-api](https://affpapa.org/en/nevibecode/skills/gemini-omni-flash-api.md) — skill · 2500 installs
- [suno-music](https://affpapa.org/en/nevibecode/skills/suno-music.md) — skill · 287 installs
- [videoagent-audio-studio](https://affpapa.org/en/nevibecode/skills/videoagent-audio-studio.md) — skill · 4000 installs

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
