/install giggle-generation-music
简体中文 | English
Giggle Music
Source: giggle-official/skills · API: giggle.pro
Generates AI music via giggle.pro. Supports simplified and custom modes. Submit task → query when ready. No polling or Cron.
API Key: Set system environment variable GIGGLE_API_KEY. Log in to Giggle.pro and obtain the API Key from account settings.
Important: Never pass
GIGGLE_API_KEYin exec'senvparameter. API Key is read from system environment variable.
No Retry on Error: If script execution encounters an error, do not retry. Report the error to the user directly and stop.
Interaction Guide
Mode Selection (priority: high to low)
| User input | Mode | Description |
|---|---|---|
| User provides full lyrics | Custom mode (B) | Must be lyrics, not description |
| User requests instrumental/background music | Instrumental mode (C) | No vocals |
| Other cases (description, style, vocals, etc.) | Simplified mode (A) | Use user description as prompt; AI composes |
Key rule: If the user does not provide lyrics, always use simplified mode A. Use the user's description exactly as
--prompt; do not add or rewrite. E.g. user says "female voice, 1 min, ancient romance", use--prompt "female voice, 1 min, ancient romance"directly.
Guidance when info is lacking
Only when the user input is very vague (e.g. "generate music" with no description), ask:
Question: "What type of music would you like to generate?"
Options: AI compose (describe style) / Use my lyrics / Instrumental
Execution Flow: Submit and Query
Music generation is asynchronous (typically 1–3 minutes). Submit a task to get task_id, then query when the user wants to check status.
Step 1: Submit Task
First send a message to the user: "Music generation submitted. Usually takes 1–3 minutes. You can ask me about the progress anytime."
A: Simplified Mode
python3 scripts/giggle_music_api.py --prompt "user description"
B: Custom Mode
python3 scripts/giggle_music_api.py --custom \
--prompt "lyrics content" \
--style "pop, ballad" \
--title "Song Title" \
--vocal-gender female
C: Instrumental
python3 scripts/giggle_music_api.py --prompt "user description" --instrumental
Response example:
{"status": "started", "task_id": "xxx"}
Store task_id in memory (addMemory):
giggle-generation-music task_id: xxx (submitted: YYYY-MM-DD HH:mm)
Step 2: Query When User Asks
When the user asks about music progress (e.g. "is my music ready?", "progress?"), run:
python3 scripts/giggle_music_api.py --query --task-id \x3Ctask_id>
Output handling:
| stdout pattern | Action |
|---|---|
| Plain text with music links (🎶 音乐已就绪) | Forward to user as-is |
| Plain text with error | Forward to user as-is |
JSON {"status": "processing", "task_id": "..."} |
Tell user "Still in progress, please ask again in a moment" |
Link return rule: Audio links in stdout must be full signed URLs (with Policy, Key-Pair-Id, Signature query params). Correct: https://assets.giggle.pro/...?Policy=...&Key-Pair-Id=...&Signature=.... Keep as-is when forwarding.
Recovery
When the user asks about previous music progress:
- task_id in memory → Run
--query --task-id xxxdirectly. Do not resubmit - No task_id in memory → Tell the user, ask if they want to regenerate
Parameter Reference
| Parameter | Description |
|---|---|
--prompt |
Music description or lyrics (required in simplified mode) |
--custom |
Enable custom mode |
--style |
Music style (required in custom mode) |
--title |
Song title (required in custom mode) |
--instrumental |
Generate instrumental |
--vocal-gender |
Vocal gender: male / female (custom mode only) |
--query |
Query task status |
--task-id |
Task ID (use with --query) |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install giggle-generation-music - 安装完成后,直接呼叫该 Skill 的名称或使用
/giggle-generation-music触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Giggle Generation Music 是什么?
Use when the user wants to create, generate, or compose music—whether from text description, custom lyrics, or instrumental background music. Triggers: gener... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 445 次。
如何安装 Giggle Generation Music?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install giggle-generation-music」即可一键安装,无需额外配置。
Giggle Generation Music 是免费的吗?
是的,Giggle Generation Music 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Giggle Generation Music 支持哪些平台?
Giggle Generation Music 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Giggle Generation Music?
由 Parker(@patches429)开发并维护,当前版本 v0.0.10。