
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
ai-clipmate
Advanced tools
AI-powered video editing tool - Smart detection, auto-trimming, subtitle generation. Slash Command for Claude/Cursor/Gemini.
ClipMate 是一款基于 AI 的视频剪辑工具,通过智能检测和自动化处理,帮助你快速剪辑录制视频。
ClipMate 采用 Slash Command 模式,作为 AI 编辑器的插件运行:
用户在 AI 编辑器中输入: /detect
↓
┌─────────────────────────────────────────┐
│ Markdown 模板 (.claude/commands/) │
│ - 定义 AI 角色和行为 │
│ - 描述检测标准 │
│ - 引用 bash 脚本 │
└─────────────────────────────────────────┘
↓
┌─────────────────────────────────────────┐
│ Bash 脚本层 (scripts/bash/) │
│ - 项目管理 │
│ - 调用 Python 脚本 │
│ - 输出 JSON 给 AI │
└─────────────────────────────────────────┘
↓
┌─────────────────────────────────────────┐
│ Python 处理层 (scripts/python/) │
│ - FFmpeg 视频处理 │
│ - OpenCV 画面分析 │
│ - 阿里云 ASR 语音识别 │
└─────────────────────────────────────────┘
# macOS
brew install ffmpeg
# Ubuntu/Debian
sudo apt-get install ffmpeg
# Windows
# 从 https://ffmpeg.org/download.html 下载
npm install -g ai-clipmate
由于 macOS 系统限制,需要使用虚拟环境安装 Python 依赖。
使用 ClipMate 命令自动设置(推荐)
# 在项目目录运行
clipmate setup-python
这个命令会自动:
requirements.txt 文件(如果不存在)注意:
source venv/bin/activate
python3 scripts/python/detect_silence.py video.mp4
# 创建新项目
clipmate init my-video-project
# 或在当前目录初始化
clipmate init --here --ai claude
将视频文件放入 videos/ 目录,或使用命令导入:
clipmate import path/to/your/video.mp4
在 Claude Code/Cursor 等编辑器中输入:
/detect
AI 会自动:
检测视频中的静音、重复画面、场景切换:
/detect # 使用默认预设(教学模式)
/detect --preset meeting # 使用会议模式
/detect --preset vlog # 使用 Vlog 模式
/detect --preset short # 使用短视频模式
根据检测报告自动剪辑:
/cut --auto # 自动剪辑所有片段
/cut --interactive # 交互式确认每个片段
合并剪辑后的片段:
/merge
使用阿里云生成字幕:
/transcribe # 使用默认模型(通用)
/transcribe --model education # 使用教育模型
/transcribe --model meeting # 使用会议模型
/subtitle --burn # 烧录字幕到视频
/subtitle --style default # 使用默认样式
/export --preset youtube # YouTube 1080p
/export --preset bilibili # B站 1080p
/export --preset douyin # 抖音竖屏 9:16
适合: 在线课程、软件演示、编程教学
适合: Zoom 会议、访谈、研讨会
适合: 旅行 Vlog、生活记录、美食探店
适合: 抖音、快手、小红书
# 1. 初始化项目
clipmate init my-course
# 2. 导入视频(在 AI 编辑器中)
/import
# 3. 智能检测(教学模式)
/detect
# AI 提示选择模式,选择 A(教学模式)
# 4. 查看检测报告
# AI 会展示:
# - 12 个静音片段(共 3分15秒)
# - 5 个重复操作(共 1分30秒)
# - 预计节省 4分00秒 (13.3%)
# 5. 自动剪辑
/cut --auto
# 6. 生成字幕
/transcribe --model education
# 7. 导出
/export --preset youtube
clipmate init meeting-2024-11-05
/import zoom-recording.mp4
/detect --preset meeting
/cut --interactive # 逐个确认
/transcribe --model meeting --enable-speaker
/export --preset bilibili
ClipMate 支持以下 13 个 AI 编辑器:
.claude/commands/).cursor/commands/).gemini/commands/).windsurf/workflows/).roo/commands/).github/prompts/).qwen/commands/).opencode/command/).codex/prompts/).kilocode/workflows/).augment/commands/).codebuddy/commands/).amazonq/prompts/)编辑 .clipmate/aliyun.json:
{
"access_key_id": "your_access_key_id",
"access_key_secret": "your_access_key_secret",
"asr": {
"app_key": "your_asr_app_key",
"model": "generic"
}
}
获取密钥: https://ram.console.aliyun.com/
my-video-project/
├── .clipmate/
│ ├── config.json # 项目配置
│ └── aliyun.json # 阿里云配置
│
├── .claude/ # AI 平台配置(示例)
│ └── commands/
│ ├── detect.md
│ ├── cut.md
│ └── [所有命令]
│
├── scripts/
│ ├── bash/ # Bash 脚本
│ │ ├── common.sh
│ │ ├── detect.sh
│ │ ├── cut.sh
│ │ └── ...
│ ├── powershell/ # PowerShell 脚本(Windows)
│ └── python/ # Python 处理脚本
│ ├── detect_silence.py
│ └── ...
│
├── templates/
│ ├── commands/ # Markdown 命令模板
│ └── option-templates/ # YAML 配置库
│
├── videos/ # 原始视频
├── clips/ # 剪辑片段和报告
├── subtitles/ # 字幕文件
└── exports/ # 导出成品
git clone https://github.com/wordflowlab/clipmate.git
cd clipmate
npm install
npm run build
npm run dev
欢迎提交 Issue 和 Pull Request!
MIT License
Made with ❤️ by ClipMate Team
FAQs
AI-powered video editing tool - Smart detection, auto-trimming, subtitle generation. Slash Command for Claude/Cursor/Gemini.
The npm package ai-clipmate receives a total of 10 weekly downloads. As such, ai-clipmate popularity was classified as not popular.
We found that ai-clipmate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.