env-setup
БесплатноЗапускает вложенные скриптыНе проверенChecking and provisioning the machine's environment for the video-agent-kit plugin — probing for ffmpeg/ffprobe that actually carry the encoders and filters…
от wwwzhouhui★ 301 звезда на GitHubОб этом скилле
Env Setup
Claude Code is a generic harness — it ships no ffmpeg, no CJK font, no python
media stack. Everything this kit needs is per-machine, and provisioning it is
this skill's job. A run started on a half-provisioned machine does not fail
cleanly: it burns the whole observe→timeline phase and then dies at
render_preview, or worse, succeeds while burning subtitles as tofu boxes
(□□□) because fc-match handed us a font with no Chinese glyphs and ffmpeg
exited 0.
One entry point — everything else here is judgement about its output:
python3 <plugin_root>/skills/env-setup/scripts/env_doctor.py # probe + what's needed
python3 <plugin_root>/skills/env-setup/scripts/env_doctor.py --fix # + install the auto-safe items
(Windows: python instead of python3 if that's what's on PATH.) Plugin root is
announced at session start and written to .video_agent/plugin_root. Always call
it by absolute path — cwd is the project directory, not the skill directory. A
full probe is a few seconds; give Bash ≥ 120s anyway, because a blocked network
spends its timeouts before answering.
What must be present, and what dies without it
The script decides state and prints the exact requirement + an example command for the current OS. This table is only for judging impact:
| Requirement | Dead without it |
|---|---|
Python ≥ 3.10, and mcp (1.x), requests, opencv-python-headless, numpy, pillow, jieba, fonttools, scenedetect in that same interpreter |
mcp → every tool (server won't start); requests → transcribe + all TTS; cv2/numpy/PIL → video_ingest, contact sheets, qc_preview scans, i.e. all visual evidence; jieba → subtitle_build line breaking; fontTools → the pre-render tofu check; scenedetect → recap shot boundaries |
ffmpeg + ffprobe on PATH, with libx264 / aac / libmp3lame |
ingestion and probing (Phase 1 can't start); missing encoder = the render dies at the last step, after everything upstream was paid for |
that ffmpeg built with libass + libfreetype (subtitles/ass/drawtext filters) |
subtitle burn-in, title cards, score bugs — the recap deliverable |
| a CJK font whose cmap really covers Chinese | Chinese subtitles/titles. This one fails silently — see the tofu warning above |
| cloud ASR credentials or Speech MCP access | speech_transcribe; without it there is no transcript, so every speech-driven decision is guesswork. Under ZCode this is never a gap — see below |
| cloud TTS credentials or Speech MCP access | narration/dubbing (speech_synthesize, tts_generate, *_tts). Edit-only and subtitle-only tasks survive without it |
Speech needs no local key under ZCode
Transcription and synthesis default to the official channel, which authenticates
with identity the ZCode host injects into each tools/call. There is nothing to
configure, nothing to install, and no key to obtain. Two consequences:
- Never tell the user to set an ASR/TTS key to get transcription working, and
never treat a "credentials not set" line as a blocker. The doctor reports these
two rows as
官方通道wheneverZCODE_BASE_URLis present, and both rows are soft (只降级不致命) in every case. - The doctor runs as its own process, so it cannot see the per-call identity headers — only whether the official channel exists at all. A specific call failing on identity (not logged in, no Coding Plan) surfaces from the tool itself, with a message saying which of the two it is. That is the signal to act on; the doctor's row is not.
Only non-ZCode hosts need configuration, in this order of preference: remote
Speech MCP (VE_SPEECH_MCP_URL / VE_SPEECH_MCP_TOKEN), or — as a legacy escape
hatch for deployments bringing their own speech service — a direct HTTP backend,
which needs its endpoint and resource/model identifiers in the process
environment (a project .env is untrusted for those; it could otherwise
redirect an authenticated call) plus a key. /env-check prints the exact set.
Version floors are the only hard numbers; how the tool gets installed is the user's choice — package manager, installer, conda, whatever the machine already uses.
Mirrors — use them by default, not as a fallback
Most users of this plugin are in mainland China, where the official PyPI CDN and GitHub-hosted Homebrew bottles are routinely slow enough to time out. A timeout there doesn't look like a network problem — it looks like "the install ran for ten minutes and then failed", which gets misdiagnosed as a broken package every time. So a mirror is the first choice, not the recovery step. The doctor already puts the mirror into the command it prints (and uses); when you install by hand, use these:
| What | First choice | Alternative |
|---|---|---|
| pip | 清华 https://pypi.tuna.tsinghua.edu.cn/simple — pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <pkg> |
阿里云 https://mirrors.aliyun.com/pypi/simple/ |
| ffm |
Установить env-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл env-setup?
Checking and provisioning the machine's environment for the video-agent-kit plugin — probing for ffmpeg/ffprobe that actually carry the encoders and filters we render with (libx264/aac/libmp3lame, libass, libfreetype), python packages (mcp, cv2, numpy, PIL, jieba, fontTools, scenedetect) in the interpreter Claude Code really uses, a CJK font whose cmap truly covers Chinese, and which speech channel is in play (under ZCode the official channel needs no local key) — then installing what is missing (China mirrors by default) or telling the user exactly what to install. Works on macOS, Windows and Linux. Use BEFORE the first edit run on a new machine, when the session-start hook reports 缺失依赖, or whenever a tool fails in an environment-shaped way — ModuleNotFoundError, `ffmpeg not found`, `Unknown encoder 'libx264'`, `No such filter: 'subtitles'`, `no font file found for family`, 字幕烧成豆腐块/方块, speech_transcribe 超时或 401. Also use when asked to 检查环境 / 装依赖 / 配国内源 / setup / doctor.
Как установить скилл env-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл env-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic