Reference Audio Adaptation AI: Music Secondary Creation within Agents

Introduction

When creating secondary music content, the common workflow involves: uploading a demo or reference track to a web-based tool, manually writing prompts, and then waiting for generation across multiple pages to select and download a version. If you are already using Agents within Cursor, Codex, or Claude Code to write code or modify documents, you likely prefer describing intents like “keep the rhythm, change the chorus” in natural language, allowing the Agent to directly invoke local commands to handle uploading, generation, and polling.

Below is an introduction to the SkillHub community Skill “Reference Audio Remix AI” (Coordinate: @user_87b8e34f/reference-music-remix, current version 1.3.2). It encapsulates the generation capabilities of Sponge Music (海绵音乐) into a local Node CLI aimv. The Agent learns to invoke it at the appropriate time via SKILL.md, saving you from repeatedly copying terminal commands.

What is this

“Reference Audio Remix AI” is an Agent Skill targeted at design-media (subcategory: Audio Processing), maintained by the community publisher user_87b8e34f (SkillHub display name: “AI Musician”). The underlying capability is provided by Sponge Music. Accounts, credits, membership, and the work library are interoperable with the “Sponge Music AI Songwriting” mini-program and lexuan.club.

One-sentence positioning: Based on reference audio, demos, song IDs, or project IDs, continue to create, remix, and generate new music. Generation results are synced to the Sponge Music account for easy management via the mini-program or web interface.

The Skill metadata is marked with requires_api_key=true. For first-time use, you need to obtain an API Key via the web connection page and complete local initialization.

Core Features

The following capabilities are derived from the official SKILL.md and release package documentation, and can be cross-referenced with the SkillHub page summary.

  1. Multi-input Continuation Creation: Supports local reference files (e.g., demos), existing songs, and project IDs to produce new song candidates while preserving rhythm, emotion, or style direction.
  2. Local CLI, not MCP: The recommended tool name is aimv, with the entry point at bin/aimv.js in the installation directory. The execution method is node <installation_directory>/bin/aimv.js .... This is a general-purpose Node CLI, not an MCP stdio service. Do not use methods like codex mcp add to register aimv as an MCP server.
  3. Agent-side Closed Loop: When the Agent has shell permissions, initialization, generation, querying, and downloading should be executed directly by the Agent via the CLI. If not logged in, the Agent runs init, sends the connection link to the user; after the user logs in and pastes back the API Key, the Agent executes init --api-key.
  4. Structured Error Guidance: The CLI outputs [error] / [hint] tags covering authentication (auth_required), credits (insufficient_points / 402), quota (quota_limited / 429), waiting timeout (wait_timeout), and other scenarios, accompanied by connect_url or pay_url.
  5. Fallback for Restricted Environments: You can set AIMV_FORCE_CURL=1 to make the CLI use system curl; or, if the CLI is unavailable, use curl to call the https://music.68zysm.cn/api/v3 interfaces directly according to the documentation to complete creation, polling, and download.

Trigger semantics (user phrasing or English keywords) include: reference audio remix, music remix, melody reference, demo remix, reference music generation, AI song remix, reference audio generation, continue writing a song, as well as reference audio, music remix AI, etc.

Installation and Activation

Install via SkillHub

The official SkillHub installation instructions are: First read https://skillhub.cn/install/skillhub.md, then install the coordinate @user_87b8e34f/reference-music-remix. Alternatively, send the following prompt to an Agent that supports Skill installation:

Please install @user_87b8e34f/reference-music-remix based on https://skillhub.cn/install/skillhub.md.

The page also provides a Zip package download address for v1.3.2:

https://api.skillhub.cn/api/v1/download?slug=@user_87b8e34f/reference-music-remix

Once unzipped, it is a pre-built Node release package; there is no need to run pnpm install or pnpm build. The runtime environment requires Node.js >= 18.

Local Initialization

After entering the extracted directory, first connect your account:

node ./bin/aimv.js init

The CLI will output a connection link (like https://lexuan.club/skills/connect?slug=reference-music-remix&from=skill). The user logs in on that page (new users can auto-register) and copies the API Key, then the Agent executes:

node ./bin/aimv.js init --api-key <KEY>

You can also write the Key non-interactively:

node ./bin/aimv.js config set-api-key --stdin

The default API Base URL is https://music.68zysm.cn/api/v3, and the web entry is https://lexuan.club (see runtime-defaults.json in the package).

Differences Between Agents

  • Codex: Copy the SKILL.md from the release package to $HOME/.codex/skills/reference-music-remix/SKILL.md and restart Codex; commands use node <installation_directory>/bin/aimv.js.
  • Claude / Claude Code: Integrate via the Skills directory or local command tools supported by the current client; the tool name is recommended as aimv, command as node, and args pointing to the absolute path of bin/aimv.js. If only MCP is supported, an extra wrapper is needed; this package itself is not an MCP server.
  • Agents with Shell capability (e.g., Cursor): Ensure it can read SKILL.md and directly execute node ./bin/aimv.js ...; if it has tool registration capabilities, you can register aimv according to the JSON example in INSTALL.md.

Verify if the configuration is effective:

node ./bin/aimv.js config show

Typical Usage

The recommended commands provided by the official SKILL.md are as follows. The first is based on a local reference file; the second is for continuation remixing based on an existing project ID.

node <installation_directory>/bin/aimv.js song create --brief "Keep the rhythm but make the chorus more catchy" --reference-file ./demo.mp3 --wait
node <installation_directory>/bin/aimv.js song create --brief "Continue this project, but make the chorus more catchy" --project-id 123456 --wait

--wait will keep the CLI waiting for the task to complete on the client side; if wait_timeout appears, the task may still be generating in the background, and you need to query the status according to the hint. Each project typically fixes two candidates; this should be explained when presenting to the user.

Reference audio upload can also go through the API (requires the same authentication headers as the CLI), for example:

curl -F "file=@./demo.mp3" https://music.68zysm.cn/api/v3/ai-music/reference-audios/upload \
  -H "X-API-Key: $AIMV_API_KEY" -H "X-Platform: skill" \
  -H "X-App-Id: reference-music-remix" -H "X-AIMV-Skill-Slug: reference-music-remix"

If the sandbox lacks a HOME directory, you can use the environment variable AIMV_CONFIG_DIR to redirect the configuration directory, or use AIMV_API_KEY to replace the Key in the local configuration file.

Use Cases and Notes

Who it is for

  • Creators who need reference music remix, demo remixing, or secondary song creation, and want to describe intent in a conversation and let the Agent execute the full workflow.
  • Users who already have accounts/works within the Sponge Music system and want generation results to sync automatically to the mini-program or lexuan.club.

Usage Notes

  1. API Key and Billing: The Skill relies on a Sponge Music account; if credits are insufficient or quota limits are reached, you need to recharge or open membership via the pay_url provided by the CLI and retry.
  2. Do Not Misregister as MCP: aimv is a local Node process, different from the MCP server model; incorrect registration will result in the Agent failing to call it via the documented path.
  3. Network-Restricted Sandboxes: Prioritize trying AIMV_FORCE_CURL=1; if it still fails, follow the three-step loop in SKILL.md to call the API directly with curl.
  4. Community Source: SkillHub marks the source as community, category design-media; as of the data capture time, the page statistics show approximately 9468 downloads, and the Skill tag requires an API Key. Please evaluate account and content compliance risks yourself before use.

Conclusion

“Reference Audio Remix AI” converges “reference audio / demo / project ID continuation remixing” into an Agent-executable aimv CLI and a standard SKILL.md. It is suitable for scenarios where you want to keep secondary music creation within the coding environment while needing integration with the Sponge Music work library.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye