diagnostic-stem-delivery
它能做什么
这项技能使用带有时间码的编辑备注,引导 AI 修复音频项目。它适合需要经过诊断的修复和经过检查的最终导出的音频编辑人员。
适用场景
- ✓当一份文档列出了音频中需要修复的问题时间码的时候。
- ✓当我需要在编辑前,分析特定时刻的咔哒声或音高问题的时候。
- ✓当我需要在交付前检查最终导出文件的时候。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production-enhanced-enhanced-enhanced/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请阅读我编辑备注中的时间码,检查这些位置的音频,并在导出前修复问题。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会从文档中提取时间码,分析每个位置的音频,规划时间安排,制作分轨,进行混音,并验证最终文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Diagnostic Stem Audio Production Workflow
This skill provides a resilient pattern for audio production that emphasizes diagnostic analysis before editing, explicit timecode extraction from documents, incremental verification, fail-fast principles, and mandatory deliverable verification. Each major step produces verified outputs before proceeding, with comprehensive audio diagnostics at specified timecodes.
Overview
Follow these steps in strict order. Each step must complete successfully and pass verification before proceeding to the next:
- Parse timecodes from source documents - Extract edit spots/timecodes from DOCX/text sources
- Perform diagnostic audio analysis - Analyze reference audio at each timecode (pitch, clicks, frequency)
- Calculate timing parameters - Derive section transitions from BPM and duration
- Verify reference audio - Validate input file properties and extract target duration
- Generate and verify each stem individually - One stem at a time with immediate verification
- Detect and resolve duration mismatches - Apply appropriate extension strategy
- Apply edits based on diagnostics - Make informed edits using analysis results
- Mix with verification - Combine stems and verify mix integrity
- Export and verify deliverable - Generate final output with comprehensive checks
Key Principles
- Diagnostics first: Analyze audio at edit points BEFORE making any changes
- Document-driven: Parse timecodes directly from source documents (DOCX, TXT)
- Incremental verification: Verify each stem immediately after generation
- Fail-fast approach: Stop and report errors at each step
- Mandatory export: Final step MUST produce verified deliverable file
- Tool reliability: Use run_shell with inline Python for audio processing (avoid execute_code_sandbox for audio)
Step 0: Parse Timecodes from Source Documents
Extract edit spots and timecodes from document sources. Use python-docx via run_shell for reliable DOCX parsing:
# Parse DOCX file for timecodes and edit spots
python3 -c "
from docx import Document
import re
import sys
doc_path = sys.argv[1] if len(sys.argv) > 1 else 'Bass Edit Spots.docx'
doc = Document(doc_path)
edit_spots = []
timecode_pattern = r'(\d{1,2}:?\d{2}:?\d{2}[.:\d]*)|(\d+[.:\d]+)s'
for para in doc.paragraphs:
text = para.text.strip()
if not text:
continue
# Look for timecodes in various formats
matches = re.findall(timecode_pattern, text, re.IGNORECASE)
if matches:
for match in matches:
timecode = match[0] if match[0] else match[1]
if timecode:
edit_spots.append({'timecode': timecode, 'context': text[:100]})
# Also check tables
for table in doc.tables:
for row in table.rows:
for cell in row.cells:
cell_text = cell.text.strip()
matches = re.findall(timecode_pattern, cell_text, re.IGNORECASE)
for match in matches:
timecode = match[0] if match[0] else match[1]
if timecode:
edit_spots.append({'timecode': timecode, 'context': cell_text[:100]})
print(f'Found {len(edit_spots)} edit spots:')
for i, spot in enumerate(edit_spots, 1):
print(f'{i}. {spot[\"timecode\"]} - {spot[\"context\"][:50]}...')
"
Step 1: Perform Diagnostic Audio Analysis at Timecodes
Before any editing, analyze the reference audio at each identified timecode:
import numpy as np
import soundfile as sf
import librosa
def analyze_audio_at_timecode(filepath, timecode_str, sample_rate=48000):
"""
Perform comprehensive diagnostic analysis at a specific timecode.
Returns dict with:
- pitch_estimate: Dominant frequency/pitch
- click_pop_score: Likelihood of clicks/pops (0-1, higher = more likely)
- frequency_spectrum: Dominant frequency bands
- amplitude: RMS amplitude at timecode
- issues: List of detected issues
"""
# Parse timecode to seconds
timecode_str = timecode_str.replace(':', '.').strip()
if 's' in timecode_str:
timecode_str = timecode_str.replace('s', '')
try:
parts = timecode_str.split('.')
if len(parts) == 3:
seconds = int(parts[0]) * 3600 + int(parts[1]) * 60 + float(parts[2])
elif len(parts) == 2:
seconds = int(parts[0]) * 60 + float(parts[1])
常见问题
它能读取 Word 文件中的备注吗?
可以。该工作流程能从 DOCX 或纯文本文档中提取时间码。
它会自己修复每一个问题吗?
它会根据诊断结果进行编辑,并在每一步继续之前进行检查。
为什么要先分析再编辑?
先查看音频能显示真正的问题所在,因此编辑是基于证据进行的。
详情
作者的原始描述
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #12839
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。