agentleFS
aivraraivrar/portable-hermes-agent/skills/extensions/music-server/SKILL.md

music-server

Skill232 starsChanged 5 months agoMITView on GitHub

Generate audio with the portable Music Server.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user wants to install or manage the portable Music Server, load its models, or generate music, songs, or sound …

    line 20
  2. Distinctive:

    If the server isn't running, start it with the terminal tool:

    line 28
  3. Distinctive:

    If it's not installed yet, install it:

    line 33
  4. Very specific:

    Check installed models: GET /api/models/status

    line 39
  5. Very specific:

    Use duration param to control length (5-60 seconds depending on model)

    line 136
  6. Very specific:

    Use terminal tool with python -c "import httpx.

    line 138
  7. Very specific:

    Always check server health first: httpx.get("http://127.0.0.1:9150/health")

    line 139

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Music Generation Server - Hermes Skill

You have access to a portable Music Generation Server running locally. Use it to generate music, songs, and sound effects from text prompts.

When to Use

Use this skill when the user wants to install or manage the portable Music Server, load its models, or generate music, songs, or sound effects locally.

Server Info

  • Base URL: http://127.0.0.1:9150
  • Docs: http://127.0.0.1:9150/docs
  • Location: extensions/music-server/

Quick Start

If the server isn't running, start it with the terminal tool:

cd extensions/music-server && launcher.bat api

If it's not installed yet, install it:

cd extensions/music-server && install.bat

Available Models

Check installed models: GET /api/models/status

Supported models: stable-audio, musicgen, musicgen-large, audioldm2, audioldm2-large, riffusion, mustango, tango2

Core API Endpoints (use via terminal with curl or python httpx)

Generate Music

import httpx, json
r = httpx.post("http://127.0.0.1:9150/api/music/{model}", json={
    "prompt": "upbeat electronic dance music with synths",
    "duration": 10.0,  # seconds
    "guidance_scale": 7.0,
}, timeout=300)
result = r.json()  # Returns {"output_id": "...", "audio_url": "/api/outputs/{id}/audio", ...}

List Available Models

r = httpx.get("http://127.0.0.1:9150/api/models")

Check Model Status (installed/loaded/running)

r = httpx.get("http://127.0.0.1:9150/api/models/status")

Install a Model

r = httpx.post("http://127.0.0.1:9150/api/install/{model_id}")

Download Model Weights

r = httpx.post("http://127.0.0.1:9150/api/install/{model_id}/download")

Load/Unload Model (GPU memory management)

httpx.post("http://127.0.0.1:9150/api/models/{model}/load")
httpx.post("http://127.0.0.1:9150/api/models/{model}/unload")

List Workers

r = httpx.get("http://127.0.0.1:9150/api/workers")

Spawn/Kill Workers

httpx.post("http://127.0.0.1:9150/api/workers/spawn", json={"model": "musicgen", "device": "cuda:0"})
httpx.delete("http://127.0.0.1:9150/api/workers/{worker_id}")
httpx.post("http://127.0.0.1:9150/api/workers/kill-all")

List Generated Outputs

r = httpx.get("http://127.0.0.1:9150/api/outputs")

Get/Download Audio

r = httpx.get("http://127.0.0.1:9150/api/outputs/{entry_id}/audio")
# Returns audio file bytes

Get Model Parameters & Presets

r = httpx.get("http://127.0.0.1:9150/api/models/{model}/params")
r = httpx.get("http://127.0.0.1:9150/api/models/{model}/presets")

CLAP Audio Scoring (optional)

httpx.post("http://127.0.0.1:9150/api/clap/start")
r = httpx.post("http://127.0.0.1:9150/api/clap/score", json={"audio_url": "...", "text": "..."})

GPU/Device Info

r = httpx.get("http://127.0.0.1:9150/api/devices")

Available Tools (use these instead of raw API calls)

ToolWhat it does
music_statusCheck server status and model availability
music_generateGenerate music from text prompt
music_modelsList all models with load/install status
music_model_loadLoad a model (spawn GPU worker)
music_model_unloadUnload model to free GPU memory
music_outputsList generated music library
music_installInstall a model (venv + weights download)

Tips

  • Workers auto-spawn when you request a model that isn't loaded yet
  • Use duration param to control length (5-60 seconds depending on model)
  • Generated audio is saved to extensions/music-server/output/
  • Use terminal tool with python -c "import httpx; ..." to call these endpoints
  • Always check server health first: httpx.get("http://127.0.0.1:9150/health")

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.