Communitygithub.com

cli-anything-audacity

一个用于音频编辑的有状态命令行界面,遵循本仓库中 GIMP 和 Blender CLI 的相同模式。

cli-anything-audacity 是什么?

cli-anything-audacity 是一个专门为 Audacity 音频编辑软件设计的有状态命令行界面(CLI)。它遵循与 GIMP 和 Blender CLI 相同的设计模式,使 AI 代理能够通过结构化的命令来管理项目、轨道、剪辑、效果、选择、标签和导出操作。该工具支持交互式 REPL 模式,具备撤销/重做功能(最多 50 级历史记录),并且所有命令都可以输出人类可读的表格或机器可读的 JSON 格式(通过 `--json` 标志),非常适合 AI 代理的自动化工作流。它依赖于 Python 3.10+ 和系统上已安装的 Audacity,安装方式为 `pip install cli-anything-audacity`。对于 AI 代理,建议始终使用 `--json` 标志以获取可解析的输出,并检查返回码、解析 stderr 以获取错误信息。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-audacity

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

cli-anything-audacity 是做什么的?

一个用于音频编辑的有状态命令行界面,遵循本仓库中 GIMP 和 Blender CLI 的相同模式。

安装

此 CLI 作为 cli-anything-audacity 包的一部分安装:

pip install cli-anything-audacity

前提条件:

  • Python 3.10+
  • 系统上必须安装 audacity

使用方法

基本命令

# 显示帮助
cli-anything-audacity --help

# 启动交互式 REPL 模式
cli-anything-audacity

# 创建新项目
cli-anything-audacity project new -o project.json

# 以 JSON 输出运行(供 AI 代理使用)
cli-anything-audacity --json project info -p project.json

REPL 模式

当不带子命令调用时,CLI 进入交互式 REPL 会话:

cli-anything-audacity
# 使用制表符补全和历史记录交互式输入命令

命令组

项目

项目管理命令。

命令描述
new创建新项目
open打开现有项目
save保存当前项目
info显示项目信息
settings查看或更新项目设置
json打印原始项目 JSON

轨道

轨道管理命令。

命令描述
add添加新轨道
remove按索引移除轨道
list列出所有轨道
set设置轨道属性(名称、静音、独奏、音量、声像)

剪辑

剪辑管理命令。

命令描述
import探测/导入音频文件(显示元数据)
add向轨道添加音频剪辑
remove从轨道移除剪辑
trim修剪剪辑的开始和/或结束
split在给定时间位置分割剪辑
move将剪辑移动到新的开始时间
list列出轨道上的剪辑

效果组

效果管理命令。

命令描述
list-available列出所有可用效果
info显示效果的详细信息
add向轨道添加效果
remove按索引移除效果
set设置效果参数
list列出轨道上的效果

选择

选择管理命令。

命令描述
set设置选择范围
all选择全部(整个项目持续时间)
none清除选择
info显示当前选择

标签

标签/标记管理命令。

命令描述
add在时间位置添加标签
remove按索引移除标签
list列出所有标签

媒体

媒体文件操作。

命令描述
probe分析音频文件
check检查所有引用的音频文件是否存在

导出组

导出/渲染命令。

命令描述
presets列出导出预设
preset-info显示预设详细信息
render将项目渲染为音频文件

会话组

会话管理命令。

命令描述
status显示会话状态
undo撤销上次操作
redo重做上次撤销的操作
history显示撤销历史

示例

创建新项目

创建一个新的 audacity 项目文件。

cli-anything-audacity project new -o myproject.json
# 或者使用 JSON 输出以编程方式使用
cli-anything-audacity --json project new -o myproject.json

交互式 REPL 会话

启动支持撤销/重做的交互式会话。

cli-anything-audacity
# 交互式输入命令
# 使用 'help' 查看可用命令
# 使用 'undo' 和 'redo' 进行历史导航

导出项目

将项目导出为最终输出格式。

cli-anything-audacity --project myproject.json export render output.pdf --overwrite

状态管理

CLI 维护会话状态,具有以下功能:

  • 撤销/重做:最多 50 级历史记录
  • 项目持久化:以 JSON 格式保存/加载项目状态
  • 会话跟踪:跟踪修改和变更

输出格式

所有命令均支持双输出模式:

  • 人类可读(默认):表格、颜色、格式化文本
  • 机器可读(--json 标志):结构化的 JSON,供 AI 代理使用
# 人类可读输出
cli-anything-audacity project info -p project.json

# 供 AI 代理使用的 JSON 输出
cli-anything-audacity --json project info -p project.json

针对 AI 代理

以编程方式使用此 CLI 时:

  1. 始终使用 --json 标志 以获得可解析的输出
  2. 检查返回码 - 0 表示成功,非零表示错误
  3. 解析 stderr 以获取失败时的错误信息
  4. 对所有文件操作使用绝对路径
  5. 在导出操作后验证输出文件是否存在

更多信息

  • 完整文档:请参见包中的 README.md
  • 测试覆盖率:请参见包中的 TEST.md
  • 方法论:请参见 cli-anything-plugin 中的 HARNESS.md

版本

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

相关技能