cli-anything-obs_studio
它能做什么
这个技能让 AI 智能体通过编辑项目文件来修改 OBS Studio 的设置,这些设置称为场景集合。适合希望快速搭建场景的主播和视频创作者。
适用场景
- ✓当你想为直播或录制设置添加或重新排列场景的时候。
- ✓当你需要查看某个项目文件包含哪些场景和来源的时候。
- ✓当你想在不打开 OBS 应用的情况下制作新的 OBS 设置文件的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/obs-studio/agent-harness/cli_anything/obs_studio/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我创建一个 OBS 场景集合,包含一个摄像头场景和一个游戏捕获场景。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体编辑保存场景集合的 JSON 文件,然后保存,供 OBS 之后使用。编辑时无需打开 OBS 程序。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-obs_studio
A stateful command-line interface for OBS Studio scene collection editing, following the same patterns as the Blender CLI harness. Uses a JSON scene collection format. No OBS installation required for editing.
Installation
This CLI is installed as part of the cli-anything-obs_studio package:
pip install cli-anything-obs_studio
Prerequisites:
- Python 3.10+
- obs_studio must be installed on your system
Usage
Basic Commands
# Show help
cli-anything-obs_studio --help
# Start interactive REPL mode
cli-anything-obs_studio
# Create a new project
cli-anything-obs_studio project new -o project.json
# Run with JSON output (for agent consumption)
cli-anything-obs_studio --json project info -p project.json
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-obs_studio
# Enter commands interactively with tab-completion and history
Command Groups
Project
Project management commands.
| Command | Description |
|---|---|
new |
Create a new OBS scene collection |
open |
Open an existing project |
save |
Save the current project |
info |
Show project information |
json |
Print raw project JSON |
Scene Group
Scene management commands.
| Command | Description |
|---|---|
add |
Add a new scene |
remove |
Remove a scene by index |
duplicate |
Duplicate a scene |
set-active |
Set the active scene |
list |
List all scenes |
Source Group
Source management commands.
| Command | Description |
|---|---|
add |
Add a source to a scene |
remove |
Remove a source by index |
duplicate |
Duplicate a source |
set |
Set a source property (name, visible, locked, opacity, rotation) |
transform |
Transform a source (position, size, crop, rotation) |
list |
List all sources in a scene |
Filter Group
Filter management commands.
| Command | Description |
|---|---|
add |
Add a filter to a source |
remove |
Remove a filter from a source |
set |
Set a filter parameter |
list |
List all filters on a source |
list-available |
List all available filter types |
Audio Group
Audio management commands.
| Command | Description |
|---|---|
add |
Add a global audio source |
remove |
Remove a global audio source |
volume |
Set volume for an audio source (0.0-3.0) |
mute |
Mute an audio source |
unmute |
Unmute an audio source |
monitor |
Set audio monitoring type |
list |
List all audio sources |
Transition Group
Transition management commands.
| Command | Description |
|---|---|
add |
Add a transition |
remove |
Remove a transition |
set-active |
Set the active transition |
duration |
Set transition duration in milliseconds |
list |
List all transitions |
Output Group
Output/streaming/recording configuration.
| Command | Description |
|---|---|
streaming |
Configure streaming settings |
recording |
Configure recording settings |
settings |
Configure output settings |
info |
Show current output configuration |
presets |
List available encoding presets |
Session
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 obs_studio project file.
cli-anything-obs_studio project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-obs_studio --json project new -o myproject.json
Interactive REPL Session
Start an interactive session with undo/redo support.
cli-anything-obs_studio
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigation
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 o
常见问题
我需要安装 OBS 吗?
设置说明中提到你的系统应安装 OBS Studio,不过编辑文件时并不需要它处于运行状态。
它使用什么格式?
它使用 JSON 文件,这是一种保存场景集合的纯文本格式。
它可以显示原始项目数据吗?
可以。json 命令会打印原始项目文件,方便你查看每一项设置。
详情
作者的原始描述
Command-line interface for Obs Studio - A stateful command-line interface for OBS Studio scene collection editing, following the same patter...
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3232
- 许可证
- 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 服务,根据文字提示生成幻灯片、文档、网站和图表。