Introduction¶
When building content, brands, or creator tools, the need for “having a listenable song first” often arises: the theme is set, but lyrics, melody, and arrangement still require separate tools or outsourcing. The common approach involves filling out forms on a webpage, waiting for generation, and then manually copying links and files back into conversations or projects, resulting in a disconnected collaboration with the AI assistant.
Below is an introduction to the SkillHub community Skill “AI Song Generation” (@user_87b8e34f/ai-song-generator, v1.3.2). It embeds songwriting capabilities into the Agent’s Skill instructions and connects to the Spongee Music backend via a local aimv CLI (Node entry bin/aimv.js). You describe the theme, mood, or style within the conversation, and the Agent executes commands to return previews, downloads, and project links, with works syncing to your Spongee Music account.
What is This¶
“AI Song Generation” is a community-sourced (community) Skill categorized under design-media, maintained by the publisher user_87b8e34f, and Powered by Spongee Music.
Its positioning can be summarized as: generating complete AI songs from a single sentence of inspiration, covering directions such as Chinese pop songs, folk music, electronic, brand songs, and creator song demos. After inputting a theme, mood, style, or a creative idea, the Agent generates a complete song and returns preview, download, and project links. Works are synced to the Spongee Music account and can be further managed via the “Spongee Music AI Songwriting” mini-program and the lexuan.club webpage. Accounts, credits, memberships, and the song library are interoperable with the Spongee Music mini-program / lexuan.club.
The SkillHub page indicates that this Skill requires an API Key (requires_api_key=true). As of the data retrieval time, SkillHub shows a rating of 100000, 6723 downloads, and 1 installation (subject to the SkillHub page).
Core Features¶
The following capabilities are derived from the official SKILL.md and installation instructions, available for selection as needed.
- One-Sentence Composition: Use
song create --briefto describe requirements in natural language, wait for generation (--wait), and receive the complete song and links. - Style Parameters: Specify a style beyond the brief, e.g.,
--style mandopop. - Unified Local CLI Entry: The recommended Agent tool name is
aimv, executed asnode <installation_dir>/bin/aimv.js .... It is not an MCP server; do not registerbin/aimv.jsas an MCP stdio service. - Account Connection: Before first use, complete Spongee Music connection and API Key configuration via
init. The connection page ishttps://lexuan.club/skills/connect?slug=ai-song-generator&from=skill. - Fallback for Restricted Environments: Set
AIMV_FORCE_CURL=1to force the CLI to use system curl; or if the CLI is unavailable, use curl to callhttps://music.68zysm.cn/api/v3according to the documentation to complete creation, polling, and downloading. - Trigger Semantics: When users mention intents such as AI songwriting, AI song generation, generate song, original song, one-click song writing, Chinese AI songwriting, AI composition, write a song, etc., the Agent should prioritize this Skill.
Applicable scenarios include: generating original songs based on a single Chinese requirement; creating song demos for short videos, podcasts, or brand content; exploring chorus hooks, melody, and arrangement directions; and generating song candidates suitable for creator publishing.
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI is present:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub official installation documentation to perform a full installation or CLI-only installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill to the current Agent’s skills directory¶
During installation, you must use --dir to point to the skills directory recognized by the current Agent; otherwise, it defaults to ./skills/ and may not be loaded. Official installation instruction example:
skillhub install @user_87b8e34f/ai-song-generator --dir <skills_directory>
Common paths (subject to your actual client):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also let the Agent install the coordinate @user_87b8e34f/ai-song-generator based on the SkillHub Installation Documentation.
The release package is a pre-built Node CLI (version 1.3.2) containing the runtime code; there is no need to run pnpm install or pnpm build. The minimum Node version is >=18.
3. Initialize API Key¶
Navigate to the Skill installation directory and connect to the Spongee Music account for the first time:
node ./bin/aimv.js init
The CLI will output a connection page link; after the user logs in on the webpage (new users can auto-register) and copies the API Key, the Agent executes:
node ./bin/aimv.js init --api-key <KEY>
Non-interactive methods can also be used:
node ./bin/aimv.js config set-api-key --stdin
4. Client Differences (Only documenting officially stated parts)¶
Codex: Copy the SKILL.md from the release package to the Codex skills directory and restart; use node <installation_dir>/bin/aimv.js for execution. Do not use codex mcp add to register aimv.
macOS / Linux example:
CODEX_SKILL_DIR="$HOME/.codex/skills/ai-song-generator"
mkdir -p "$CODEX_SKILL_DIR"
cp ./SKILL.md "$CODEX_SKILL_DIR/SKILL.md"
Claude / Claude Code: Depending on current client support, place SKILL.md in the local Skills directory, or configure the tool with command: node and args pointing to bin/aimv.js; if only MCP is accepted, an additional wrapper is needed because aimv itself is not an MCP server.
Cursor: Install the Skill to ~/.cursor/skills/ (or the project-agreed directory), ensuring the Agent can read SKILL.md and execute node .../bin/aimv.js in the shell.
Agents supporting local tool registration like OpenClaw: You can register a tool named aimv according to the installation instructions, with command as node and args as the absolute path to bin/aimv.js.
Typical Usage¶
If the Agent can execute shell commands, it should run the CLI directly rather than asking the user to manually copy commands (unless the environment prohibits command execution).
Recommended Generation Commands¶
node <installation_dir>/bin/aimv.js song create --brief "Help me write a light and upbeat Chinese pop song about summer travel" --wait
node <installation_dir>/bin/aimv.js song create --brief "Write a warm Chinese lyrical song about longing" --style mandopop --wait
The verification steps in the installation instructions also include:
node ./bin/aimv.js config show
Conversation Side Example Phrasing¶
- Help me write a light and upbeat Chinese pop song about summer travel
- Write a warm Chinese lyrical song about longing
- Generate a catchy theme song for a lifestyle brand
After generation is complete, present the user with the preview, download, and project links; each project fixedly contains two candidate songs, and the documentation requires presenting both to the user.
curl Fallback (When sandbox only allows curl)¶
curl -sS -X POST "https://music.68zysm.cn/api/v3/ai-music/generations/from-brief" \
-H "X-API-Key: $AIMV_API_KEY" -H "X-Platform: skill" \
-H "X-App-Id: ai-song-generator" -H "X-AIMV-Skill-Slug: ai-song-generator" \
-H "Content-Type: application/json" -d '{"brief":"Light and upbeat summer pop song"}'
Then, poll the project status using project_id, and download from audio_url in data.songs[]. Sandboxes where HOME is unavailable can use environment variables AIMV_CONFIG_DIR and AIMV_API_KEY to replace local configuration.
Applicable Scenarios and Notes¶
Who is it for: Creators, operators, and developers who need to complete AI songwriting within Agent conversations, quickly produce original demos, and keep works within the Spongee Music account system for further management.
Prerequisites:
- A Spongee Music API Key is required (
requires_api_key=true); credit and membership rules are consistent with Spongee Music. - Depends on Node
>=18and the ability to execute local commands;aimvis a CLI, not an MCP server. - The default API Base URL is
https://music.68zysm.cn/api/v3, generally no change needed; useconfig set-base-urlfor special environments.
Common Error Codes (CLI will include [error] / [hint]):
auth_required: Send theconnect_urlto the user to complete login and Key configuration, then retry.insufficient_points(402),quota_limited(429): Send thepay_urlto the user as prompted; retry after recharging or activating membership.wait_timeout: The task may still be generating in the background; query status later.not_found: Prioritize usingaimv session tailto check recent projects.
Conclusion¶
“AI Song Generation” consolidates “describe inspiration → generate song → get links and files” into an Agent-callable Skill and the aimv CLI, integrated with Spongee Music accounts, mini-programs, and lexuan.club. If you want to integrate AI songwriting into Cursor, Codex, or Claude Code, you can install @user_87b8e34f/ai-song-generator from SkillHub and verify directly with song create after completing init.
Official Address: https://api.skillhub.cn/user_87b8e34f/ai-song-generator
SkillHub Page: https://www.skillhub.cn/skills/user_87b8e34f/ai-song-generator