Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aviz85/claude-skills-library --skill music-generator -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/music-generator/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/music-generator/

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.

Similar skills

SKILL.md skills catalog →

From the same set7

Project sponsors

Companies that keep this analytics open