← 返回 Skills 市场
twocode

Gen Music

作者 twocode · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
268
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gen-music
功能描述
Generate songs from prompts or lyrics through an ACE-Step-compatible API backend. Use when users want text-to-music, lyrics-to-song, fast prompt iteration, s...
使用说明 (SKILL.md)

ACE-Step Text To Music

Use an ACE-Step-compatible API backend for prompt-to-song and lyrics-to-song requests. This skill does not install or bundle ACE-Step, model weights, or the API server.

Prerequisite

Before using this skill, make sure you already have access to an ACE-Step-compatible API backend. This can be a local server, usually at http://127.0.0.1:8001, or a remote compatible endpoint. If the backend is missing or stopped, this skill cannot generate music.

Quick start

python3 {baseDir}/scripts/generate.py --prompt "playful beach pop song about rising waves"
python3 {baseDir}/scripts/generate.py --prompt "happy indie pop with bright guitars" --lyrics-file /path/to/lyrics.txt --duration 60

Defaults are tuned for fast local iteration:

  • batch_size=1 to avoid duplicate variants unless explicitly requested
  • audio_format=mp3
  • sample_mode=text2music
  • thinking=false unless the user asks for heavier LM-assisted generation
  • finished audio is copied into a stable output folder instead of leaving only temp API paths

When to use

  • An ACE-Step-compatible API backend is already available, commonly a local server at http://127.0.0.1:8001 but possibly a remote endpoint
  • The user wants text-to-music, lyrics-to-song, or quick style variations
  • The user wants a single command that submits, polls, and returns saved files
  • The user wants music generated locally and then played on Clawatch
  • The user already has access to a local or remote ACE-Step-compatible backend

Run

# Basic prompt
python3 {baseDir}/scripts/generate.py --prompt "playful synth-pop song about sunrise waves"

# With lyrics
python3 {baseDir}/scripts/generate.py \
  --prompt "cute upbeat summer beach song" \
  --lyrics-file /path/to/lyrics.txt \
  --duration 60

# Two variants
python3 {baseDir}/scripts/generate.py \
  --prompt "dreamy city-pop ocean groove" \
  --duration 45 \
  --batch-size 2

# Enable heavier LM planning only when needed
python3 {baseDir}/scripts/generate.py \
  --prompt "cinematic anthem about a storm becoming calm" \
  --duration 60 \
  --thinking

Useful flags:

  • --duration 10..600
  • --lyrics or --lyrics-file
  • --batch-size 1..8
  • --thinking
  • --model acestep-v15-turbo
  • --out-dir /path/to/output
  • --base-url http://127.0.0.1:8001 for local backends
  • --base-url https://your-remote-endpoint for remote backends

Clawatch playback

If the user also wants the result played on Clawatch:

  1. Run the generator and wait for the saved output file paths.
  2. Pick the final .mp3 path from the script output or manifest.json.
  3. Call clawatch_play_audio with:
    • imei: the explicit watch IMEI
    • filePath: the saved local audio path
    • title: optional short label

Do not pass ACE-Step temp URLs directly if the helper already copied a stable local file. Prefer the saved file path.

Config

The script accepts CLI flags first, then env vars, then OpenClaw skill config.

Supported env vars:

  • ACESTEP_API_BASE_URL
  • ACESTEP_API_KEY
  • ACESTEP_OUTPUT_DIR

Use ACESTEP_API_BASE_URL or the OpenClaw config entry to switch between local and remote ACE-Step-compatible backends.

Optional OpenClaw config in ~/.openclaw/openclaw.json:

{
  skills: {
    entries: {
      "gen-music": {
        baseUrl: "http://127.0.0.1:8001",
        apiKey: "",
        outputDir: "~/Projects/tmp/ace-step"
      }
    }
  }
}

Notes

  • Check backend health first if needed: curl http://127.0.0.1:8001/health or the same path on your remote endpoint
  • If the API returns temp /v1/audio?path=... URLs, the helper copies those files into the chosen output directory and writes a manifest.json
  • Prefer batch-size 1 for efficient prompt iteration; raise it only when the user explicitly wants variants
安全使用建议
This skill appears to do what it says: it is a Python client that talks to an ACE-Step-compatible API (default localhost). Before installing, confirm you have a trusted ACE-Step backend (local or remote). If you point it at a remote endpoint or provide ACESTEP_API_KEY, treat that endpoint and key as sensitive — the script will send prompts, lyrics, and receive audio payloads from that server. Be aware the tool will read OpenClaw config files (~/.openclaw/openclaw.json and /data/.clawdbot/openclaw.json) if present and will write output files to the configured output directory (default under your home or ./tmp). If you intend to use Clawatch playback, you will need to supply the watch IMEI to the playback call; do not pass backend temp URLs directly per the guidance. If any of those behaviors are unexpected, inspect or run the included scripts in a sandbox before granting production access.
功能分析
Type: OpenClaw Skill Name: gen-music Version: 0.1.0 The script `scripts/generate.py` contains a path traversal vulnerability in the `local_source_path` and `save_outputs` functions. It blindly trusts file paths or query parameters returned by the API backend, allowing a potentially malicious or compromised server to trigger the copying of arbitrary local files (e.g., sensitive configuration or identity files) into the skill's output directory. While this behavior is documented in `SKILL.md` as a convenience for local API integration, the lack of input validation on the source paths poses a significant risk of local data exposure.
能力评估
Purpose & Capability
Name/description (text-to-music via ACE-Step) align with the included Python script and SKILL.md. Required binary python3 is appropriate. The script communicates only with an ACE-Step-compatible base_url and does not request unrelated cloud credentials or services.
Instruction Scope
SKILL.md and the script instruct the agent to submit jobs, poll results, copy audio into an output dir, and optionally hand files to Clawatch. The script also reads OpenClaw config files (~/.openclaw/openclaw.json and /data/.clawdbot/openclaw.json) to obtain per-skill settings — this is reasonable for configuration but means the skill will attempt to read those paths if present.
Install Mechanism
Instruction-only skill with no install spec. No external archives or third-party installers are fetched or executed by the skill bundle itself.
Credentials
The registry lists no required env vars; the SKILL.md documents optional ACESTEP_API_BASE_URL, ACESTEP_API_KEY, and ACESTEP_OUTPUT_DIR. Requesting an API key for a remote ACE-Step backend is proportionate. Users should note the API key is used as an authorization header when provided.
Persistence & Privilege
always is false and the skill does not attempt to persist itself or modify other skills. It writes generated audio and a manifest into a user-configurable output directory only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gen-music
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gen-music 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of gen-music for song generation via ACE-Step-compatible API backend. - Supports text-to-music and lyrics-to-song with fast local or remote prompt iteration. - Generates and saves stable `.mp3` files for easy playback, including on Clawatch. - CLI script offers flexible options: duration, lyrics file, batch size, output directory, and LM planning. - Configurable via CLI flags, environment variables, or OpenClaw config JSON. - Requires separate ACE-Step backend; skill does not bundle server or model weights.
元数据
Slug gen-music
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Gen Music 是什么?

Generate songs from prompts or lyrics through an ACE-Step-compatible API backend. Use when users want text-to-music, lyrics-to-song, fast prompt iteration, s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 268 次。

如何安装 Gen Music?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gen-music」即可一键安装,无需额外配置。

Gen Music 是免费的吗?

是的,Gen Music 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Gen Music 支持哪些平台?

Gen Music 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Gen Music?

由 twocode(@twocode)开发并维护,当前版本 v0.1.0。

💬 留言讨论