AI Song: Composing Chinese Songs with the aimv CLI in an AI Assistant

Preface

When creating short video soundtracks, event demos, or original explorations, the common path is: fill out forms on a webpage, wait for generation, then manually download the audio. Conversational Agents can already write copy and scripts, but music often requires switching to a separate product, and it’s hard to consolidate the brief and final assets into the same workflow.

Below is an introduction to AI Song on SkillHub (@user_87b8e34f/ai-song, v1.3.2). It connects “write requirements → generate → preview and download” to the Agent-executable local aimv CLI (Node entry bin/aimv.js), with works synced to the Spong Music account, and can be further managed via the “Spong Music AI Songwriting” mini-program and lexuan.club.

What Is This

AI Song is a community-sourced (community) design-media class Skill, maintained by publisher user_87b8e34f, with account and asset library capabilities provided by Spong Music at the backend.

In one sentence: an AI song creation tool for Chinese-language creators, supporting songwriting via briefs, lyrics-to-melody, and generation directions for pop songs, brand-oriented content, and song demos (see SKILL.md in the Skill package). In the assistant, you provide the theme, mood, style, lyrics, or use case, and receive a complete song, preview, download, and project link.

Official page: SkillHub - AI Song
Skill coordinates: @user_87b8e34f/ai-song
Tags: requires_api_key=true (API Key must be configured)

Core Features

The following capabilities are all from the SKILL.md / INSTALL.md in the v1.3.2 release package, and can be cross-referenced with the official description:

  1. One-sentence / brief-to-melody: Use song create --brief to describe the theme and style, then preview and download after generation completes.
  2. Lyrics-to-melody: The CLI documentation indicates the API generations/from-lyrics can be used (body includes lyrics, title, style_tags); when the sandbox restricts access, curl can be used to call the same interface.
  3. Full delivery: Generation results include project links; each project provides exactly two candidate songs, which must both be presented to the user.
  4. Account & asset sync: Interoperability with the Spong Music mini-program and lexuan.club for points, membership, and asset library.
  5. Agent-side execution: The recommended tool name is aimv, with the actual command being node <install_dir>/bin/aimv.js ... (not an MCP server).

Trigger semantics include: AI song, AI song generation, AI singing, AI songwriting, AI composing, generate song, write a song, etc. (full list see SKILL.md).

Installation & Activation

Install via SkillHub

The official requirement is to follow SkillHub Installation & Priority Source Configuration. When installing the skill, you must use --dir to point to the current Agent’s skills directory, otherwise it will default to installing to ./skills/ which may not be recognized.

First check the CLI:

command -v skillhub && skillhub --version

If not installed, run the full installation (recommended by documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install this Skill (replace <skills dir> with your current client’s path):

skillhub install @user_87b8e34f/ai-song --dir <skills dir>

Commonly used skills directories (excerpted from skillhub.md):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The SkillHub page also supports Zip download; the package already contains runnable code, no need for pnpm install or build. Minimum Node >= 18.

First-time Connection (API Key)

Before generation, you need to complete the Spong Music account connection. The Agent should directly execute:

node <install_dir>/bin/aimv.js init

The CLI will provide a connection page: https://lexuan.club/skills/connect?slug=ai-song&from=skill. After the user logs in via web (new users can auto-register), copy the API Key, then the Agent executes:

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

The Key is long-term valid, typically only needs to be configured once. Non-interactive mode is also available: node ./bin/aimv.js config set-api-key --stdin.

Client-specific Differences (INSTALL.md from release package)

  • Codex: Copy SKILL.md to ~/.codex/skills/ai-song/ (Windows: %USERPROFILE%\.codex\skills\ai-song), restart Codex; do not use codex mcp add to register aimv.
  • Claude / Claude Code: Connect via the Skills directory or local command tool supported by the current version; tool configuration is command: node, args pointing to the absolute path of bin/aimv.js.
  • OpenClaw etc.: Can register a local tool named aimv, or let the Agent read SKILL.md and directly run shell commands.

Cursor is not separately covered in INSTALL.md; follow skillhub.md to install the package to ~/.cursor/skills/ and ensure the Agent can read SKILL.md and execute node .../bin/aimv.js.

Typical Usage

Natural Language Triggering

You can directly say in conversation (from official examples):

  • AI song, help me write a light-hearted Chinese pop song with the theme of summer travel
  • Help me generate a campus folk song suitable for graduation season
  • Turn these lyrics into a complete AI song

When the Agent has shell access, it should run the CLI itself rather than having the user manually copy commands.

Generate with brief and wait for completion:

node <install_dir>/bin/aimv.js song create --brief "AI song, help me write a light-hearted Chinese pop song with the theme of summer travel" --wait
node <install_dir>/bin/aimv.js song create --brief "Help me generate a campus folk song suitable for graduation season" --style folk mandopop --wait

Verify environment and configuration:

node <install_dir>/bin/aimv.js config show

When Sandbox Only Allows curl

  1. First set AIMV_FORCE_CURL=1 and retry the original command;
  2. If still unavailable, follow SKILL.md to use from-brief / from-lyrics to call https://music.68zysm.cn/api/v3, with request headers including X-App-Id: ai-song and X-AIMV-Skill-Slug: ai-song, poll the project status, then download audio_url.

Use Cases & Notes

Who it’s for: Chinese-language creators who need AI song generation, AI composing, or “write a song”; teams that need song demos for short videos or brand content, or want to quickly get audible finished products from lyrics.

Usage Notes:

  • Relies on Spong Music account and points/membership strategy; when 402 indicates insufficient points or 429 indicates rate limiting, the CLI will provide pay_url; recharge or upgrade via web before retrying.
  • When auth_required, follow connect_url to complete Key configuration.
  • wait_timeout means background generation is still ongoing; query later rather than treating it as a failure.
  • Default API Base: https://music.68zysm.cn/api/v3; generally no change needed, special environments can use config set-base-url.

SkillHub crawled data (2026-10-19): category design-media, rating 100000, downloads 5903; Tencent Cloud SkillHub mirror page shows approximately 5.9K downloads, AI rating 4.6/5.0, subject to the store page at time of installation.

Conclusion

AI Song consolidates Chinese-language songwriting requirements into the Agent-callable aimv CLI: install @user_87b8e34f/ai-song, connect the Spong Music API Key once, and you can complete brief-to-melody, lyrics-to-melody, and preview/download within conversations, and continue editing and management via the mini-program and lexuan.club.

Official entry: https://www.skillhub.cn/skills/user_87b8e34f/ai-song
Installation instructions index: https://skillhub.cn/install/skillhub.md

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

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

Xiaoye