audio-track-production
What it does
This skill is a repeatable method for creating a full audio track with separate stems, effects and a zip archive. It is for people who need a checked set of audio files as the result.
When to use it
- ✓When I need a master track and several stems delivered together.
- ✓When I want audio effects applied to each part before export.
- ✓When I need the final files packaged in a zip and checked against the requirements.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want a master track and its stems made from my reference song, then zipped and checked. Can you do that?”
5 new skills a week. 1 minute to read.
How it works
The AI checks the reference file, works out the timing from the tempo, generates the stems, applies effects, exports the files, zips them and verifies the results.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Audio Track Production Workflow
This skill provides a reusable pattern for executing audio production tasks that require generating a master track and multiple stems, applying effects, and delivering verified outputs in an archive.
Overview
Follow these steps in order to ensure consistent, verifiable audio production outputs:
- Verify reference audio file
- Calculate timing parameters from BPM and duration
- Generate stems with explicit sample type specifications
- Apply audio effects via signal processing
- Export master track and all stems
- Archive deliverables in zip format
- Verify all outputs match specifications
Step 1: Verify Reference File
Before processing, verify the reference audio file is valid and readable:
import soundfile as sf
# Verify reference file exists and is readable
info = sf.info('reference_track.wav')
print(f"Sample rate: {info.samplerate} Hz")
print(f"Duration: {info.frames / info.samplerate:.2f} seconds")
print(f"Channels: {info.channels}")
print(f"Subtype: {info.subtype}")
Step 2: Calculate Timing Parameters
Derive timing for key section transitions from BPM and total duration:
def calculate_section_transitions(bpm, total_duration_sec, sections):
"""Calculate beat-aligned transition points for song sections."""
beats_per_second = bpm / 60.0
total_beats = total_duration_sec * beats_per_second
# Distribute sections proportionally or by specified ratios
section_durations = {}
cumulative_time = 0
for section_name, beat_count in sections.items():
duration = beat_count / beats_per_second
section_durations[section_name] = {
'start': cumulative_time,
'end': cumulative_time + duration,
'beats': beat_count
}
cumulative_time += duration
return section_durations
# Example usage
sections = calculate_section_transitions(
bpm=120,
total_duration_sec=137,
sections={'intro': 16, 'verse': 32, 'chorus': 32, 'bridge': 16, 'outro': 16}
)
Step 3: Generate Stems with Explicit Sample Type
Always specify sample type explicitly when generating stems to ensure bit-depth consistency:
import numpy as np
import soundfile as sf
def generate_stem(name, duration_sec, sample_rate, subtype='FLOAT'):
"""Generate a stem with explicit sample type specification."""
frames = int(duration_sec * sample_rate)
# Generate audio content (replace with actual synthesis/processing)
t = np.linspace(0, duration_sec, frames)
audio_data = np.sin(2 * np.pi * 440 * t) # Example: 440Hz tone
# Ensure proper data type for specified subtype
if subtype == 'FLOAT':
audio_data = audio_data.astype(np.float32)
elif subtype == 'PCM_24':
audio_data = np.clip(audio_data, -1, 1) * (2**23 - 1)
audio_data = audio_data.astype(np.int32)
sf.write(
f'{name}_stem.wav',
audio_data,
sample_rate,
subtype=subtype, # Explicit subtype for 24-bit float or other
format='WAV'
)
return audio_data
# Example: Generate 4 stems at 48kHz, 137s, 24-bit float
sample_rate = 48000
duration = 137
stems = ['guitars', 'synths', 'bridge', 'bass']
for stem_name in stems:
generate_stem(stem_name, duration, sample_rate, subtype='FLOAT')
Step 4: Apply Effects via scipy.signal
Use scipy.signal for applying audio effects and processing:
from scipy import signal
import numpy as np
def apply_lowpass_filter(audio_data, sample_rate, cutoff_freq=5000):
"""Apply a lowpass filter using scipy.signal."""
nyquist = sample_rate / 2
normalized_cutoff = cutoff_freq / nyquist
# Design Butterworth filter
b, a = signal.butter(4, normalized_cutoff, btype='low')
# Apply filter
filtered_data = signal.filtfilt(b, a, audio_data)
return filtered_data
def apply_reverb_simple(audio_data, sample_rate, decay=0.5, delay_samples=1000):
"""Apply simple reverb effect."""
reverbed = np.copy(audio_data)
decay_factor = decay
for i in range(1, 6):
delayed = np.zeros_like(audio_data)
if len(audio_data) > delay_samples * i:
delayed[delay_samples * i:] = audio_data[:-delay_samples * i]
reverbed += delayed * (decay_factor ** i)
return np.clip(reverbed, -1, 1)
# Apply effects to stems
for stem_name in stems:
data, sr = sf.read(f'{stem_name}_stem.wav')
processed = ap
FAQ
What do I need to start?
A reference audio file, plus the tempo and length of the track.
Does it include example code?
Yes, the guide includes example Python code for checking files and timing.
Where do the results go?
The final files are exported and packaged into a zip archive.
Details
Original description by the author
End-to-end audio production workflow with stems, effects, archiving, and verification
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12842
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
openai-whisper-api
394kLets your agent turn an audio recording into text using OpenAI's transcription service, with options for speaker labels and output files.
openai-whisper
394kHelps your agent transcribe audio on your own computer with the Whisper command, with no API key and no cloud upload needed.
sag
394kHelps your agent read text aloud with ElevenLabs voices and play the result on your computer, with tips for pronunciation and expression.