skills/lyria/SKILL.md
Generate music files using Google Gemini Lyria 3. Automatically selects the best model based on the request / purpose: Lyria 3 Pro for full-length, structured, lyric-bearing songs and Lyria 3 Clip for 30-second clips, loops, jingles, and quick previews. Supports genre / mood / instrument prompting, song-structure tags, custom lyrics, MP3 / WAV output, and works with both the Gemini Developer API and Vertex AI.
npx skillsauth add danishi/claude-code-config lyriaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the Python script in scripts/ to generate music via Google Gemini Lyria 3.
The model is automatically selected based on the request / purpose:
| Model | ID | When used |
|---|---|---|
| Lyria 3 Pro | lyria-3-pro-preview | Full-length songs (≈ a couple of minutes), verses/choruses/bridges, lyrics, premium studio-quality output |
| Lyria 3 Clip | lyria-3-clip-preview | 30-second clips, loops, jingles, sound logos, quick previews / prompt iteration |
Lyria 3 Pro is auto-selected when any of these conditions are met (OR):
--pro flag is specified歌詞, フル尺, 楽曲, full-length, verse, chorus, lyrics, professional)Lyria 3 Clip is selected when:
--clip flag is specifiedループ, ジングル, 30秒, clip, loop, jingle, preview)Tip: Iterate on your prompt with the faster
--clipmodel first, then commit to a full-length generation with--pro.
pip install google-genai
Set the GEMINI_API_KEY environment variable.
Get a key at https://aistudio.google.com/apikey
export GEMINI_API_KEY="your-api-key"
Set GOOGLE_CLOUD_PROJECT and optionally GOOGLE_CLOUD_LOCATION.
Requires a GCP project with the Vertex AI API enabled and
Application Default Credentials configured (gcloud auth application-default login).
export GOOGLE_CLOUD_PROJECT="your-project-id"
export GOOGLE_CLOUD_LOCATION="us-central1" # optional, defaults to us-central1
Priority: If both
GOOGLE_CLOUD_PROJECTandGEMINI_API_KEYare set, Vertex AI is used.
| Variable | Default | Description |
|---|---|---|
| LYRIA_MODEL | (auto) | Force a specific model (overrides auto-selection) |
| AUDIO_OUTPUT_DIR | ./lyria-music | Default output directory |
| LYRIA_NO_SSL_VERIFY | (unset) | Set to 1 / true / yes to disable SSL certificate verification |
scripts/generate.py - Music generationpython scripts/generate.py "lofi hip hop, mellow piano, rainy night, relaxed beat"
python scripts/generate.py "upbeat synthwave jingle, 80s, short loop" --clip -o jingle.mp3
python scripts/generate.py \
"[Verse] city lights fade into the night [Chorus] we are still alive, dreaming, full pop ballad, female vocals" \
--pro -o song.mp3
python scripts/generate.py "epic orchestral cinematic, full-length, dramatic" --pro --wav -o cinematic.wav
python scripts/generate.py "ambient pad, calm" --no-ssl-verify -o ambient.mp3
python scripts/generate.py "jazz trio, walking bass" --json -o jazz.mp3
usage: generate.py [-h] [-o OUTPUT] [--pro] [--clip] [--wav] [-v]
[--json] [--no-ssl-verify] prompt
Arguments:
prompt Text prompt describing the music
Options:
-o, --output PATH Output file path (auto-generated if omitted; extension
derived from the returned audio MIME type)
--pro Force Lyria 3 Pro model (full-length songs)
--clip Force Lyria 3 Clip model (30s clips, loops, jingles)
--wav Request WAV output (Pro only; Clip outputs MP3)
-v, --verbose Show detailed output
--json Output result as JSON
--no-ssl-verify Disable SSL certificate verification
--proand--clipare mutually exclusive.
| Model | Default format | Notes |
|---|---|---|
| Lyria 3 Clip | MP3, 48 kHz stereo | Always ~30-second clips |
| Lyria 3 Pro | MP3 (or WAV with --wav), 48 kHz stereo | Full-length songs (≈ a couple of minutes) |
The output file extension is derived from the audio MIME type returned by the API.
A good music prompt combines several dimensions:
lofi hip hop, synthwave, orchestral, jazz, EDMmelancholic, uplifting, tense, dreamymellow piano, driving bass, string sectionslow 70 BPM, fast four-on-the-floor, swingfemale vocals, warm timbre, male rap, or instrumentalSong structure (Pro): use section tags so the model builds verses, choruses, and bridges:
[Verse] ... lyrics ...
[Chorus] ... lyrics ...
[Bridge] ... lyrics ...
You can also add timestamps for precise timing, e.g. [0:00 - 0:10] soft intro.
The prompt language determines the sung language.
See references/prompts.md for a comprehensive prompt reference with
category-specific templates.
| Error | Solution |
|---|---|
| google-genai package not installed | Run pip install google-genai |
| No API credentials found | Set GEMINI_API_KEY or GOOGLE_CLOUD_PROJECT |
| Content blocked by safety filters | Rephrase the prompt (avoid named artists / restricted content) |
| API rate limit reached | Wait and retry |
| No audio returned | Make the prompt more concrete (genre, mood, instruments) |
| SSL: CERTIFICATE_VERIFY_FAILED | Use --no-ssl-verify or set LYRIA_NO_SSL_VERIFY=1 |
tools
Produce rich, finished video content with React Remotion by orchestrating the repository's media-generation skills (nanobanana for images, veo for video clips, lyria for BGM, gemini-tts for narration) and composing them on a data-driven Remotion timeline. Follows an approval-gated workflow: first return a video composition plan for the user to approve, then generate assets, compose, run a multimodal self-review loop, and deliver only when the result meets the quality bar. Use when the user wants to "create a video", "make a promo / explainer / social clip", or combine images, video, music, and voiceover into one polished video.
tools
Generate videos using Google Gemini Veo 3.1. Defaults to the cost-effective Veo 3.1 Lite model; the premium (Veo 3.1) and Fast models are used only when explicitly requested via --pro / --fast. Supports text-to-video and image-to-video (first frame + optional last frame), 16:9 / 9:16, 720p / 1080p (4k on Pro), 4-8s clips, and 1-4 videos per request. Works with both the Gemini Developer API and Vertex AI.
tools
Package a skill directory into a distributable `.skill` archive placed on the Desktop. Use when the user asks to "package", "bundle", "zip up", "export", "distribute", or "ship" a skill, or mentions creating a `.skill` file from `~/.claude/skills/<skill-name>/`.
tools
Salesforce CLIを使ってSalesforceのデータ操作・管理を行うスキル。 取引先・商談・プロジェクト・外注管理のCRUD操作、SOQLクエリ、パイプライン分析、レポート生成を実行する。 ユーザーがSalesforceのデータを照会・更新・分析したいとき、商談のステージを確認・変更したいとき、 プロジェクトや外注の状況を確認したいとき、売上・粗利・パイプラインのレポートが必要なとき、 取引先や案件の情報を調べたいとき、SOQLクエリを実行したいときに使用する。 「Salesforce」「SF」「商談」「取引先」「パイプライン」「案件」「プロジェクト」「外注」「粗利」 「売上」「受注」「失注」「ステージ」「SOQL」などのキーワードが含まれる場合はこのスキルを使う。 Salesforceに関する質問や操作依頼であれば、明示的にスキル名を言及していなくても積極的にこのスキルを使用すること。