cli-anything-audacity
它能做什么
这个技能让智能体通过 Audacity 的命令行界面编辑音频。适合希望用文字命令而不是鼠标点击来编辑声音的人。
适用场景
- ✓当你想从命令行创建或打开一个音频编辑项目的时候。
- ✓当你想在项目中添加或删除音轨时。
- ✓当你想自动化重复的音频编辑步骤的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/audacity/agent-harness/cli_anything/audacity/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请创建一个新的音频项目,添加两个音轨,并显示项目信息。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能运行 Audacity 命令行界面,并在命令之间保持当前项目的状态。然后你的智能体就可以添加音轨、修改设置并显示项目详情。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-audacity
A stateful command-line interface for audio editing, following the same patterns as the GIMP and Blender CLIs in this repo.
Installation
This CLI is installed as part of the cli-anything-audacity package:
pip install cli-anything-audacity
Prerequisites:
- Python 3.10+
- audacity must be installed on your system
Usage
Basic Commands
# Show help
cli-anything-audacity --help
# Start interactive REPL mode
cli-anything-audacity
# Create a new project
cli-anything-audacity project new -o project.json
# Run with JSON output (for agent consumption)
cli-anything-audacity --json project info -p project.json
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-audacity
# Enter commands interactively with tab-completion and history
Command Groups
Project
Project management commands.
| Command | Description |
|---|---|
new |
Create a new project |
open |
Open an existing project |
save |
Save the current project |
info |
Show project information |
settings |
View or update project settings |
json |
Print raw project JSON |
Track
Track management commands.
| Command | Description |
|---|---|
add |
Add a new track |
remove |
Remove a track by index |
list |
List all tracks |
set |
Set a track property (name, mute, solo, volume, pan) |
Clip
Clip management commands.
| Command | Description |
|---|---|
import |
Probe/import an audio file (show metadata) |
add |
Add an audio clip to a track |
remove |
Remove a clip from a track |
trim |
Trim a clip's start and/or end |
split |
Split a clip at a given time position |
move |
Move a clip to a new start time |
list |
List clips on a track |
Effect Group
Effect management commands.
| Command | Description |
|---|---|
list-available |
List all available effects |
info |
Show details about an effect |
add |
Add an effect to a track |
remove |
Remove an effect by index |
set |
Set an effect parameter |
list |
List effects on a track |
Selection
Selection management commands.
| Command | Description |
|---|---|
set |
Set selection range |
all |
Select all (entire project duration) |
none |
Clear selection |
info |
Show current selection |
Label
Label/marker management commands.
| Command | Description |
|---|---|
add |
Add a label at a time position |
remove |
Remove a label by index |
list |
List all labels |
Media
Media file operations.
| Command | Description |
|---|---|
probe |
Analyze an audio file |
check |
Check that all referenced audio files exist |
Export Group
Export/render commands.
| Command | Description |
|---|---|
presets |
List export presets |
preset-info |
Show preset details |
render |
Render the project to an audio file |
Session Group
Session management commands.
| Command | Description |
|---|---|
status |
Show session status |
undo |
Undo the last operation |
redo |
Redo the last undone operation |
history |
Show undo history |
Examples
Create a New Project
Create a new audacity project file.
cli-anything-audacity project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-audacity --json project new -o myproject.json
Interactive REPL Session
Start an interactive session with undo/redo support.
cli-anything-audacity
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigation
Export Project
Export the project to a final output format.
cli-anything-audacity --project myproject.json export render output.pdf --overwrite
State Management
The CLI maintains session state with:
- Undo/Redo: Up to 50 levels of history
- Project persistence: Save/load project state as JSON
- Session tracking: Track modifications and changes
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-audacity project info -p project.json
# JSON o
常见问题
我需要安装 Audacity 吗?
需要。该技能运行前,你的系统必须已安装 Audacity。
它能显示项目详情吗?
可以。它可以显示项目信息、设置以及原始项目数据。
它是交互式的吗?
是的。你可以不带命令运行它,进入带历史记录和 Tab 补全的交互式会话。
详情
作者的原始描述
Command-line interface for Audacity - A stateful command-line interface for audio editing, following the same patterns as the GIMP and Ble...
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3183
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。