ai-music-generation

ai-music-generation is a skill for Claude Code, Codex from S3YED/appie-kit. It costs 50 tokens per session (1,632 once invoked), scanned A, original, MIT.

A set of instructions for creating music and sound with open-source AI tools. It covers text-to-music, sound effects, melody-based generation, and creating complete songs from lyrics and tags.

In plain words
What is it for?
Use it to generate background music, sound effects, melodies, or multilingual songs from lyrics.
Why use it?
It helps choose the right music generator for the material you have, such as a text description versus finished lyrics. It also explains installation, model choices, and computer requirements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate background music, sound effects, melodies, or multilingual songs from lyrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s3yed/appie-kit/ai-music-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add S3YED/appie-kit --skill ai-music-generation
Clone the repo
git clone --depth 1 https://github.com/S3YED/appie-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-music-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/s3yed/appie-kit/ai-music-generation/github.svg)](https://agentmods.dev/skills/s3yed/appie-kit/ai-music-generation)
Your own site
<a href="https://agentmods.dev/skills/s3yed/appie-kit/ai-music-generation"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/ai-music-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-music-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/s3yed/appie-kit/ai-music-generation"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/ai-music-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,632 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.01632
Opus 5.5 $0.00020 $0.00653
Sonnet 5.5 $0.00010 $0.00326
Haiku 4.5 $0.00005 $0.00163

Measured 3mo ago against content hash 9484b68b552b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-music-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/creative/ai-music-generation/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Music Generation

Overview

Two open-source AI music generation frameworks, each with different strengths:

Framework Best for Output License
AudioCraft (Meta) Text-to-music, text-to-sound, melody conditioning, audio codec WAV/MP3, 32/16kHz MIT
HeartMuLa Lyrics+tags → full songs, Suno-like, multilingual MP3, 48kHz stereo Apache-2.0

Decision:

  • AudioCraft when you need text prompts only, sound effects, melody conditioning, or stereo audio infrastructure
  • HeartMuLa when you have specific lyrics and want a full song with tags (like Suno)

Section A: AudioCraft (MusicGen / AudioGen / EnCodec)

Quick Start

pip install audiocraft
# Or via HuggingFace transformers:
pip install transformers torch torchaudio

Text-to-Music (MusicGen)

import torchaudio
from audiocraft.models import MusicGen

model = MusicGen.get_pretrained('facebook/musicgen-medium')
model.set_generation_params(duration=8, top_k=250, temperature=1.0)

wav = model.generate(["happy upbeat electronic dance music"])
torchaudio.save("output.wav", wav[0].cpu(), sample_rate=32000)

Using HuggingFace Transformers:

from transformers import AutoProcessor, MusicgenForConditionalGeneration
import scipy

processor = AutoProcessor.from_pretrained("facebook/musicgen-small")
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small").to("cuda")

inputs = processor(text=["80s pop with bassy drums"], padding=True, return_tensors="pt").to("cuda")
audio_values = model.generate(**inputs, do_sample=True, guidance_scale=3, max_new_tokens=256)
scipy.io.wavfile.write("output.wav", rate=model.config.audio_encoder.sampling_rate, data=audio_values[0, 0].cpu().numpy())

Model Variants

Model Size Use Case
musicgen-small 300M Quick generation
musicgen-medium 1.5B Balanced quality/speed
musicgen-large 3.3B Best quality
musicgen-melody 1.5B Melody conditioning
musicgen-stereo-* Varies Stereo output
musicgen-style 1.5B Style transfer
audiogen-medium 1.5B Sound effects

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 184 lines · 50 tokens per session scan A 9484b68b552b

Subscribe to this mod's changes

ai-music-generation is a skill published in the GitHub repository S3YED/appie-kit (14 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 1,632 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ai-music-generation compared with skills from other repositories

ai-music-generation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-music-generationS3YED/appie-kitSkill143mo agoMITA50Claude Code, Codex
seo-geo-optimizerViryaZheng/recomby-geoSkill4635mo agoMITA121Claude Code
internal-linking-optimizerViryaZheng/recomby-geoSkill4635mo agoMITA38Claude Code
geo-pipelineViryaZheng/recomby-geoSkill4635mo agoMITA169Claude Code
geo-review-htmlViryaZheng/recomby-geoSkill4635mo agoMITA140Claude Code
content-quality-auditorViryaZheng/recomby-geoSkill4635mo agoMITC44Claude Code
content-writerViryaZheng/recomby-geoSkill4635mo agoMITC163Claude Code