Skip to main content

music-generator

Generate music using Google Lyria 3 (DeepMind). Use for "生成音乐", "作曲", "写一首曲子", "generate music", "create a song", "compose", "piano piece", "钢琴曲", "make a beat", "生成钢琴曲", "来一首歌".

설치로 이동

소스 정보

저장소
yangwhale/CloseCrab
최근 소스 활동
2026년 8월 9일 07:34
감지된 SKILL.md 언어
영어
스타
4
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
music-generator
description
Generate music using Google Lyria 3 (DeepMind). Use for "生成音乐", "作曲", "写一首曲子", "generate music", "create a song", "compose", "piano piece", "钢琴曲", "make a beat", "生成钢琴曲", "来一首歌".
# Music Generator (Google Lyria 3) Generate music using Google Lyria 3 Pro / Clip (DeepMind) via Gemini API, save to CC Pages, and share. Two models: - **Lyria 3 Clip** (`lyria-3-clip-preview`) — 30-second clips, fast iteration - **Lyria 3 Pro** (`lyria-3-pro-preview`) — full-length songs (1-3 minutes) ## Usage ```bash ~/.claude/skills/music-generator/scripts/music-generate.sh "your music prompt" ``` ### Options ```bash # Quick 30s clip (default) ~/.claude/skills/music-generator/scripts/music-generate.sh "a dramatic solo piano piece in C minor" # Full-length song (1-3 min) ~/.claude/skills/music-generator/scripts/music-generate.sh "epic orchestral film score" --duration full # Specify style, key, tempo ~/.claude/skills/music-generator/scripts/music-generate.sh "jazz trio" --style jazz --key "Bb major" --tempo 140 # Allow vocals (default: instrumental only) ~/.claude/skills/music-generator/scripts/music-generate.sh "pop ballad with singing" --vocal # Custom output filename ~/.claude/skills/music-generator/scripts/music-generate.sh "ambient soundscape" --output my-ambient # Combine options ~/.claude/skills/music-generator/scripts/music-generate.sh \ "virtuoso solo piano, Late Romantic style, dramatic arpeggios and singing melody" \ --duration full --key "C# minor" --tempo 72 --output concert-piece ``` ### Output - Audio saved to `$CC_PAGES_WEB_ROOT/assets/music/` as MP3 - Returns the public URL: `$CC_PAGES_URL_PREFIX/assets/music/{filename}.mp3` ### Workflow ```bash # 1. Generate music URL=$(~/.claude/skills/music-generator/scripts/music-generate.sh "solo piano nocturne" --duration full) # 2. Share URL or embed in HTML echo "Listen: $URL" ``` ## Prompt Engineering Tips 1. **Use timestamps for structure**: `[0:00-0:25] slow intro, [0:25-1:00] build intensity, [1:00-1:30] climax` 2. **Use Italian musical terms**: Allegro, Pianissimo, Rubato, Con fuoco, Crescendo, Sforzando 3. **Specify instrumentation explicitly**: "solo piano", "string quartet", "jazz trio with piano, upright bass, and brushed drums" 4. **NO copyrighted references**: Never name specific compositions, artists, or songs — the API will block with PROHIBITED_CONTENT. Use generic style descriptions instead ("Late Romantic virtuoso piano", "bebop jazz") 5. **Repeat "NO vocals" for instrumental**: Say "Instrumental only. NO vocals. NO singing." at least twice if you want pure instrumental 6. **Describe dynamics and emotion**: "haunting and melancholic opening, building to a passionate fortissimo climax, then resolving with gentle pianissimo" ## Models | Model | Duration | Best For | |-------|----------|----------| | `lyria-3-clip-preview` (default) | ~30s | Quick previews, iteration, short loops | | `lyria-3-pro-preview` | 1-3 min | Full compositions, concert pieces | ## Prerequisites - `google-genai` Python SDK (`pip install google-genai`) - `GEMINI_API_KEY` environment variable set - CC Pages (`$CC_PAGES_WEB_ROOT` and `$CC_PAGES_URL_PREFIX`) ## Files ``` ~/.claude/skills/music-generator/scripts/ ├── music-generate.sh # Entry point (exec wrapper) └── music-generate.py # Core logic (google-genai SDK) $CC_PAGES_WEB_ROOT/assets/music/ # Generated audio (web-accessible) ```
GitHub에서 보기