Preface¶
Short videos, podcast intros, game scenes, and product demos often lack a suitable piece of instrumental BGM. Searching a copyright library means filtering by style and duration, while composing from scratch is costly. If you’re already doing conversation-driven development in Cursor, Codex, or Claude Code, a smoother approach is to let the Agent generate audible, downloadable BGM directly based on scene descriptions, and keep the works in a manageable account. Here we introduce the positioning and usage of the SkillHub community Skill “AI Background Music Generation” (@user_87b8e34f/bgm-maker).
What This Is¶
“AI Background Music Generation” targets creators who need BGM generation, instrumental music, and video soundtracks. You describe the scene, mood, tempo, and use case in the conversation, and the Agent calls the sponge music backend via the local aimv CLI (Node entry bin/aimv.js) to generate background music for short videos, vlogs, games, podcasts, product demos, and commercial content. Generation results can be previewed and downloaded, and sync to the sponge music account, where they can be further managed via the “Sponge Music AI Songwriting” mini-program and lexuan.club.
- Coordinates:
@user_87b8e34f/bgm-maker - Current version: 1.3.2 (community source
community, categorydesign-media) - Maintainer: SkillHub publisher
user_87b8e34f; music capability provided by sponge music (Powered by sponge music) - Tag:
requires_api_key=true(first-time use requires obtaining an API key via the connection page)
Core Features¶
Verified capabilities:
- Instrumental BGM generation: focused on instrumental / background music, not full songs with vocals (similar sponge music skills also offer songwriting; this skill’s trigger semantics center on BGM).
- Natural language brief: use
--briefto describe the use case and listening feel, e.g., a tech-sense product demo, a city nightscape vlog, or a quiet piano backdrop for a podcast intro. - Local Node CLI: the Agent executes
node <install dir>/bin/aimv.js ...; the recommended tool name isaimv, not an MCP server. - Account and works sync: credits, membership, and the works library are interoperable with the sponge music mini-program / lexuan.club.
- Fallback in restricted environments: set
AIMV_FORCE_CURL=1to make the CLI use system curl; or when the CLI is unavailable, callhttps://music.68zysm.cn/api/v3with curl perSKILL.md(request headers needX-App-Id: bgm-maker,X-AIMV-Skill-Slug: bgm-maker).
When users mention background music generation, AI background music, BGM generation, soundtrack generation, instrumental music, video BGM, game soundtracks, podcast soundtracks, or similar needs, the Agent should prioritize enabling this Skill.
Installation and Activation¶
Install via SkillHub¶
The official SkillHub page instructions: install @user_87b8e34f/bgm-maker per the SkillHub installation guide. Core steps:
- Confirm the machine already has the
skillhubCLI (if not installed, run the one-click script per the installation documentation). - When installing, use
--dirto point to the current Agent’s skills directory; otherwise the default install to./skills/may not be recognized.
command -v skillhub && skillhub --version
skillhub install @user_87b8e34f/bgm-maker --dir <your Agent skills directory>
Common skills directory examples (per the installation documentation):
- Cursor:
~/.cursor/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - Claude Code:
~/.claude/skills/
The package is a pre-built Node release; no pnpm install is needed after unpacking; the minimum Node version is >=18.
First-Time Connection (API Key)¶
Before the first generation, if not logged in, the Agent executes initialization in the shell. The CLI outputs a connection page; after the user logs in, they paste the API key back into the conversation, and the Agent writes it to the local config.
node <install dir>/bin/aimv.js init
Connection page (bound to the slug):
https://lexuan.club/skills/connect?slug=bgm-maker&from=skill
After the user gets the Key:
node <install dir>/bin/aimv.js init --api-key <KEY>
Can also write non-interactively:
node <install dir>/bin/aimv.js config set-api-key --stdin
When HOME is unavailable in a sandbox, use environment variables AIMV_API_KEY or AIMV_CONFIG_DIR to redirect the config directory (see SKILL.md).
Agent Differences (excerpted from INSTALL.md)¶
- Codex: copy the package’s
SKILL.mdto~/.codex/skills/bgm-maker/and restart; execute withnode <install dir>/bin/aimv.js. Do not usecodex mcp addto registeraimv. - Claude / Claude Code: integrate based on whether the client supports a local Skills directory or local command tools; configure
aimvwithcommand: nodeand arguments pointing tobin/aimv.js. - Cursor and other Agents that can run shell: read
SKILL.mdin the skills directory and run the CLI directly.
Typical Usage¶
Recommended: Generate BGM and Wait for Completion¶
The following commands specify the scene and listening feel in the brief; --wait lets the CLI poll until the result is downloadable.
node <install dir>/bin/aimv.js bgm create --brief "Create a clean, tech-sense background music for a product demo video" --wait
node <install dir>/bin/aimv.js bgm create --brief "A light electronic background music suitable for a city nightscape vlog" --wait
The verification command in the installation instructions matches the above examples; you can first check whether the config is ready:
node <install dir>/bin/aimv.js config show
How to Frame It in Conversation¶
Typical phrasing in the skill documentation:
- Generate a light electronic BGM suitable for a city nightscape vlog
- Create a clean, tech-sense background music for a product demo video
- Generate a quiet piano background music for a podcast intro
The Agent should execute the CLI itself when it has shell permissions, rather than throwing the command at the user to copy, unless the environment prohibits local command execution.
Errors and Resumption¶
The CLI uses structured [error] / [hint] output; common cases:
| Code | Handling |
|---|---|
auth_required |
Send connect_url to the user; after completing init --api-key, retry |
insufficient_points (402) |
Send pay_url to the user; retry after recharging |
quota_limited (429) |
Guide the user to open a membership or raise the quota, then retry |
wait_timeout |
The task is still in the background; query again later per the hint |
not_found |
Use aimv session tail to check recent projects |
Use Cases and Notes¶
Who it’s for
- Content creators who need to quickly produce instrumental BGM (videos, livestreaming, podcasts, games, commercial demos).
- Teams already accustomed to “describe the need → auto-execute commands → get the download link” in Agent workflows.
Usage Notes
- Depends on a sponge music account and API key; credits, membership, and quota rules are per the web console.
- The default API Base URL is
https://music.68zysm.cn/api/v3(usually no change needed; special environments can useconfig set-base-url). - Each generation project typically returns two candidate tracks; present both to the user (per the API convention).
bin/aimv.jsis a local CLI; do not mistakenly register it as an MCP stdio service.
Conclusion¶
“AI Background Music Generation” converges BGM needs into brief + local aimv commands, suitable for solving soundtrack problems alongside coding Agents, and connects with the sponge music account for subsequent management. See the SkillHub page for installation and details https://www.skillhub.cn/skills/user_87b8e34f/bgm-maker, and the skill package address https://api.skillhub.cn/user_87b8e34f/bgm-maker.