gemini-lyria-3
Use this skill when the user wants to generate music or audio tracks from lyrics or text prompts using Gemini Lyria-3, including AI music composition, audio…
Skill by duotify
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/duotify-gemini-lyria-3
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gemini-lyria-3
What's inside
- Skill name
gemini-lyria-3- Description
- Use this skill when the user wants to generate music or audio tracks from lyrics or text prompts using Gemini Lyria-3, including AI music composition, audio generation, track creation, and requests like "幫我作一首歌", "生成音樂", "根據這段歌詞產生音軌", or "compose a track".
- License
- MIT
- Instructions
- 79 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- README.md
- SKILL.md
- githubclaw.json
- generate-track.js · scripts/
SKILL.md (first lines)
# Gemini Lyria-3 音樂生成 Skill
使用 Google Lyria-3 模型,從歌詞或文字提示詞生成 AI 音樂音軌,並將結果儲存為音訊檔案。
## 需求條件
- **GEMINI_API_KEY**:有效的 Google Gemini API 金鑰(設為環境變數)
- **Node.js** ≥ 20.0.0
- `scripts/generate-track.js` 為預先建置的零依賴 bundle,不需 `npm install`
## 使用方式
> ⚠️ **路徑安全**:skill 腳本位於 **repo 根目錄**的 `.agents/skills/` 下。若 cwd 不在 repo root,請先獨立執行 `git rev-parse --show-toplevel` 取得絕對路徑,再 `cd` 到該路徑後執行。**禁止**在指令中使用 `$(...)` 語法(會被 Copilot CLI 安全過濾器擋下)。
腳本透過環境變數接收所有參數:
| 環境變數 | 必填 | 說明 |
|----------|------|------|
| `GEMINI_API_KEY` | ✅ | Google Gemini API 金鑰 |
| `PROMPT_FILE` | ✅ | 包含歌詞或提示詞的文字檔路徑 |
| `ISSUE_DIR` | ✅ | 音訊檔案輸出目錄 |
| `NAME_PREFIX` | ❌ | 輸出檔案名稱前綴(預設:`track`) |
| `LYRIA_MODEL` 或 `MODEL` | ❌ | 使用的模型(預設:`lyria-3-pro-preview`) |
### 範例
```sh
# 先取得 repo root(獨立執行,不使用 $())
git rev-parse --show-toplevel
# 再 cd 到 repo root 後執行:
PROMPT_FILE="./lyrics.txt" \
ISSUE_DIR="./music-output" \
node .agents/skills/gemini-lyria-3/scripts/generate-track.js
```
## 輸出格式
腳本執行後:
- 每個生成的音軌儲存為音訊檔案(格式依 API 回傳的 MIME type 決定,通常為 `.mp3`)
- stdout 輸出每個儲存的相對路徑,格式為 `Saved: <path>`
- stderr 輸出進度訊息與錯誤
成功後請以下列格式回報結果:
```
🎵 音樂生成完成!
- [track-0.mp3](https://github.com/{GITHUB_REPO}/blob/{BRANCH}/{path}?raw=true)
<!-- githubclaw-artifacts: {"audio":[{"branch":"{BRANCH}","path":"{path}"}],"html":[]} -->
```
## Instructions for the Agent
⚠️ skill 腳本位於 **repo 根目錄**。若 cwd 不在 repo root,先獨立執行 `git rev-parse --show-toplevel` 取得路徑,再 `cd` 到該路徑後執行。禁止使用 `$(...)` 語法。
1. 確認使用者提供了歌詞內容或文字提示詞。
2. 將歌詞或提示詞寫入暫時文字檔(例如 `./lyrics.txt`)。
3. 設定 `ISSUE_DIR` 為音訊輸出目錄(建議使用 `./music-output` 或 issue 的 artifacts 目錄)。
4. 確認環境中已設定 `GEMINI_API_KEY`。
5. 執行腳本:
```sh
PROMPT_FILE="./lyrics.txt" ISSUE_DIR="./music-output" node .agents/skills/gemini-lyria-3/scripts/generate-track.js
```
6. 解析 stdout 中 `Saved: <path>` 行取得生成的音軌路徑。
7. 以 Markdown 連結格式回報每個音軌,加上 `githubclaw-artifacts` metadata 供 Telegram relay 使用。
8. 若 exit code 非 0,檢查 stderr 錯誤訊息,不要自行編造結果。
## 錯誤處理
| 錯誤訊息 | 說明 |
|---------|------|
| `缺少 GEMINI_API_KEY` | 未設定 API 金鑰環境變數 |
| `缺少 PROMPT_FILE 環境變數` | 未指定歌詞/提示詞檔案路徑 |
| `缺少 ISSUE_DIR 環境變數` | 未指定輸出目錄 |
| `... 內容為空,無法生成音樂` | 歌詞/提示詞檔案為空 |
| `API 未回傳任何音訊資料` | API 沒有回傳音訊,請確認模型與 API Key |From duotify/GitHubClawToolkit, MIT.
More from duotify/GitHubClawToolkit
- 0.754score
gemini-summary
duotify
Use this skill when a user provides a web page URL, PDF file, video, or audio file and wants a Traditional Chinese summary.
SkillBFreshness: B★ 254Claude Code +9 - 0.754score
gemini-audio-transcriber
duotify
Use this skill when a user provides an audio file (local file or URL) and wants it transcribed into Traditional Chinese text.
SkillBFreshness: B★ 254Claude Code +9 - 0.754score
gemini-deep-researcher
duotify
Use this skill when a user wants a comprehensive research report on any topic with cited sources.
SkillBFreshness: B★ 254Claude Code +9 - 0.690score
pr-creator
duotify
Use this skill when asked to create a pull request (PR).
SkillCFreshness: C★ 254Claude Code +9 - 0.621score
gemini-nanobanana
duotify
Use this skill when users ask to generate, edit, or compose images with Gemini Nano Banana 2, including text-to-image, image editing, multi-image composition…
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
google-stitch
duotify
Use this skill when users want to generate UI mockups, landing pages, wireframes, design concepts, marketing sections, or page prototypes from a prompt and…
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
gemini-image-describer
duotify
Use this skill when a user provides an image (local file or URL) and wants a detailed Traditional Chinese description of the image content.
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
telegram-notify
duotify
Send Telegram Bot notifications for development events, CI/CD pipeline status, and AGENTS.md progress updates.
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
felo-x-search
duotify
Search X (Twitter) data using Felo X Search API.
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
felo-search
duotify
Felo AI real-time web search for questions requiring current/live information.
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
felo-slides
duotify
Generate PPT/slides with Felo PPT Task API in Claude Code.
SkillDFreshness: D★ 254Claude Code +9 - 0.618score
githubclaw-json-generator
duotify
為 GitHubClawToolkit 的 skill 或 template 目錄生成 githubclaw.json metadata 檔案。當使用者新增、更新 skill/template 並需要建立或更新 githubclaw.json 時觸發。也適用於批次為多個 skill/template 產生…
SkillDFreshness: D★ 254Claude Code +9
Signals
- Stars
- 254
- Forks
- 54
- Open issues
- 1
- Last commit (this folder)
- Apr 24, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/duotify/GitHubClawToolkit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from duotify
- 0.754score
gemini-deep-researcher
duotify
Use this skill when a user wants a comprehensive research report on any topic with cited sources.
SkillBFreshness: B★ 254Claude Code +9 - 0.754score
gemini-audio-transcriber
duotify
Use this skill when a user provides an audio file (local file or URL) and wants it transcribed into Traditional Chinese text.
SkillBFreshness: B★ 254Claude Code +9 - 0.754score
gemini-summary
duotify
Use this skill when a user provides a web page URL, PDF file, video, or audio file and wants a Traditional Chinese summary.
SkillBFreshness: B★ 254Claude Code +9 - 0.690score
pr-creator
duotify
Use this skill when asked to create a pull request (PR).
SkillCFreshness: C★ 254Claude Code +9 - 0.621score
felo-search
duotify
Felo AI real-time web search for questions requiring current/live information.
SkillDFreshness: D★ 254Claude Code +9 - 0.621score
felo-slides
duotify
Generate PPT/slides with Felo PPT Task API in Claude Code.
SkillDFreshness: D★ 254Claude Code +9
Cite this page
gemini-lyria-3 skill. Agent Mart. https://agentmart.dev/skills/duotify-gemini-lyria-3 (last updated 2026-10-24)