Preface¶
When creating short videos, brand content, or independent works, music production often gets stuck at the “idea without a finished product” stage. Building arrangements from scratch in a DAW or repeatedly switching between web tools and local assets makes it difficult to obtain audible, downloadable tracks in a single conversation. If you want an Agent to initiate generation directly based on a brief, lyrics, or reference audio, and sync the work to a unified account for management, you need to integrate the capabilities of Haimian Music into your local Skills workflow. Below is an introduction to the Haimian Music AI Songwriting (@user_87b8e34f/haimian-music, current version 1.3.2) available on SkillHub.
What is this¶
Haimian Music AI Songwriting is Haimian Music’s official AI music generation Skill. It is categorized under SkillHub design-media and was published by the community (publisher user_87b8e34f). Within AI assistants, it calls the backend via a local Node CLI (entry point bin/aimv.js, recommended tool name aimv), rather than registering bin/aimv.js as an MCP stdio service.
By describing the style, emotion, lyrics, or use case, you can complete the generation within the conversation chain and receive previews, downloads, and project links. The works are synced to your Haimian Music account and can be further managed in the “Haimian Music AI Songwriting” mini-program and the lexuan.club web page. Accounts, credits, memberships, and the music library are interoperable with the Haimian Music mini-program and lexuan.club. SkillHub marks this Skill as requiring an API Key (requires_api_key=true).
Core Features¶
The following capabilities are derived from the official SKILL.md and installation instructions, and can be used in combination as needed:
- AI Songwriting / Original Songs: Use a brief to describe the theme and style to generate complete song candidates.
- Lyrics to Song: Provide lyrics, a title, and style tags to generate a finished song from text.
- Instrumental BGM: Generate background music based on scenes (e.g., product launch openings, short video backing tracks).
- Reference Audio Adaptation: Upload or reference source material to generate a version closer to your needs (requires monitoring the readiness status of reference assets).
- Query and Download: The Agent polls project status, retrieves preview links, and downloads audio via CLI; each project comes with two fixed candidates which must be presented to the user.
Trigger semantics include: Haimian Music, AI music generation, AI songwriting, generate music, lyrics to song, BGM generation, background music, reference audio adaptation, etc.
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI is available:
command -v skillhub && skillhub --version
If not installed, execute the official one-click script (for the full package or CLI only, refer to the SkillHub Installation Documentation):
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¶
When installing, you must use --dir to point to the skills directory recognized by your current client; otherwise, the default ./skills/ may not be loadable by the Agent. Common path examples:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Installation command (consistent with the SkillHub page instructions):
skillhub install @user_87b8e34f/haimian-music --dir ~/.cursor/skills
Replace ~/.cursor/skills with the directory you are actually using. After installation, the Agent should be able to read the SKILL.md in the package and possess the ability to execute node <installation_directory>/bin/aimv.js. The release package requires Node >= 18 and is ready to use immediately upon extraction; there is no need to run pnpm install or pnpm build within the package.
3. First-time Connection (API Key)¶
If not logged in before the first generation, run initialization via the Agent (replace the path with your installation directory):
node <installation_directory>/bin/aimv.js init
The CLI will output a connection page: https://lexuan.club/skills/connect?slug=haimian-music&from=skill. After the user logs in on the web page (new users can auto-register) and copies the API Key, the Agent executes:
node <installation_directory>/bin/aimv.js init --api-key <KEY>
The Key is valid long-term and generally needs to be configured only once. You can also use node ./bin/aimv.js config set-api-key --stdin for non-interactive writing.
Codex: You can copy SKILL.md to ~/.codex/skills/haimian-music/SKILL.md and restart Codex; when executing, still use node <installation_directory>/bin/aimv.js. Do not use codex mcp add to treat aimv as an MCP server.
Claude Series: Depends on whether the current client supports local Skills / local command tools. Configure the tool according to INSTALL.md with command: node and args pointing to the absolute path of bin/aimv.js.
Typical Usage¶
Provided the API Key is connected and the Agent can execute shell commands, initialization, generation, querying, and downloading should be run directly by the Agent via CLI, rather than asking the user to manually copy long command strings (unless the environment prohibits local command execution).
Official recommended examples:
node <installation_directory>/bin/aimv.js song create --brief "Write a lighthearted Chinese pop song with the theme of summer travel" --wait
node <installation_directory>/bin/aimv.js song create --lyrics "..." --title "Summer Travel" --style mandopop --wait
node <installation_directory>/bin/aimv.js bgm create --brief "Electronic BGM suitable for a product launch opening" --wait
To verify the environment and configuration, you can first run:
node <installation_directory>/bin/aimv.js config show
If the sandbox only allows curl for networking, you can set AIMV_FORCE_CURL=1 and retry the original command; or, if the CLI is unavailable, use curl to call https://music.68zysm.cn/api/v3 according to SKILL.md. Request headers must include fields such as X-API-Key, X-App-Id: haimian-music, and X-AIMV-Skill-Slug: haimian-music. In environments without HOME, AIMV_CONFIG_DIR and AIMV_API_KEY can be used to replace local configuration.
Scenarios and Notes¶
Who it is for: Professional creators and content teams who need to embed “songwriting, lyric-to-song, BGM, reference adaptation” into their Agent workflows; teams that want to get dual candidate tracks within the conversation and continue editing in the mini-program or lexuan.club.
Usage Notes:
- Credits and Membership: In case of
insufficient_points(402) orquota_limited(429), the CLI[error]will includepay_url=. You need to complete the recharge or activate membership on the web page and then retry. - Authentication: When
auth_requiredoccurs, followconnect_urlto complete the connection; do not skip the API Key. - Long Tasks:
wait_timeoutindicates that generation is still ongoing in the background. Follow the[hint]to query later; this does not mean failure. - Reference Adaptation: When
reference_not_readyoccurs, confirm the status of the reference assets or project first. - Network Environment: The default API Base is
https://music.68zysm.cn/api/v3; in special environments, you can adjust it withnode ./bin/aimv.js config set-base-url(not needed for general users).
The SkillHub page displays a rating of 100000 and 7324 downloads for this Skill (statistics are based on SkillHub and may change over time).
Conclusion¶
Haimian Music AI Songwriting consolidates Haimian Music’s official songwriting, lyric-to-song, BGM, reference adaptation, and download capabilities into a standard Skill form consisting of SKILL.md plus the local aimv CLI. This facilitates driving music composition with natural language in environments like Cursor, Codex, and Claude Code. Installation and documentation entry points:
- SkillHub Page: https://www.skillhub.cn/skills/user_87b8e34f/haimian-music
- Official Coordinates: https://api.skillhub.cn/user_87b8e34f/haimian-music