技能 video-enhancement
🎬

video-enhancement

中风险 ⚙️ 外部命令🌐 网络访问🔑 环境变量📁 文件系统访问

使用 AI 增强和提升视频质量

通过 AI 驱动的画质增强处理原始或低质量视频文件。该技能可自动完成本地文件和流媒体 URL 的下载、裁剪、上传和增强。

支持: Claude Codex Code(CC)
⚠️ 61
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“video-enhancement”。 /video-enhancement -v ./video.mp4 --hd

预期结果:

任务创建成功(ID:123)。正在轮询状态...已完成。增强后的视频可在以下地址获取:https://img.panpan8.com/video-enhance/result_123.mp4

正在使用“video-enhancement”。 /video-enhancement -v "https://youtube.com/watch?v=abc" --end 20

预期结果:

视频已下载至 /tmp/verging-video-enhancement/input.mp4。已裁剪至 20 秒。额度:60。任务已创建(ID:456)。结果:https://img.panpan8.com/video-enhance/result_456.mp4

安全审计

中风险
v4 • 6/8/2026

This skill is a legitimate video enhancement tool that wraps the verging.ai API. Static analysis flagged shell commands (ffmpeg, curl, yt-dlp), env var access (VERGING_API_KEY), network calls to verging.ai, and temp directory usage. After evaluation, all findings are false positives: the shell commands are standard video processing tool invocations documented for instructional purposes, the API key access follows best practices (env var only), and network calls are to the documented verging.ai API. The combination heuristic is expected for a skill that processes media files via a cloud API. No malicious intent detected.

2
已扫描文件
215
分析行数
8
发现项
4
审计总数
中风险问题 (2)
Shell command execution via ffmpeg, curl, and yt-dlp
The skill instructs execution of shell commands including ffmpeg for video trimming, curl for API calls, and yt-dlp for video downloads. These are standard media processing tools invoked with documented parameters. While the execution pattern triggers static analysis, the commands are purposeful and scoped to the video enhancement workflow.
API key handling via environment variable
The skill accesses VERGING_API_KEY environment variable for authentication with the verging.ai API. This is the recommended secure pattern for credential management. The key is never hardcoded; users set it via export. Privacy section explicitly warns against exposing it in public repos.
低风险问题 (2)
Network requests to verging.ai API endpoints
The skill makes HTTP requests to verging.ai/api/v1/* endpoints for authentication, video upload, job creation, and status polling. All requests are to the documented API of the service the skill is designed to interface with. No requests to suspicious or external third-party domains.
Temp directory usage for video processing
The skill uses /tmp/verging-video-enhancement/ as a working directory for trimmed video files. This is a standard ephemeral location for media processing. The skill notes temp files are cleaned up after use.
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
85
内容
23
社区
51
安全
91
规范符合性

你能构建什么

社交媒体内容创作者

快速为 Instagram、TikTok 或 YouTube Shorts 提升短视频画质,无需手动编辑软件。

视频修复爱好者

通过一条命令将老旧或低质量的家庭视频提升至现代分辨率标准。

开发者原型设计媒体工具

参考 verging.ai API 工作流来构建视频处理管道。

试试这些提示

增强本地视频文件
/video-enhancement -v ./my-video.mp4
增强 YouTube 视频
/video-enhancement -v "https://youtube.com/watch?v=example"
自动下载的高清画质提升
/video-enhancement -v ./video.mp4 --hd --download -o ./output/
裁剪并增强片段
/video-enhancement -v ./long-video.mp4 --start 10 --end 25 --hd

最佳实践

  • 将 VERGING_API_KEY 设置为环境变量,而不是内联在命令中传递
  • 在提升画质之前先将视频裁剪到所需片段,以最大限度减少额度消耗
  • 上传至 API 之前,请确认您有权处理该媒体

避免

  • 不要在脚本中硬编码 API 密钥或将其提交到版本控制中
  • 不要处理超过 30 秒且未先裁剪的视频;API 将拒绝此类请求
  • 不要对上传或任务创建端点使用 JSON 请求体;两者都需要使用 -F 标志的表单数据

常见问题

需要安装哪些工具?
您需要在系统 PATH 中可用 yt-dlp、ffmpeg、ffprobe 和 curl。
增强处理需要多少费用?
普通模式每秒消耗 3 个额度。HD 模式每秒消耗 5 个额度。
可以处理超过 30 秒的视频吗?
API 将任务限制为 30 秒。使用 --start 和 --end 标志先裁剪较长的视频。
增强后的视频保存在哪里?
默认情况下会显示结果 URL。使用 --download 标志可保存到当前目录,或指定 --output 以使用自定义路径。
我的 API 密钥安全吗?
密钥从 VERGING_API_KEY 环境变量读取。切勿将其粘贴到公共代码仓库或共享终端中。
支持哪些视频源?
支持任何常见格式的本地文件,以及通过 yt-dlp 处理 YouTube 和哔哩哔哩 URL。

开发者详情

文件结构

📄 README.md

📄 SKILL.md