# music-generator

music-generator is a Claude Code skill that generates tracks through ElevenLabs Music API from text prompts or JSON arrangements with section-level controls.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 168 installs · ★ 51 repo stars
- Author: aviz85
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aviz85/claude-skills-library/tree/HEAD/skills/music-generator/SKILL.md
- Updated: 2026-07-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/music-generator

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill music-generator -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/music-generator/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/music-generator/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill music-generator -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/music-generator/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill music-generator -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/music-generator/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aviz85/claude-skills-library skills/music-generator
```

2. **Manually: put the files in place**
- File: `.github/skills/music-generator/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill music-generator -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aviz85/claude-skills-library --path skills/music-generator
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/music-generator/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill music-generator -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aviz85/claude-skills-library/tree/HEAD/skills/music-generator/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [elevenlabs-music-generation](https://affpapa.org/en/nevibecode/skills/elevenlabs-music-generation.md) — skill · 387700 installs
- [ai-music](https://affpapa.org/en/nevibecode/skills/ai-music.md) — skill · 379800 installs
- [music](https://affpapa.org/en/nevibecode/skills/music.md) — skill · 15600 installs
- [music-video-subtitle-generator](https://affpapa.org/en/nevibecode/skills/music-video-subtitle-generator.md) — skill · 3700 installs
- [ai-music-album](https://affpapa.org/en/nevibecode/skills/ai-music-album.md) — skill · 2900 installs
- [minimax-music-gen](https://affpapa.org/en/nevibecode/skills/minimax-music-gen.md) — skill · 1700 installs

From the same set: [aviz85/claude-skills-library](https://affpapa.org/en/nevibecode/by/aviz85/claude-skills-library.md) — 7 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
