Communitygithub.com

cli-anything-openscreen

一個有狀態的命令列介面,用於編輯螢幕錄影。將原始錄製內容轉換為精美的示範影片,支援縮放效果、速度調整、裁剪、註解和漂亮背景。

cli-anything-openscreen 是什麼?

此技能提供一個名為 `cli-anything-openscreen` 的狀態化命令列工具,專為後製螢幕錄影而設計。它能讓開發者和 AI 代理程式將原始錄製內容轉換為專業的示範影片,並支援縮放、速度調整、裁剪、文字註解和背景美化等多種效果。該工具在命令列環境中運作,提供 REPL(互動式)模式以及標準的指令參數模式,並支援 JSON 輸出以便於程式解析。其核心優勢在於將多步驟影片編輯流程自動化,可無縫整合進 CI/CD 管道或 AI 代理工作流程中,特別適合用於產生高品質的產品展示、教學影片或除錯記錄。

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

在你喜歡的 AI 中提問

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

說明文件

cli-anything-openscreen 是做什麼的?

一個有狀態的命令列介面,用於編輯螢幕錄影。將原始錄製內容轉換為精美的示範影片,支援縮放效果、速度調整、裁剪、註解和漂亮背景。

安裝

pip install cli-anything-openscreen

先決條件:

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

使用方式

基本指令

cli-anything-openscreen --help
cli-anything-openscreen                     # REPL 模式
cli-anything-openscreen project new -v recording.mp4 -o project.openscreen
cli-anything-openscreen --json project info

REPL 模式

執行 cli-anything-openscreen 而不加任何引數,即可進入互動模式。輸入 help 查看可用指令,輸入 quit 退出。

指令群組

project

建立、開啟、儲存和設定專案。

指令說明
project new [-v VIDEO] [-o PATH]建立新專案,可選影片路徑
project open <path>開啟現有的 .openscreen 專案
project save [-o PATH]將專案儲存至檔案
project info顯示專案中繼資料和區域數量
project set-video <path>設定來源影片檔案
project set <key> <value>設定編輯器設定(內距、桌布等)

zoom

管理縮放區域 — 在特定時間軸區域上套用平滑縮放效果。

指令說明
zoom list列出所有縮放區域
zoom add --start MS --end MS [--depth 1-6] [--focus-x 0-1] [--focus-y 0-1]新增縮放區域
zoom remove <id>移除縮放區域

縮放深度:1=1.25x、2=1.5x、3=1.8x、4=2.2x、5=3.5x、6=5.0x

speed

管理速度區域 — 加速閒置時間,慢放重要時刻。

指令說明
speed list列出所有速度區域
speed add --start MS --end MS [--speed 0.25-2.0]新增速度變化
speed remove <id>移除速度區域

有效速度值:0.25、0.5、0.75、1.25、1.5、1.75、2.0

trim

管理裁剪區域 — 剪掉錄影中的某些片段。

指令說明
trim list列出所有裁剪區域
trim add --start MS --end MS剪掉一個片段
trim remove <id>移除裁剪區域

crop

設定錄影的可視區域。

指令說明
crop get顯示目前裁剪區域
crop set --x 0-1 --y 0-1 --width 0-1 --height 0-1設定裁剪範圍(標準化)

annotation

在錄影上新增文字疊加層。

指令說明
annotation list列出所有註解
annotation add-text --start MS --end MS --text "..." [--x 0-1] [--y 0-1]新增文字
annotation remove <id>移除註解

media

檢查和驗證媒體檔案。

指令說明
media probe <path>顯示影片中繼資料(解析度、長度、編解碼器)
media check <path>驗證影片檔案是否有效
media thumbnail <input> <output> [-t TIME]擷取一個影格

export

渲染最終完成的影片。

指令說明
export presets列出可用的匯出預設集
export render <output_path>將專案渲染成影片檔案

preview

從目前的 Openscreen 專案擷取真實的審閱套件。

指令說明
preview recipes列出可用的預覽配方
preview capture --recipe quick渲染一個低解析度的預覽套件
preview latest [--recipe quick]回傳最新的現有套件

目前的預覽支援是靜態的,而非即時的。quick 套件通常包含:

  • 一個低解析度的預覽片段
  • 取樣的影格
  • 一個用於快速檢查的 hero 影格
  • 包含裁剪/縮放/速度資訊的 summary.json

套件擷取也會在預覽根目錄旁寫入或更新一個穩定的食譜層級 trajectory.json,讓代理程式能夠隨時間重建預覽歷史。

檢視器指令:

cli-hub previews inspect /path/to/bundle
cli-hub previews html /path/to/bundle -o page.html
cli-hub previews open /path/to/bundle

session

管理含復原/重做功能的會話狀態。

指令說明
session status顯示會話資訊
session undo復原上一個操作
session redo重做上一個被復原的操作
session save將會話狀態儲存至磁碟
session list列出所有已儲存的會話

狀態管理

  • 復原/重做:最多 50 層的復原歷史
  • 專案持續性:JSON 格式的 .openscreen 檔案
  • 會話追蹤:自動追蹤修改

輸出格式

  • 人類可讀(預設):格式化的鍵值對
  • 機器可讀(--json):結構化的 JSON 輸出

編輯器設定

設定類型預設值說明
aspectRatiostring"16:9"16:9、9:16、1:1、4:3、4:5
wallpaperstring"gradient_dark"背景預設集
paddingint500-100,影片周圍的內距
borderRadiusint12圓角半徑(像素)
shadowIntensityfloat00-1,投影強度
motionBlurAmountfloat00-1,縮放時的動態模糊
exportQualitystring"good"medium、good、source
exportFormatstring"mp4"mp4、gif

給 AI 代理程式的提示

  1. 始終使用 --json 以獲得可解析的輸出
  2. 檢查回傳碼 — 0 代表成功,非零代表錯誤
  3. 在非 JSON 模式下,請解析 stderr 以取得錯誤訊息
  4. 使用絕對檔案路徑
  5. 執行 export render 後,驗證輸出檔案是否存在並進行探查
  6. 所有區域指令的時間單位皆為毫秒
  7. 座標(焦點、裁剪、位置)均為標準化 0-1
  8. 使用 preview capture --json 以視覺方式驗證縮放、裁剪、註解和時間軸
  9. 從 JSON 負載中讀取回傳的套件構件路徑;圖像和片段儲存在磁碟上
  10. 僅使用 cli-hub previews ... 來檢查/開啟現有套件

版本

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

>-

相關技能