carocut

作者 bilibili

Multi-Agent 的视频制作助手,基于 OpenCode AI SDK 和 Remotion 构建。

123
Stars
13
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/bilibili/carocut

快速入门

使用 carocut 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

CaroCut

AI 驱动的视频制作工作流系统,基于 OpenCode AI SDK 和 Remotion 构建。

简介

CaroCut 是端到端的自动化视频生产平台。通过多 Agent 协作(orchestrator + planner/media/builder/reviewer),将原始素材(PDF、图片、文本)转化为专业视频。

demo

核心特性:

  • 多 Agent 协作:5 个专业 Agent,12 个 Skill,职责隔离
  • 8 步标准工作流:素材分析 → 策划 → 脚本润色 → 视觉素材 → 音频素材 → 资产管道 → 组件实现 → 预览渲染
  • 自动化环境初始化:Bootstrap 一次,多项目共享 Remotion 模板和浏览器(session 创建时自动兜底)
  • Remotion 驱动:React 组件编程式生成视频,逐帧精确控制
  • 断点续做progress.yaml 状态持久化,支持中断恢复和增量修改

案例:

调度架构

                         ┌─────────┐
                         │  User   │
                         └────┬────┘
                              │ request / confirm
                              ▼
                    ┌───────────────────┐
                    │   Orchestrator    │
                    │                   │
                    │  · 读取进度状态    │
                    │  · 调度 subagent  │
                    │  · 验证产出物     │
                    │  · 更新 progress  │
                    └──┬────┬────┬───┬──┘
                       │    │    │   │
          dispatch     │    │    │   │    callback
       ┌───────────────┘    │    │   └───────────────┐
       │         ┌──────────┘    └──────────┐        │
       ▼         ▼                          ▼        ▼
  ┌─────────┐ ┌─────────┐            ┌─────────┐ ┌──────────┐
  │ Planner │ │  Media  │            │ Builder │ │ Reviewer │
  │         │ │         │            │         │ │          │
  │ step 1  │ │ step 3  │            │ step 6  │ │ step 8   │
  │ step 2  │ │ step 4  │            │ step 7  │ │          │
  │         │ │ step 5  │            │         │ │          │
  └─────────┘ └─────────┘            └─────────┘ └──────────┘
  ╔═══════════╗ ╔═══════════╗ ╔════════════════╗ ╔══════════╗
  ║ Planning  ║ ║Enhancement║ ║Implementation  ║ ║ Delivery ║
  ╚═══════════╝ ╚═══════════╝ ╚════════════════╝ ╚══════════╝

  ──────────────────── 数据流向 ────────────────────

  Planner ──manifests/──▶ Media ──raws/──▶ Builder ──project/──▶ Reviewer
              ↑                                          │
              │              revision_request            │
              └──────────── Orchestrator ◀───────────────┘

快速开始

环境要求

  • macOS / Linux(不支持 Windows,需用 WSL2)
  • Node.js >= 18, Python >= 3.9, uv(Python 包管理), ffmpeg
  • API 密钥:
    • 必需:PEXELS_API_KEY
    • 可选:PIXABAY_API_KEY, CARO_LLM_API_KEY, FREESOUND_API_KEY

安装与启动

git clone <repository-url>
cd carocut/
cp .env_example .env # 配置 API 密钥

# Python 环境(使用 uv 管理)
uv venv
source .venv/bin/activate  # macOS/Linux
uv pip install -r requirements.txt

# Node.js 依赖
pnpm install

# OpenCode 配置
cp opencode-template.json opencode.json  # 编辑配置 API 密钥和模型

# Bootstrap:全局环境初始化(首次运行)
python .opencode/scripts/bootstrap.py

Bootstrap 会执行:

  • 环境检查(Node.js、Python、ffmpeg、API keys)
  • Remotion 模板缓存准备(~700MB,所有项目共享)
  • Chrome headless shell 下载

启动需要两个终端(重要:在 venv 下执行):

# 激活虚拟环境(如未激活)
source .venv/bin/activate  # macOS/Linux

# 终端 1:启动 OpenCode 后端(启用 Web 搜索)
OPENCODE_ENABLE_EXA=1 opencode serve --port 4096 --cors http://localhost:3000 --print-logs

# 终端 2:启动前端
pnpm dev  # 访问 http://localhost:3000

或者:使用 sh start.sh 快速启动前端 + opencode,

启动工作流

在 OpenCode 界面输入 /carocut,系统自动执行完整视频制作流水线。

架构概览

用户输入素材 → Orchestrator → Planner / Media / Builder / Reviewer → 最终视频
阶段步骤Agent描述
Planningstep-1, 2planner素材分析、制作策划
Enhancementstep-3, 4, 5media脚本润色、视觉素材、音频素材
Implementationstep-6, 7builder资产管道、组件实现
Deliverystep-8reviewer预览审查、最终渲染

项目结构

carocut/
├── app/                    # Next.js 应用(页面 + API 路由)
├── components/             # React 组件
├── lib/                    # 工具函数(studio-manager 等)
├── .opencode/
│   ├── agents/             # 5 个 Agent 定义
│   ├── commands/           # /carocut 命令
│   └── skills/             # 12 个 Skill 定义
├── raws/                   # 原始素材(images/ + audio/)
├── workspaces/             # 运行时工作空间
├── server.ts               # Next.js + Remotion Studio 代理服务器
├── opencode-template.json  # OpenCode 配置模板
└── requirements.txt        # Python 依赖

文档

  • 完整指南 — 环境配置、开发规范、使用方法、素材规范
  • 架构详解 — 系统架构、Agent 设计、数据流、设计决策
  • 贡献指南 — 代码规范、PR 流程

许可证

MIT License。详见 LICENSE

Remotion 许可证:Remotion 为源码可见项目,个人/非营利/≤3 人公司免费,超 3 人公司商用需购买 Remotion License。详见 THIRD-PARTY-NOTICES

致谢

Remotion · OpenCode SDK · Pexels · Pixabay · Freesound

常见问题

What is carocut?

carocut is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by bilibili. Multi-Agent 的视频制作助手,基于 OpenCode AI SDK 和 Remotion 构建。. It has 123 GitHub stars.

Is carocut safe to use?

carocut returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install carocut?

Clone the repository with "git clone https://github.com/bilibili/carocut" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is carocut written in?

carocut is primarily written in TypeScript. It is open-source under bilibili on GitHub, so you can review or fork the full source.

Are there alternatives to carocut?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh carocut against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情