Communitygithub.com

cli-anything-obs-studio

一個用於 OBS Studio 場景集合編輯的有狀態命令列介面。

cli-anything-obs-studio 是什麼?

此技能提供一個功能完備的命令列介面(CLI),用於編輯 OBS Studio 場景集合,無需實際安裝 OBS 即可進行編輯。它採用 JSON 格式來表示場景集合,並遵循與 Blender CLI 類似的有狀態模式。支援主要平台,包括互動式 REPL 模式(含 tab 補全與歷史記錄)以及適合 AI 代理程式使用的 `--json` 輸出格式。功能涵蓋場景、來源、濾鏡、音訊、轉場與輸出設定管理,並內建 50 層的復原/重做歷史記錄,非常適合自動化工作流程。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-obs_studio

一個用於 OBS Studio 場景集合編輯的有狀態命令列介面,遵循與 Blender CLI 相同的模式。使用 JSON 場景集合格式。編輯時無需安裝 OBS。

安裝

此 CLI 作為 cli-anything-obs_studio 套件的一部分安裝:

pip install cli-anything-obs_studio

先決條件:

  • Python 3.10+
  • 系統必須安裝 obs_studio

使用方式

基本指令

# 顯示說明
cli-anything-obs_studio --help

# 啟動互動式 REPL 模式
cli-anything-obs_studio

# 建立新專案
cli-anything-obs_studio project new -o project.json

# 以 JSON 輸出執行(供代理程式使用)
cli-anything-obs_studio --json project info -p project.json

REPL 模式

當不帶子指令呼叫時,CLI 會進入互動式 REPL 工作階段:

cli-anything-obs_studio
# 以 tab 補全與歷史記錄功能互動式輸入指令

指令群組

專案

專案管理指令。

指令說明
new建立新的 OBS 場景集合
open開啟現有專案
save儲存目前專案
info顯示專案資訊
json輸出原始專案 JSON

場景群組

場景管理指令。

指令說明
add新增場景
remove依索引移除場景
duplicate複製場景
set-active設定使用中場景
list列出所有場景

來源群組

來源管理指令。

指令說明
add新增來源至場景
remove依索引移除來源
duplicate複製來源
set設定來源屬性(名稱、可見性、鎖定、透明度、旋轉角度)
transform變換來源(位置、大小、裁切、旋轉角度)
list列出場景中的所有來源

濾鏡群組

濾鏡管理指令。

指令說明
add新增濾鏡至來源
remove從來源移除濾鏡
set設定濾鏡參數
list列出來源上的所有濾鏡
list-available列出所有可用的濾鏡類型

音訊群組

音訊管理指令。

指令說明
add新增全域音訊來源
remove移除全域音訊來源
volume設定音訊來源音量(0.0-3.0)
mute靜音音訊來源
unmute取消靜音音訊來源
monitor設定音訊監聽類型
list列出所有音訊來源

轉場群組

轉場管理指令。

指令說明
add新增轉場
remove移除轉場
set-active設定使用中轉場
duration設定轉場持續時間(毫秒)
list列出所有轉場

輸出群組

輸出/串流/錄製設定。

指令說明
streaming設定串流設定
recording設定錄製設定
settings設定輸出設定
info顯示目前輸出設定
presets列出可用的編碼預設

工作階段

工作階段管理指令。

指令說明
status顯示工作階段狀態
undo復原上一個操作
redo重做上一個復原的操作
history顯示復原歷史記錄

範例

建立新專案

建立新的 obs_studio 專案檔案。

cli-anything-obs_studio project new -o myproject.json
# 或以 JSON 輸出供程式化使用
cli-anything-obs_studio --json project new -o myproject.json

互動式 REPL 工作階段

啟動一個支援復原/重做的互動式工作階段。

cli-anything-obs_studio
# 互動式輸入指令
# 使用 'help' 檢視可用指令
# 使用 'undo' 和 'redo' 進行歷史記錄導航

狀態管理

CLI 會維持工作階段狀態,包含:

  • 復原/重做:最多 50 層歷史記錄
  • 專案持久化:以 JSON 格式儲存/載入專案狀態
  • 工作階段追蹤:追蹤修改與變更

輸出格式

所有指令都支援雙重輸出模式:

  • 人類可讀(預設):表格、色彩、格式化文字
  • 機器可讀(--json 標記):結構化 JSON,供代理程式使用
# 人類輸出
cli-anything-obs_studio project info -p project.json

# 代理程式用 JSON 輸出
cli-anything-obs_studio --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-audacity

>-

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

>-

相關技能