agentleFS
AgriciDanielAgriciDaniel/claude-music/skills/claude-music-enhance/SKILL.md

claude-music-enhance

Skill65 starsChanged 4 months agoMITView on GitHub

Post-processing for generated music. Default path is FFmpeg loudness normalization (fast, CPU-only). Escape hatches: AI vocal denoise for artifacts, stem separation for surgical edits. Both escape-hatch paths reuse tooling from the claude-video skill.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use only when you hear artifacts in vocals (hissing, AI mush, robot tones).

    line 34
  2. Very specific:

    Use only when you need to fix vocals/drums/bass/other separately, then remix.

    line 47
  3. Distinctive:

    Not needed for normal enhancement.

    line 48

≈ “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

claude-music-enhance — Audio Post-Processing

Default path: loudness normalization (recommended first)

Loudness-normalize to the platform target in one ffmpeg call. This is the right answer 90% of the time — the generated audio is already clean; it just needs the level right.

# Two-pass loudnorm to -14 LUFS (Spotify/YouTube/Apple/TikTok all target this).
bash ~/.claude/skills/claude-music/scripts/music_export.sh spotify input.flac output.flac

See references/post-processing.md for the full platform × LUFS table and the measure-then-apply two-pass recipe if you need manual control.

Escape hatch 1 — AI vocal denoise (only if audible artifacts)

Use only when you hear artifacts in vocals (hissing, AI mush, robot tones). FFmpeg normalization won't help; you need DeepFilterNet3.

source ~/.video-skill/bin/activate
python3 ~/.claude/skills/claude-video/scripts/audio_enhance.py denoise \
  input.flac --output output_clean.flac

Requires claude-video skill + DeepFilterNet3 weights. <1 GB VRAM.

Escape hatch 2 — stem separation (only if you need surgical edits)

Use only when you need to fix vocals/drums/bass/other separately, then remix. Not needed for normal enhancement.

source ~/.video-skill/bin/activate
python3 ~/.claude/skills/claude-video/scripts/audio_enhance.py separate \
  input.flac --model htdemucs_ft --output-dir ./stems/

Produces vocals.wav, drums.wav, bass.wav, other.wav. ~7 GB VRAM.

Decision tree

Is the generated audio too quiet or too loud?
    → use the default path (loudnorm)

Do you hear specific vocal artifacts?
    → escape hatch 1 (denoise) THEN default path (loudnorm)

Do you need to fix one stem (e.g., reduce drums, retune vocal) before final mix?
    → escape hatch 2 (separate) → edit stem → remix → default path (loudnorm)

Format conversion

For platform-specific export (codec/bitrate/sample-rate), use claude-music-export — it wraps music_export.sh with the right flags per target (Spotify FLAC, YouTube MP3 320k, TikTok M4A 256k, etc.).

Scripts used here

  • scripts/music_export.sh — default loudnorm + format conversion path.
  • ~/.claude/skills/claude-video/scripts/audio_enhance.py — AI denoise and stem separation (external skill; must be installed separately).

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.