Agent skill

byted-las-audio-extract-and-split

Quellcode ansehen: bytedance/agentkit-samples

#129Globales Ranking · von 129 SkillsCritical

Installation

npx skills add bytedance/agentkit-samples --skill byted-las-audio-extract-and-split

42

Installationen

EU-hosted inference API

Power your AI agent skills with open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

MiniMax

MiniMax M3

$0.40 / $1.40

per M tokens

Z.ai

GLM 5.3 Flash

$0.20 / $0.60

per M tokens

MoonshotAI

Kimi K3

$4.00 / $18.00

per M tokens

DeepSeek

DeepSeek V4.1 Flash

$0.40 / $1.40

per M tokens

音频提取与切分 (las_audio_extract_and_split)

当用户需要从视频中提取音轨,或将长音频按规则(如时长、静音)切分时使用本 Skill。

注意事项(⚠️ 必须遵守)

  • 千万不要让用户输入 AccessKey 和 SecretKey。
  • 下载文件只能使用 las-cli tos download 命令(兼容 tos 和非 tos 资源)。
  • las-cli operators call 和 las-cli price 命令的输出结果非常重要,必须完整返回给用户。

工作流(严格按步骤执行)

复制此清单并跟踪进度:

执行进度:
- [ ] Step 0: 前置检查
- [ ] Step 1: 初始化与准备
- [ ] Step 2: 预估价格
- [ ] Step 3: 执行任务并呈现结果
- [ ] Step 4: 失败排查

Step 0: 前置检查

版本检查(必须):请执行 las-cli install 0.3.8。若 las-cli 命令不存在,则执行 npm i -g "@volcengine/las-cli@0.3.8"

  • 新版本提醒:请执行 npm info @volcengine/las-cli version 查看当前可用的最新 Skill 版本(las-cli 与 Skill 版本一一对应)。若返回版本高于本 Skill 标注版本,请先提示用户升级当前 Skill。升级方式:请用户发送自然语言指令 帮我安装byted-las-audio-extract-and-split技能,等待自动完成安装即可。
  • 认证检查:优先使用运行时自动注入的平台身份;若当前环境未自动注入,再运行 las-cli config show 确认旧版凭证 las.apiKey 和 volcengine.region 已配置。

Step 1: 初始化与准备

  • 上传资源: 若输入为本地媒体文件,先上传到 TOS。
    las-cli tos upload ./input.mp4
    # 假设返回 "tos_url": "tos://my-bucket/inputs/xxx.mp4"
  • 准备参数: 创建 params.json,指定输入、输出及切分策略,注意 output_path 加上唯一标识,避免覆盖已存在文件。
    {
      "input_path": "tos://my-bucket/inputs/xxx.mp4",
      "output_path": "tos://my-bucket/outputs/audio_split/",
      "split_mode": "duration",
      "split_duration": 60
    }

Step 2: 预估价格(⚠️ 必须获得用户确认)

las-cli price 命令的输出结果非常重要,不要做任何精简、修改或摘要处理。

  • 算价: 必须完整返回以下命令输出的结果(markdown 格式)
    las-cli price las_audio_extract_and_split \
      --params-file ./params.json \
      --format markdown
  • 用户确认: 输出预估价格后,必须等待用户确认。

Step 3: 执行任务并呈现结果(⚠️ 直接输出命令执行结果,不要精简)

las-cli operators call 命令的输出结果非常重要,不要做任何精简、修改或摘要处理。

  • 执行: 必须完整返回以下命令输出的结果(markdown 格式)
    las-cli operators call las_audio_extract_and_split \
      --params-file ./params.json \
      --format markdown \
      --out ./result.md

Step 4: 失败排查

保持原样。

  • 检查输入/输出: 确认 TOS 路径是否存在、可读、可写。
  • 检查配置: las-cli config show。
  • 查看帮助: las-cli operators help las_audio_extract_and_split,检查切分参数。

So verwenden Sie diesen Skill

  1. 1

    Install byted-las-audio-extract-and-split by running npx skills add bytedance/agentkit-samples --skill byted-las-audio-extract-and-split in your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert.

  2. 2

    Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.

  3. 3

    Der Skill verbessert das Verständnis Ihres Agenten für byted-las-audio-extract-and-split, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.

Was Sie erhalten

Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.

Kompatibilität

Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.