music-generator — Claude Code skill for AI music
music-generator is a Claude Code skill that generates tracks through ElevenLabs Music API from text prompts or JSON arrangements with section-level controls.
no license 168 installs ★ 51 updated 2026-07-08
npx skills add aviz85/claude-skills-library --skill music-generator -a claude-codeWhat music-generator does
The skill sends music requests to ElevenLabs Music API. Give it a prompt and duration for a straightforward track, or provide a JSON file to shape a composition with multiple sections and separate style settings. It can generate instrumental or vocal tracks, and --list-styles displays available styles.
Run ./SETUP.md before the first generation, then invoke generate_music.ts with npx ts-node and choose an output path. A valid ELEVENLABS_API_KEY must be present in .env; otherwise the API request fails. Detailed compositions need the required global style arrays and section fields in their JSON configuration.
What it helps with
- generate background music from a written prompt
- create an instrumental intro with a chosen duration
- set different musical moods for each section
- build a multi-part track from a JSON arrangement
Example prompts for the agent
- Generate instrumental background music from my description and save it as
background.mp3. - Create a track with a quiet opening, an energetic middle, and a gradual finish using
composition.json. - Show me the available music styles.
How to install music-generator
1Skills CLI (Vercel)
npx skills add aviz85/claude-skills-library --skill music-generator -a claude-code2Manually: put the files in place
~/.claude/skills/music-generator/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/music-generator/
1Skills CLI (Vercel)
npx skills add aviz85/claude-skills-library --skill music-generator -a codex2Manually: put the files in place
.agents/skills/music-generator/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aviz85/claude-skills-library --skill music-generator -a cursor2Manually: put the files in place
.cursor/skills/music-generator/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aviz85/claude-skills-library skills/music-generator2Manually: put the files in place
.github/skills/music-generator/SKILL.md1Skills CLI (Vercel)
npx skills add aviz85/claude-skills-library --skill music-generator -a gemini-cli2Platform CLI
gemini skills install https://github.com/aviz85/claude-skills-library --path skills/music-generatorManually: put the files in place
.devin/skills/music-generator/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aviz85/claude-skills-library --skill music-generator -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about music-generator
How do I install music-generator in Claude Code?
Run npx skills add aviz85/claude-skills-library --skill music-generator -a claude-code. The skill file is at ~/.claude/skills/music-generator/SKILL.md.
What does music-generator do?
It generates music through ElevenLabs Music API, using either a text prompt or a JSON arrangement. The configuration can define separate sections and request vocals or an instrumental track.
What does music-generator need to run?
Run ./SETUP.md before your first generation and put a valid ELEVENLABS_API_KEY in .env. Multi-section arrangements also need the required style arrays and section fields in the JSON file.