360 Secure SkillHub
360 安全技能中心

BatchEdits

该 Skill 通过 BatchEdits CLI 或 MCP 服务批量处理视频,支持自动字幕、去静音、9:16 裁剪、关键片段缩放、AI 切片、开场 hook、B-roll 与行动号召,并把成品下载到本地或返回任务状态。需联网并消耗账号额度,处理前需确认 credits。

分类:创作
chuckwhisler
chuckwhisler
热度 42.55
最近更新 2026-11-13 22:08:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add chuckwhisler/batchedits
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
batchedits-video-editor
description
Edit videos in bulk with BatchEdits - add captions, remove silences, crop to 9:16, zoom and cut long videos into clips with the BatchEdits CLI (or MCP server), then download the results.
metadata
{"openclaw":{"primaryEnv":"BATCHEDITS_API_KEY","requirements":null,"mcp":["batchedits"]}}

Use BatchEdits to edit up to 50 videos at once: auto captions in 99+ languages, silence removal, 9:16 crops, zoom on key moments and AI clips from long videos. Use this skill when the user asks to edit, caption, crop or process videos. Everything runs in the user's own BatchEdits workspace and nothing is deleted.

First: can you run terminal commands?

Setup (once, agents with a terminal)

Use the CLI (needs Node.js 18.17+). Sign in through the browser; the token is stored locally and never printed:

npx batchedits@1.8.0 login

On a server without a browser, the user sets BATCHEDITS_API_KEY (Dashboard → Settings → API keys) in your environment instead. Never put the key in a command, URL or chat message.

Always run the exact version shown (batchedits@1.8.0, the batchedits package published by BatchEdits); don't drop the version or swap in another package name. The CLI reads only BATCHEDITS_API_KEY (and optionally BATCHEDITS_HOST), stores its sign-in token in ~/.config/batchedits, reads only the files or folder you pass it, and sends them only to batchedits.com.

If the user asked you to "set up batchedits" with a link to this file (and you can run commands; otherwise see "First" above):

  1. Run npx batchedits@1.8.0 login and tell the user to approve access in the browser tab it opens (new accounts start a 7-day free trial there).
  2. Run npx batchedits@1.8.0 whoami to confirm it worked.
  3. Save these instructions as a skill or note if your agent supports that, so you can use BatchEdits again without this link.
  4. Ask the user which folder of videos to edit and how they should look (for example: 9:16, captions, silences removed), then follow the Workflow below.

Commands

  • npx batchedits@1.8.0 styles --json: list styles (use a style's name with --style)
  • npx batchedits@1.8.0 style create "<name>" --crop 9:16 --silence --captions --zoom [--clips 8] [--emojis] [--repeats] [--fillers] [--hook] [--hook-clip <ai|id|words>] [--broll] [--cta [text]] [--set action.setting=value]: create a style (--hook adds a text hook at the start of each video; --hook-clip plays an intro clip before each video, with the text hook on it when both are given; --cta adds a call to action in each video's last seconds, "Follow for more" unless you give the text)
  • npx batchedits@1.8.0 style edit "<name>" [same flags] [--set captions.fontColor=#FFFF00] [--remove zoom] [--name "<new>"]: change a saved style (only when the user asks to change that style; otherwise create a new one)
  • Settings (--set, repeatable; short names captions, silence, crop, zoom, clips): captions.position=top|center|bottom, captions.fontColor, captions.highlightColor, captions.fontSize, captions.fontFamily, silence.silentThreshold=0.01-0.2 (higher cuts more), silence.fillerWords=true (also cuts um, uh and filler uses of like / you know; same as --fillers), zoom.zoomPercent=105-170, clips.maxClips=3-20, clips.minSeconds/clips.maxSeconds=15-180, crop.focus=center|left|right|top|bottom, hook.position=top|center|bottom, hook.y=0.05-0.95, hook.duration=auto|1-10, hook.source=ai|manual, hook.animation=fade|pop|none, hook.fontColor/hook.backgroundColor. npx batchedits@1.8.0 actions --json lists them all.
  • Video hooks (intro clips): --hook-clip ai lets AI pick a different matching clip for each video (best default). To use one clip for every video, npx batchedits@1.8.0 hooks surprise reaction finds clips; use an id or the words with --hook-clip.
  • Hooks: with a hook in the style, AI writes one line per video. If the user gives their own hooks, save them one per line to a file and pass --hooks hooks.txt to run or process (line 1 → the first video; a folder uploads its files A-Z).
  • B-roll: --broll cuts away to footage while the speaker talks about something it shows: the user's own clips, matched by the names they gave them in the dashboard's Library, else stock video from Pexels. AI decides how many cutaways each video needs (some get none) unless the user wants a set frequency: --set broll.every=10 (about one every 10 seconds, 3-60); --set broll.source=mine (only their clips). Each video's picks can be reviewed in the dashboard's Edit B-roll.
  • Calls to action: --cta "Comment GUIDE and I'll send it" puts that line on every video's last 3 seconds. For one per video, save them one per line and pass --ctas ctas.txt to run or process (same order as --hooks). An outro clip after each video is uploaded once in the dashboard's Call to action settings.
  • npx batchedits@1.8.0 style copy <link|file|video id> [--name "<name>"] --json: create a style that copies a reference video's look (captions, colours, highlight, zooms, crop) when the user says "make it look like this" and gives a TikTok, Reel, Short or YouTube link or a file. Report the summary lines; colours and font are a close match.
  • npx batchedits@1.8.0 run <files, folder or links> --style "<name>" --out <folder> --yes --json: upload, edit, wait and download in one step (YouTube links and public video-file links like Dropbox or Drive are downloaded by BatchEdits)
  • Caption spelling: add --fix "wrong=right" (repeatable) to run to fix a name or brand in every video's captions before editing, e.g. --fix "BatchEdit=BatchEdits". No extra credit.
  • npx batchedits@1.8.0 captions <id> --json: a video's caption words (waits for transcription); npx batchedits@1.8.0 captions fix <id> --replace "wrong=right" --json fixes them. Before processing only.
  • npx batchedits@1.8.0 upload <files, folder or links> --json: upload only (prints video ids)
  • npx batchedits@1.8.0 process <ids…> --style "<name>" --yes --json: edit uploaded videos
  • npx batchedits@1.8.0 status <ids…> --watch --json: wait until they're done
  • npx batchedits@1.8.0 download <ids…> --out <folder> --json: save finished videos
  • npx batchedits@1.8.0 <command> --help: examples for any command

Workflow

  1. Find out which videos and which edits the user wants.
  2. Run styles --json. If no style fits, create one with style create.
  3. If the user names a person, product or brand with a specific spelling, pass --fix "wrong=right" for it (ask if unsure how it's misheard).
  4. Processing uses credits (1 per video, 1 per AI clip). Tell the user how many and get their OK before passing --yes.
  5. Run run <folder> --style "<name>" --out <folder> --yes --json and report where the edited files are.
  6. If the JSON has failed or notReady entries, tell the user which videos and why.

Exit codes

0 done · 2 wrong usage · 3 sign in first (npx batchedits@1.8.0 login) · 4 some videos failed · 5 needs --yes (ask the user first) · 1 other error (read the message and hint).

In chat apps (MCP)

If you can't run commands, use the MCP server (connect it as described in "First" above). In Claude (web, desktop, mobile) the user adds it in one click from https://claude.ai/directory/batchedits; in ChatGPT through developer-mode connectors. Other MCP clients: https://batchedits.com/api/mcp with the key in the x-api-key header (openclaw config set mcp.servers.batchedits '{"type": "http", "url": "https://batchedits.com/api/mcp"}'). Tools: upload_videos (a video_url uploads from a YouTube or public video-file link), list_videos, get_styles, list_actions, create_style, copy_style (a new style copying a reference video's captions, zooms and crop, from video_url, video_id or an attached file), list_my_clips (the user's B-roll clips, matched by name, and which videos are B-roll), add_my_clip (a named B-roll clip from video_url, an attached file, or a short video_id), update_my_clip (rename or retag), remove_my_clip (stop using a clip; confirm first), edit_style (rename, or replace the style's actions with its full new list), process_video (optional hookText for that video's hook and ctaText for its call to action), get_captions and edit_captions (check and fix a video's caption words before processing; no credit), search_hook_clips (intro clips for a video hook: set the hook's kinds to include "video"; with no clip AI picks a matching one per video, or add video: { libraryId } for one clip on every video), download_video(s), open_editor. Confirm credits before process_video; a video is ready only when its status is completed. Setup guide: https://batchedits.com/docs/mcp?utm_source=clawhub&utm_medium=skill

Tips