# Audio Track Production

End-to-end audio production workflow with stems, effects, archiving, and verification

- Repository: https://github.com/HKUDS/AgentPilot (7784 stars)
- Category: Media
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/AgentPilot --skill audio-track-production -g -a claude-code -y`
Codex: `npx skills add HKUDS/AgentPilot --skill audio-track-production -g -a codex -y`
Cursor: `npx skills add HKUDS/AgentPilot --skill audio-track-production -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/AgentPilot --skill audio-track-production -g -a gemini-cli -y`

## Description

End-to-end audio production workflow with stems, effects, archiving, and verification

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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:

1. Verify reference audio file
2. Calculate timing parameters from BPM and duration
3. Generate stems with explicit sample type specifications
4. Apply audio effects via signal processing
5. Export master track and all stems
6. Archive deliverables in zip format
7. Verify all outputs match specifications

## Step 1: Verify Reference File

Before processing, verify the reference audio file is valid and readable:

```python
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:

```python
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

The rest: https://github.com/HKUDS/AgentPilot/blob/HEAD/openspace/benchmarks/gdpval/skills/audio-track-production/SKILL.md
