character-replacement — скилл для Claude Code: замена персонажа
Скилл character-replacement для Claude Code планирует замену персонажей в видео, пишет промпты Ref2VA и настраивает ComfyUI. Агент подключается к сегментной обработке и проверке результата.
Apache-2.0 ★ 413 обновлён 2026-11-17
npx skills add ThinkFlowLab/OpenDirector --skill character-replacement -a claude-codeЧто делает character-replacement
Скилл character-replacement планирует замену персонажа по исходным изображениям, видео и явному запросу. Агент изучает видео vision-моделью, отмечает границы сцен и появление выбранного человека, затем создаёт план сегментов и отдельный промпт для каждого сегмента.
Для простой правки одного человека используется workflow H3-04 Character Replacement, а для нескольких сегментов или персонажей настраивается копия H3-04 Agentic Continuation. При генерации граф отправляется через ComfyUI в существующие узлы vLLM-Omni и дальше в видео API vLLM-Omni.
Нужны URL ComfyUI, доступные узлы, рабочие настройки Omni и каталог результатов. Перед просмотром видео создаётся копия с постоянной частотой 24 FPS, если не задано другое значение; оригинал и исходный тайминг сохраняются. Для формата промптов требуется навык MiniMax H3, который можно читать из https://github.com/MiniMax-AI/MiniMax-H3/tree/main/skills/h3-prompt-writing без локальной установки.
Какие задачи решает
- спланировать замену персонажа по сценам видео
- написать отдельные промпты Ref2VA для сегментов
- настроить workflow H3-04 для одного персонажа
- собрать многочастную обработку через ComfyUI
- проверить превью сегментов и готовое видео
Примеры запросов агенту
- Спланируй замену персонажа в
source.mp4и подготовь промпты для каждого сегмента. - Настрой workflow H3-04 для замены одного человека и покажи параметры ComfyUI.
- Исправь промпт существующего сегмента после просмотра его дефекта, не меняя границы без причины.
Как установить character-replacement
1Через Skills CLI (Vercel)
npx skills add ThinkFlowLab/OpenDirector --skill character-replacement -a claude-code2Вручную: положить файлы
~/.claude/skills/character-replacement/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/character-replacement/
1Через Skills CLI (Vercel)
npx skills add ThinkFlowLab/OpenDirector --skill character-replacement -a codex2Вручную: положить файлы
.agents/skills/character-replacement/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ThinkFlowLab/OpenDirector --skill character-replacement -a cursor2Вручную: положить файлы
.cursor/skills/character-replacement/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ThinkFlowLab/OpenDirector packages/agent/skills/character-replacement2Вручную: положить файлы
.github/skills/character-replacement/SKILL.md1Через Skills CLI (Vercel)
npx skills add ThinkFlowLab/OpenDirector --skill character-replacement -a gemini-cli2Командой платформы
gemini skills install https://github.com/ThinkFlowLab/OpenDirector --path packages/agent/skills/character-replacementВручную: положить файлы
.devin/skills/character-replacement/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о character-replacement
Как установить character-replacement в Claude Code?
Выполните npx skills add ThinkFlowLab/OpenDirector --skill character-replacement -a claude-code, затем используйте файл ~/.claude/skills/character-replacement/SKILL.md.
Что делает character-replacement?
Скилл анализирует исходное видео, строит план сегментов, пишет промпты Ref2VA и настраивает повторно используемые workflow H3-04 для генерации и проверки замены персонажа.
Что нужно для работы character-replacement?
Нужны исходные изображения или видео, явный промпт, URL ComfyUI, доступные узлы, настройки Omni и каталог результатов. Для формата промптов нужен навык MiniMax H3; его можно читать из https://github.com/MiniMax-AI/MiniMax-H3/tree/main/skills/h3-prompt-writing, а генерация проходит через узлы vLLM-Omni и видео API vLLM-Omni.
Исходный текст
SKILL.md · Apache-2.0
--- name: character-replacement description: Plan MiniMax-H3 character replacement, write per-segment Ref2VA prompts and configure reusable H3-04 ComfyUI workflows for generation and review. --- # Character Replacement Make character replacement easy to use: the user supplies source media and a replacement request; the agent derives the segment plan, prompts and workflow parameters. Keep the input boundary as original images, source video and explicit prompts. Work only on the requested deliverable; planning or prompt edits do not start generation, restart services or introduce preprocessing. For a simple one-person edit without segmented continuation, reuse the [H3-04 Character Replacement workflow](assets/character-replacement.json). For planned multi-segment work, use the Agentic Continuation template linked below; its example-specific settings must be recalculated for new footage. 1. Create a 24-FPS constant-frame-rate working copy of the source video before visual inspection, segmentation and frame-index calculations, unless the user explicitly requests another FPS. Preserve the original file and playback timing. Read [video-segment.md](video-segment.md) first. Use a vision-capable model to inspect the source video, establish shot boundaries and track when each selected person appears, interacts, becomes occluded and leaves. Produce the segment plan before writing new segment prompts. 2. Read [prompt-writing.md](prompt-writing.md), then write each segment's prompt from its inspected action and explicit source-person-to-picture mappings. 3. For a single-person, single-segment edit, configure the simple workflow linked above. For segmented or multi-person work, configure a task-specific copy of the [H3-04 Agentic Continuation workflow](assets/character-replacement-continuation.json), reusing Global Control, existing nodes and one shared segment-subgraph definition. Follow [workflow.md](workflow.md) for configuration, execution and review. 4. When generation is requested, submit the executable graph through ComfyUI, monitor results, inspect segment previews and deliver the assembled video with remaining quality defects. Prompt-format dependency: read the official [MiniMax H3 prompt-writing skill](https://github.com/MiniMax-AI/MiniMax-H3/tree/main/skills/h3-prompt-writing). It can be read directly from the repository; local installation is optional. Before execution, establish the ComfyUI URL, installed node availability, effective Omni deployment settings and task output directory as described in [workflow.md](workflow.md). Resolve repository-relative references from this skill directory after resolving any global skill symlink, not from the agent's current working directory. Execution boundary: agent → ComfyUI execution API → existing vLLM-Omni nodes → vLLM-Omni video API. The nodes own model requests; the agent does not bypass ComfyUI with a separate generation client. For a prompt-only correction to an existing segment, inspect its relevant footage and existing plan; revise the plan only if the observed defect exposes an incorrect boundary or mapping. Do not invent a new segmentation for every wording edit. Preserve the user's model, resolution, FPS and fixed seed unless asked to change them. Report written plans and prompts separately from generation and visual acceptance. Keep Markdown paragraphs on single source lines and usage notes brief.
© ThinkFlowLab · Apache-2.0 · ThinkFlowLab/OpenDirector