Agent skill · creative production · aiskillstore

music-generation

Tools, patterns, and utilities for generating professional music with realistic instrument sounds. Write custom compositions using music21 or learn from existing MIDI files.

Why this skill is useful

Provides specific patterns and utilities for algorithmic music composition that the AI wouldn't reliably generate on its own.

What it needs

Requires ffmpeg, fluid-soundfont-gm, fluid-soundfont-gs, fluidsynth installed locally. About 10k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Quick Start (Read This First!) IMPORTANT: This file is located at /mnt/skills/private/music-generation/SKILL.md If you need to reference this skill again during your session, read that exact path directly. Do not explore directories or use find commands - just read the file path above. Philosophy This skill provides tools and patterns for music composition, not pre-baked solutions. You should use your intelligence and the music21 library to compose dynamically based on user requests. Core Principle: Write custom code that composes music algorithmically rather than calling functions with hardcoded melodies. Installation & Setup Quick Installation Run the automated installer for complete setup: This installs all system dependencies, Python packages, and verifies the installation. Note: The install script may display "error: externally-managed-environment" messages at the end. These are expected and can be safely ignored - the dependencies are already installed. If you see these messages, the installation was successful. Manual Installation Alternatively, install dependencies manually: System Dependencies: Python Dependencies: The requirements.txt includes: music21, midi2audio, pydub, mido, numpy, scipy. Available SoundFonts Traditional Pipeline (Orchestral/Acoustic): /usr/share/sounds/sf2/FluidR3GM.sf2 (141MB, General MIDI soundfont for orchestral/classical) /usr/share/sounds/sf2/default.sf2 (symlink to best available) Electronic Pipeline: No soundfonts required - uses real-time synthesis for all electronic sounds Quick Start: Write Custom Compositions Basic Music Generation Pattern Key Concepts Always create downloadable MP3 files (not HTML players) All output goes to /mnt/user-data/outputs/ Use music21.instrument classes: instrument.Violin(), instrument.Violoncello(), instrument.Piano(), instrument.Trumpet(), etc. Generate notes programmatically - avoid hardcoded sequences Choosing the Right Rendering Pipeline CRITICAL: This skill supports TWO rendering pipelines. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/music-generation

View the source on GitHub

Browse the @skills marketplace