AI Songwriting: Generating Complete Songs via Chinese Descriptions in AI Assistant

Preface

When creating background music for short videos, event demos, or drafting lyrics, the common practice is to switch to web tools, fill out forms, wait for generation, and then copy the links back. This workflow is lengthy, and the output often lacks alignment with historical projects in your account. If you are already using agents in environments like Cursor or Claude Code to write copy or modify code, a more seamless approach is to treat “writing a song” as an executable Skill: describe the theme, style, or lyrics in natural language, allowing the Agent to call a local CLI to handle generation and return preview links and downloads directly.

Below is an introduction to the positioning, capabilities, and installation usage of the SkillHub community Skill AI Songwriting (@user_87b8e34f/ai-songwriting, current version 1.3.2).

What is this

AI Songwriting is an Agent Skill designed for Chinese music creators, maintained by the community publisher user_87b8e34f. It is categorized under design-media, with core capabilities powered by Sponge Music (海绵音乐). User accounts, credits, memberships, and the music library are interoperable with the “Sponge Music AI Songwriting” Mini Program and the lexuan.club website.

In short: describe the theme, style, mood, lyrics, or usage scenarios within an AI conversation to generate complete songs, complete with preview links and audio downloads. The works are synced to your Sponge Music account for easy management via the Mini Program or the web.

Unlike “simply composing a lyric snippet in chat,” this Skill requires the Agent to invoke the local aimv CLI (a universal local CLI, not an MCP server) via the Node entry point bin/aimv.js within the installation directory to interface with Sponge Music for generation and project status management.

Core Features

Based on the Skill description and the SkillHub page, the verified capabilities include:

  1. Chinese Songwriting: Generates complete songs based on themes, styles, moods, or a creative brief (original generation path).
  2. Lyrics-to-Song, Instrumentals, etc.: The CLI/API supports modes such as from-lyrics and instrumental (alongside from-brief, as seen in the Skill’s curl examples).
  3. Deliverables: Generation results include preview links and downloadable audio. Each project yields a fixed two candidate songs, both of which should be presented to the user.
  4. Account Sync: Works are saved to the Sponge Music account and can be managed via the “Sponge Music AI Songwriting” Mini Program and lexuan.club.
  5. Agent-side Execution: When shell access is available, the Agent runs the aimv commands directly to handle initialization, generation, querying, and downloading, rather than asking the user to manually copy a long string of commands.

The SkillHub tag requires_api_key=true indicates that Sponge Music connection and API Key configuration are required before first use (see below).

Installation and Activation

1. Install the SkillHub CLI

If not already installed, follow the official SkillHub installation instructions:

command -v skillhub && skillhub --version

If not installed (full installation or CLI-only):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# CLI only:
# curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install the AI Songwriting Skill

During installation, you must use --dir to point to the current Agent’s skills directory. Otherwise, defaulting to ./skills/ may result in non-recognition. The official page requires installation of the coordinate @user_87b8e34f/ai-songwriting according to the SkillHub Installation Docs.

Example (replace <skills directory> with the corresponding path in your environment):

skillhub install @user_87b8e34f/ai-songwriting --dir <skills directory>

Common paths (from SkillHub installation documentation):

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

Once installed, the entry point within the Skill package is bin/aimv.js. The text below uses <install directory> to denote the actual path of the Skill within the skills directory (e.g., .../@user_87b8e34f/ai-songwriting).

3. Connect to Sponge Music (API Key)

If not logged in before the first generation, the Agent should execute:

node <install directory>/bin/aimv.js init

The CLI will provide a connection link:

https://lexuan.club/skills/connect?slug=ai-songwriting&from=skill

Send this link to the user. After the user logs in on the web (new users can auto-register) and copies the API Key, the Agent should execute:

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

The Key is valid long-term and usually needs to be configured only once. If the sandbox has no HOME directory, you can use environment variables AIMV_API_KEY or AIMV_CONFIG_DIR to point to a writable configuration directory (see Skill documentation).

Typical Usage

Triggering in Conversation

When a user mentions intents such as AI songwriting, AI lyric/composition, automatic songwriting, or Chinese AI songwriting, the Agent should prioritize enabling this Skill. Example user prompts (from official Skill docs):

  • “AI songwriting: Write me a cheerful Chinese pop song about summer travel.”
  • “Use AI to write a campus folk song suitable for graduation season.”
  • “Help me auto-write a song. The style should be youthful, memorable, and suitable for a brand launch event.”

When shell access is available, the Agent should run directly (--wait blocks until the task completes or times out):

node <install directory>/bin/aimv.js song create --brief "AI songwriting: Write me a cheerful Chinese pop song about summer travel" --wait

Example with style tags:

node <install directory>/bin/aimv.js song create --brief "Use AI to write a campus folk song suitable for graduation season" --style folk mandopop --wait

If the environment has registered aimv as a tool, you can also call aimv song create / aimv bgm create and other equivalent logic. If not registered, always use node <install directory>/bin/aimv.js ....

Restricted Network Environments

If the sandbox only allows curl, and aimv reports network errors while curl works, set AIMV_FORCE_CURL=1 first and retry the original command. If the CLI is completely unavailable, the Skill documentation provides an HTTP API consistent with the CLI (https://music.68zysm.cn/api/v3/ai-music/...). Request headers must include X-API-Key, X-Platform: skill, X-App-Id: ai-songwriting, and X-AIMV-Skill-Slug: ai-songwriting. The API Key is obtained from the connection page mentioned above.

Use Cases and Notes

Who it is for

  • Short video, brand, or event creators needing quick song demos;
  • Individuals wanting to explore lyrics and arrangement directions via Chinese briefs instead of building DAW projects from scratch;
  • Users already within AI assistant workflows who want generated results to enter the Sponge Music library automatically.

Usage Notes

  1. Credits & Membership: When credits are insufficient (business code 402) or quotas are restricted (429), the CLI outputs a [error] tag containing pay_url=. Users should be guided to recharge or activate a membership on the web and then retry.
  2. Authentication: If auth_required appears, complete the connection via connect_url. Do not skip init --api-key.
  3. Wait Timeout: wait_timeout indicates that background generation is still ongoing. Query again later as per the [hint]; this does not mean failure.
  4. Do Not Misregister MCP: bin/aimv.js is a Node CLI. Do not register it as an MCP stdio service.

The SkillHub community page displays a rating of 100000 and 8842 downloads for this Skill (statistics vary with SkillHub updates).

Conclusion

AI Songwriting consolidates Chinese songwriting needs into an Agent-executable Skill: describe requirements in natural language, let the local aimv CLI interface with Sponge Music, return previews and downloads, and enable continued management via the Mini Program and lexuan.club.

  • SkillHub Page: https://www.skillhub.cn/skills/user_87b8e34f/ai-songwriting
  • Installation Coordinate: @user_87b8e34f/ai-songwriting
  • Official Address: https://api.skillhub.cn/user_87b8e34f/ai-songwriting
羽毛球分组比赛记分
小程序二维码

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

Xiaoye