claude-music-analyze
Skill65 starsChanged 4 months agoMITView on GitHub
Analyzes audio files for BPM, musical key, loudness (LUFS), duration, format, and quality metrics. Uses ffprobe for metadata and FFmpeg for loudness measurement.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- claude-music-composeSkill
- claude-music-coverSkill
- claude-music-enhanceSkill
- claude-music-exportSkill
- claude-music-generateSkill
- claude-music-librarySkill
- claude-music-loraSkill
- claude-music-randomSkill
- claude-music-repaintSkill
- claude-musicSkill
- claude-music-webSkill
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
- Very specific: line 73
Run ffprobe for format/codec/duration
- Distinctive: line 74
Run loudnorm for LUFS measurement
- Distinctive: line 75
Run librosa for BPM + key (if available)
≈ “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.
Files
claude-music-analyze — Audio Analysis
Quick Analysis (ffprobe)
# Full metadata
ffprobe -v quiet -print_format json -show_format -show_streams input.flac
# Duration only
ffprobe -v quiet -show_entries format=duration -of csv=p=0 input.flac
# Sample rate, channels, codec
ffprobe -v quiet -show_entries stream=sample_rate,channels,codec_name -of csv=p=0 input.flacLoudness Measurement (LUFS)
ffmpeg -i input.flac -af loudnorm=I=-14:TP=-1:LRA=11:print_format=json -f null - 2>&1 | \
grep -A 20 '"input_'Key fields in output:
input_i: Integrated loudness (LUFS)input_tp: True peak (dBTP)input_lra: Loudness range (LU)
BPM Detection
Using ffmpeg's ebur128 for rhythm analysis, or for accurate BPM:
# If librosa is available in ~/.video-skill/ venv:
source ~/.video-skill/bin/activate
python3 -c "
import librosa
y, sr = librosa.load('input.flac', sr=None)
tempo, _ = librosa.beat.beat_track(y=y, sr=sr)
print(f'BPM: {tempo[0]:.1f}' if hasattr(tempo, '__len__') else f'BPM: {tempo:.1f}')
"Key Detection
source ~/.video-skill/bin/activate
python3 -c "
import librosa
import numpy as np
y, sr = librosa.load('input.flac', sr=None)
chroma = librosa.feature.chroma_cqt(y=y, sr=sr)
key_names = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
key_idx = np.argmax(np.mean(chroma, axis=1))
print(f'Estimated key: {key_names[key_idx]}')
"Comprehensive Report
Combine all analyses into a single report:
- Run ffprobe for format/codec/duration
- Run loudnorm for LUFS measurement
- Run librosa for BPM + key (if available)
- Present as structured summary
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
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.

