360 Secure SkillHub
360 安全技能中心

vidjutsu-setup

为个人或智能体端到端配置 VidJutsu 视频编辑服务:识别宿主与运行环境,创建账号并完成登录,通过 MCP 连接器或 API Key 接入,安装编辑技能,可选安装拦截本地 FFmpeg 的钩子与评审唤醒脚本,最后调用接口验证连通性并给出下一步操作。

分类:开发
未知作者
热度 0.00
最近更新 2026-12-03 17:53:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vidjutsu.ai/vidjutsu-setup
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vidjutsu-setup
description
Set VidJutsu up for a person or an agent, start to finish, with account and sign-in, the MCP connector or an API key, the skills, cloud sessions, the optional FFmpeg-blocking hook and a first check. Use when someone says "set up vidjutsu", pastes a vidjutsu.ai or docs.vidjutsu.ai llms.txt link, or the VidJutsu tools are missing or not signed in.

/vidjutsu-setup

You are setting VidJutsu up so this agent (and the next session) can edit video with it. VidJutsu is a hosted video editor that an agent runs: it stores the footage, keeps every edit in history and renders in the cloud. It edits footage the person brings; it does not generate video.

Work out everything you can yourself, ask the rest in one message, do the steps, then check that it works. Keep the person told in plain words.

Rules for the whole setup:

  • Never ask for, type or store card details. Payment only happens on a Stripe page the person opens from a link you give them.
  • An API key is a secret. Keep it where your client keeps secrets (an MCP header, an environment secret, a key store). Never write it into a file that is committed or shared, and never paste it into a chat log.
  • Being sent here with "set up vidjutsu" is the go-ahead for every step below except paying and the optional extras the person turns down.
  • Only the person can do three things: read the code we email them, sign in in a browser, and add a card on Stripe's page. Everything else is yours.

1. Look before you ask

Find out, without asking:

What How
Already connected? Are VidJutsu tools (account, ingest, render...) in your tool list, perhaps deferred (search your tools for "vidjutsu")? If so, call account. An answer means you're signed in: skip to step 4. 401 means it's connected but not signed in. No tools but VIDJUTSU_API_KEY is set? Check it with curl -s -H "Authorization: Bearer $VIDJUTSU_API_KEY" https://api.vidjutsu.ai/account.
Which agent you are Claude Code (terminal, desktop or web), Claude.ai or Claude Desktop, Codex (CLI or cloud), Grok Bot or Grok Build, Cursor, or another MCP client.
Local or cloud Cloud means a sandbox that starts fresh each session: Claude Code on the web (CLAUDE_CODE_REMOTE=true), Codex cloud, CI runners, other hosted agents. A local terminal or desktop app on the person's own computer is local.
Skills already installed? vidjutsu-edit in your skills list, or ~/.claude/skills/vidjutsu-edit / .agents/skills/vidjutsu-edit.

If nobody is there to answer (an agent working alone, a scheduled job), take the defaults in the table below and stop only where a person is needed (the emailed code, a browser sign-in, a card), saying exactly what they must do.

2. Ask, once

Ask only what step 1 didn't settle, in one message. Use your client's question picker if it has one. Defaults are in bold.

  1. Email address for the VidJutsu account (new or existing). Not needed when they'll sign in through the browser connector.
  2. How to connect: the MCP connector with a browser sign-in (best for a person in a Claude or Grok app) or an API key (best for an agent that runs alone, scripts, CI and cloud sandboxes).
  3. What they make: talking-head clips for Shorts, Reels and TikTok; long videos or podcasts; screen-recorded tutorials; motion-graphics explainers; posting to social accounts. This picks the first video and which skills to point at. Default: talking-head clips.
  4. Where the agent runs, only if step 1 couldn't tell: this computer, or a cloud sandbox that starts fresh each time.
  5. Extras, yes or no: the VidJutsu-first hook (Claude Code only: stops the agent from using local FFmpeg; default yes), and instant review wake-ups for an agent that keeps working while it waits for comments (default no).

3. Account and connection

Path A: connector with browser sign-in (OAuth)

Add the server with no key, and the client opens VidJutsu's sign-in page:

https://api.vidjutsu.ai/mcp      (streamable HTTP)
  • Claude.ai, Claude Desktop, Claude Code on the web: Settings > Connectors

    Add custom connector, URL above, then Connect and sign in. A connector on the account reaches every Claude surface, cloud sessions included.

  • Claude Code (terminal): claude mcp add --transport http --scope user vidjutsu https://api.vidjutsu.ai/mcp, then /mcp > vidjutsu > Authenticate.
  • Codex: codex mcp add vidjutsu --url https://api.vidjutsu.ai/mcp (it prints the sign-in link).
  • Grok Bot: Connect apps > Add a custom connector > Remote HTTPS, the URL, Add plugin, Authenticate. Grok Build: grok mcp add --transport http vidjutsu https://api.vidjutsu.ai/mcp.
  • Anything else (Cursor and other JSON-config clients): https://docs.vidjutsu.ai/mcp

Then call create_account (safe to repeat). A new account answers trial_url (the free trial) and checkout_url (the monthly plan). The sign-up page asks new people to prove they're human, which is why an agent alone uses Path B.

Path B: API key (two calls, no browser)

curl -s -X POST https://api.vidjutsu.ai/auth/email \
  -H 'Content-Type: application/json' -d '{"email": "PERSON_EMAIL"}'
# {"attempt": "...", "expires_at": "...", "next": "..."}

Ask for the code from the email. In the same message, ask whether this key may also change billing and create or revoke keys. Leave scopes out for a key with full rights, or send "scopes": [] for neither.

curl -s -X POST https://api.vidjutsu.ai/auth/verify \
  -H 'Content-Type: application/json' \
  -d '{"attempt": "ATTEMPT", "code": "123456", "name": "YOUR_AGENT_NAME"}'
# {"api_key": "vj_live_...", "account_id": "...", "status": "no_plan", "checkout_url": "..."}

The key is shown once. Connect with it as a Bearer header:

  • Claude Code: claude mcp add --transport http --scope user vidjutsu https://api.vidjutsu.ai/mcp --header "Authorization: Bearer $VIDJUTSU_API_KEY"
  • Codex: codex mcp add vidjutsu --url https://api.vidjutsu.ai/mcp --bearer-token-env-var VIDJUTSU_API_KEY
  • Grok Build: grok mcp add --transport http vidjutsu https://api.vidjutsu.ai/mcp --header "Authorization: Bearer $VIDJUTSU_API_KEY"
  • JSON config: "headers": {"Authorization": "Bearer vj_live_..."} (https://docs.vidjutsu.ai/mcp)
  • No MCP at all: every tool is a REST call at https://api.vidjutsu.ai and a vidjutsu CLI command (npm i -g vidjutsu), same names, same JSON.

Most clients load a new MCP server when a session starts. If the tools don't show up, ask the person to restart or reload, then carry on from step 4.

Start the trial or the plan

If account says no_plan: call start_trial (REST POST /billing/trial). {eligible: true, url}: give the person the url. They add a card on Stripe's page; a small hold checks it and is released, and the trial is never charged. The trial has a few render minutes of watermarked 480p previews; downloads, clean 1080p and 4K files and social accounts unlock when they upgrade. {eligible: false, message}: tell them the message and offer the plan with billing_checkout. Prices are at https://docs.vidjutsu.ai/pricing; quote that page, not memory. Any call can answer 402 upgrade_required with upgrade_url: say what the limit is and give the link. Only the person can confirm an upgrade.

4. Install the skills

The skills are the tested methods (edit, clean cut, motion graphics, style, schedule, compliance, FTC disclosure, and this one).

On the person's computer:

npx skills add https://vidjutsu.ai -g

-g installs them for every project; add -a claude-code, -a codex (and so on) to pick the agent. No terminal: read https://vidjutsu.ai/skill.md and save it as a skill named vidjutsu-edit.

In a cloud sandbox, installs don't survive: each session starts from a fresh container, so skills saved on a computer, or installed during an earlier session, aren't there next time. Put the install in the environment's setup script, which runs at the start of every session:

npx -y skills@latest add https://vidjutsu.ai -g -a claude-code -y

(-a codex for Codex cloud.) In Claude Code on the web that's the environment's Setup script (environment settings). If the environment limits network access, allow vidjutsu.ai, api.vidjutsu.ai and the npm registry. You may not be able to edit the environment yourself: if not, give the person the exact line and where it goes.

5. Optional: the VidJutsu-first hook (Claude Code)

Agents reach for local FFmpeg out of habit. This hook stops ffmpeg, ffprobe, sox and whisper in shell commands (also inside bash -c, eval, heredocs, and Python, Node or shell scripts the command runs, including media libraries such as moviepy or fluent-ffmpeg) and answers with the VidJutsu call to use instead (frame, check, level, insert_clip, swap_media, make_transcript, render). It ships with this skill:

  • files/vidjutsu-first.mjs: the hook (a PreToolUse hook on Bash).
  • files/install-hook.sh: copies it to ~/.claude/hooks/ and adds it to ~/.claude/settings.json, keeping every other hook. Safe to run again.

On a computer: bash <this skill's folder>/files/install-hook.sh. In a cloud sandbox, add it to the setup script after the skills line:

bash ~/.claude/skills/vidjutsu-setup/files/install-hook.sh

When VidJutsu really has no call for a step, the agent says which step, sends request_feature, and runs the command as VIDJUTSU_GAP=<why> ffmpeg ...; each such run is logged to ~/.claude/vidjutsu-gaps.log. Mentions pass (quoted text, commit messages, grep, installs), and so do the asset tools a VidJutsu skill or style kit ships.

6. Optional: instant review wake-ups

Most agents don't need this: open_review gives the person a link to comment on the cut, and wait_for_feedback (MCP) waits for the comments while the agent is in a turn. This is for an agent that wants to stop or do other work and be woken the moment a comment lands. files/vidjutsu-wait.mjs long-polls GET /projects/{project}/feedback and exits when there's feedback:

node <this skill's folder>/files/vidjutsu-wait.mjs PROJECT [CURSOR]
# exit 0: feedback (comments in stdout)  exit 2: nothing yet, run again with cursor  exit 3: sign-in problem

Run it as a background command so its exit wakes the agent. A script can't use the MCP connector's sign-in, so it needs an API key (Path B):

  • On a computer: put it in VIDJUTSU_API_KEY for the agent's process.
  • In a cloud sandbox with an egress proxy (Claude Code on the web and others): store the key as a network secret for host api.vidjutsu.ai, header Authorization, value Bearer vj_live_.... The proxy adds it to every request, so the key never sits in the container. Node's built-in fetch ignores HTTPS_PROXY unless NODE_USE_ENV_PROXY=1 is set (Node 22.21 or later); the script sets it for itself, but any script of your own needs it. curl uses the proxy on its own.

7. Check it works

Make these calls and report what they answered:

  1. account: signed in, and its status isn't no_plan.

  2. entitlements: the plan's limits (render minutes, downloads).

  3. list_projects: the tools work end to end. An empty list is fine.

    Without MCP tools, the same checks are GET /account, /entitlements and /projects at https://api.vidjutsu.ai with the Bearer key. Then say the MCP tools are missing from this session and how to add them (step 3).

  4. Skills: vidjutsu-edit is installed (or readable at its link).

  5. If you set up the hook: run ffmpeg -i x.mp4 y.mp4 and see it stopped. If you set up wake-ups: node .../vidjutsu-wait.mjs <a project> --minutes 1 exits 2, not 3.

Anything that fails: report what it returned (reason, message), fix it, and check again. Don't call a step done without the call that shows it.

8. Hand over

Tell the person, as a short checklist, what is set up and what is left for them (a restart, a setup-script line, a card). Then offer the first video for what they make:

  • talking-head clips: /vidjutsu-edit take.mov into 3 clips (uses vidjutsu-clean-cut)
  • a long video or podcast: /vidjutsu-edit episode.mp4 into one video
  • screen-recorded tutorials: /vidjutsu-edit screen.mp4 camera.mp4, with a screen and camera layout
  • motion-graphics explainers: vidjutsu-motion-graphics, and vidjutsu-style to save their brand look first
  • posting: vidjutsu-schedule once they're on the plan (the trial can't connect social accounts)

Ask for one raw take (a file or an https link) and run it.

Docs: https://docs.vidjutsu.ai/llms.txt (every page, as text).