Przejdź do treści
Biblioteka skilli
Marketing i treści · Budowanie i kod

music-generation

/music-generation

Generuje piosenkę z promptu stylu i nastroju oraz opcjonalnego tekstu przez API muzyczne MiniMax: muzyka w tle, piosenki przewodnie, jingle i utwory instrumentalne.

Repozytorium
deer-flow ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/generate.py

Co robi i kiedy

Generuje piosenkę z promptu stylu i nastroju oraz opcjonalnego tekstu przez API muzyczne MiniMax: muzyka w tle, piosenki przewodnie, jingle i utwory instrumentalne.

Oryginalny opis (EN)

Use this skill when the user requests to generate, create, compose, or produce music or songs — background music, theme songs, jingles, or instrumental tracks. Generates a song from a style/mood prompt and optional lyrics via the MiniMax music API.

Jak działa

  1. Overview
  2. Workflow
  3. Environment
  4. Output Handling
  5. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 76 linii, 408 słów
Podgląd SKILL.md
---
name: music-generation
description: Use this skill when the user requests to generate, create, compose, or produce music or songs — background music, theme songs, jingles, or instrumental tracks. Generates a song from a style/mood prompt and optional lyrics via the MiniMax music API.
---

# Music Generation Skill

## Overview

This skill generates songs (vocal or instrumental) from a structured JSON spec using the
MiniMax music generation API (`/v1/music_generation`). You describe the style/mood/scene in
`prompt`, optionally provide `lyrics`, and the script returns an MP3.

## Workflow

### Step 1: Understand Requirements

Identify the desired style, mood, scene, language, and whether the user wants vocals or a
pure instrumental track. Decide whether to supply lyrics or let the model write them.

### Step 2: Create the Spec JSON

Write a JSON file in `/mnt/user-data/workspace/` named `{descriptive-name}.json`:

```json
{
  "title": "Rainy Night Cafe",
  "prompt": "indie folk, melancholic, introspective, walking alone, cafe",
  "lyrics": "[verse]\nStreetlights glow the night wind sighs\n[chorus]\nPush the wooden door warm air inside"
}
```

Fields:
- `title` (optional): a human-readable name.
- `prompt` (required): style, mood, and scene. Drives the musical character.
- `lyrics` (optional): song lyrics. Use `\n` between lines and structure tags such as
  `[Intro]`, `[Verse]`, `[Pre Chorus]`, `[Chorus]`, `[Bridge]`, `[Outro]`.
- `is_instrumental` (optional, bool): set `true` for a pure instrumental track (no lyrics needed).

Behavior:
- `lyrics` provided → those lyrics are sung.
- `is_instrumental: true` → instrumental, no vocals.
- neither → the model auto-writes lyrics from `prompt` (`lyrics_optimizer`).

### Step 3: Execute Generation

```bash
python /mnt/skills/public/music-generation/scripts/generate.py \
  --prompt-file /mnt/user-data/workspace/rainy-night-cafe.json \
  --output-file /mnt/user-data/outputs/rainy-night-cafe.mp3
```

Parameters:
- `--prompt-file`: Absolute path to the JSON spec (required).
- `--output-file`: Absolute path for the output MP3 (required).

[!NOTE]
Do NOT read the python file, just call it with the parameters.

## Environment

- `MINIMAX_API_KEY` (required): your MiniMax interface key.
- `MINIMAX_API_HOST` (optional): default `https://api.minimaxi.com`.
- `MINIMAX_MUSIC_MODEL` (optional): default `music-2.6-free` (works for all API-key users);
  paid/Token-Plan users can set `music-2.6` for higher limits.

## Output Handling

- Music is saved as MP3 (typically in `/mnt/user-data/outputs/`).
- Returned audio must decode to nonempty bytes and have an ID3 tag header or MPEG frame signature. This is a header sanity check, not complete audio decoding.
- Malformed, empty or unrecognized audio is rejected before creating the output directory or opening the output file; an existing output is preserved.
- Missing audio reports "MiniMax returned no audio data"; whitespace-only hex reports "MiniMax audio decoded to empty bytes".
- Share the generated file with the user using the present_files tool.
- Offer to iterate on style or lyrics if adjustments are needed.

## Notes

- Keep `prompt` focused on style/mood/scene; put the actual sung words in `lyrics`.
- For non-English songs, write `lyrics` in the target language.
Pliki w paczce (2)
  • SKILL.md 3 KB
  • scripts/generate.py 4 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · bytedance/deer-flow100MIT
letta-ai/letta-code100Apache-2.0
michaelboeding/skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki 575c97f76a26 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100music
    Generuje muzykę przez ElevenLabs Music API: utwory instrumentalne, piosenki z tekstem, muzykę w tle i jingle, z generowaniem z promptu i planami kompozycji.
  • 95mm-music-expert
    Tworzy muzykę modelami MiniMax music-2.5 i music-2.5+: piosenki, utwory instrumentalne i śpiew z tekstu i opisu stylu, prowadząc początkujących przez interaktywny proces.
  • 100music
    Generuje muzykę przez ElevenLabs Music API: utwory instrumentalne, piosenki z tekstem, muzykę w tle i jingle, z planami kompozycji i metadanymi.
  • 100minimax-music-gen
    Generuje muzykę, piosenki i ścieżki audio z opisu, tekstu piosenki lub nastroju, także covery i podkłady.
  • 100scenario-minimax-music
    Generuje muzykę modelami MiniMax w Scenario przez MCP: piosenki z wokalem z tekstu, tagi struktury, automatyczne teksty, utwory instrumentalne i covery plików MP3 lub WAV.
  • 100music
    Generuje muzykę przez API ElevenLabs: instrumentale, piosenki z tekstem, muzykę tła i dżingle, z metadanymi wyniku.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.