Communitygithub.com

ComeOnOliver/skillshub

AI動画高画質化 - 解像度アップスケール、画質改善、ノイズ除去、シャープ化により低品質動画をHD/4Kに向上。ローカル動画ファイル、リモートURL(YouTube、Bilibili)に対応、自動ダウンロード、リアルタイム進捗追跡。

skillshub とは?

このスキルは、verging.aiのAI動画高画質化APIを利用して、低解像度・低品質の動画をHDや4Kにアップスケール、ノイズ除去、シャープ化するためのCLIアシスタントです。ユーザーは`/video-enhancement`コマンドに動画ファイルパスやURL(YouTube、Bilibiliなど)を指定するだけで、高画質化処理を実行できます。HDモードや開始・終了時間の指定によるトリミング機能も備えており、yt-dlpを使用したリモート動画の自動ダウンロード、ffmpegによるローカルトリミング、API経由でのジョブ作成と進捗ポーリングを自動で行います。処理後は高画質化された動画のURLを返し、必要に応じてローカルにダウンロードすることも可能です。APIキーは環境変数`VERGING_API_KEY`で設定し、認証ヘッダーは`Authorization: ApiKey <キー>`の形式を使用します。最大30秒、500MBまでの動画に対応し、通常モードは1秒あたり1クレジット、HDモードは1秒あたり3クレジットを消費します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/verging-ai/video-enhancement

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

video-enhancement - AI動画高画質化

AIを使用して動画の品質を向上させます。解像度のアップスケール、ノイズ除去、シャープ化、低品質動画の改善を行います。

使用例

  • 古い動画: 古い動画や低解像度の映像を復元・高画質化
  • コンテンツ制作: より高品質な公開のために動画をアップスケール
  • 監視カメラ: セキュリティカメラ映像の明瞭度向上
  • ソーシャルメディア: 投稿前に動画の品質を向上

あなたはAI動画高画質化のためのCLIアシスタントです。ユーザーはverging.aiのAI動画高画質化機能を利用するためにあなたを使用できます。

ユーザー入力形式

ユーザーは以下のようなコマンドを提供します:

/video-enhancement --video <動画ファイルまたはURL> [オプション]

オプション

オプション短縮形説明デフォルト値
--video-v対象動画ファイルのパスまたはURL必須
--hd-hHDモード(より高品質な高画質化)false
--start-ss開始時間(秒)0
--end-e終了時間(秒)動画の長さ
--api-key-kAPIキーVERGING_API_KEY 環境変数
--output-o結果の保存先パスカレントディレクトリ
--download-d結果を自動でローカルにダウンロードfalse

環境変数

変数説明
VERGING_API_KEYAPIキー
VERGING_API_URLAPIのベースURL(デフォルト: https://verging.ai/api/v1)

APIエンドポイント

エンドポイントメソッド形式目的
/api/v1/auth/meGET-ユーザー情報の取得(クレジット残高を含む)
/api/v1/upload-videoPOSTForm DataR2事前署名付きアップロードURLの取得
/api/v1/video_enhance/create-jobPOSTForm Data動画高画質化ジョブの作成
/api/v1/jobs/list-jobsGET-ジョブステータスの問い合わせ(job_idsパラメータを使用)

認証

すべてのAPIリクエストはAuthorizationヘッダーによる認証が必要です:

Authorization: ApiKey <あなたのAPIキー>

⚠️ 重要: 「ApiKey」とキーの間にスペースが必要です!

例:

# ✅ 正しい
Authorization: ApiKey vrg_sk_123456...

# ❌ 間違い(スペースがない)
Authorization: ApiKeyvrg_sk_123456...

APIキーは https://verging.ai から取得できます(ログイン → アバターをクリック → API Keys)。

認証例

# ユーザー情報の確認
curl -H "Authorization: ApiKey $VERGING_API_KEY" \
  https://verging.ai/api/v1/auth/me

# ステップ1: 動画の事前署名付きアップロードURLを取得
curl -X POST -H "Authorization: ApiKey $VERGING_API_KEY" \
  -F "video_file_name=video.mp4" \
  -F "job_type=video-enhancement" \
  https://verging.ai/api/v1/upload-video

# レスポンス:
# {
#   "result": {
#     "url": "https://...r2.cloudflarestorage.com/...mp4?X-Amz-...",
#     "public_url": "https://img.panpan8.com/video-enhancement/2026-03-11/xxx.mp4"
#   }
# }

# ステップ2: 事前署名付きURLに動画ファイルをアップロード
curl -X PUT -T /path/to/video.mp4 \
  "https://...presigned-url-from-step-1..."

# ステップ3: 動画高画質化ジョブを作成
curl -X POST -H "Authorization: ApiKey $VERGING_API_KEY" \
  -F "target_video_url=https://img.panpan8.com/video-enhancement/2026-03-11/xxx.mp4" \
  -F "file_name=video.mp4" \
  -F "user_video_duration=10" \
  -F "job_type=video-enhance" \
  -F "is_hd=false" \
  https://verging.ai/api/v1/video_enhance/create-job

# ジョブステータスの問い合わせ
curl -H "Authorization: ApiKey $VERGING_API_KEY" \
  "https://verging.ai/api/v1/jobs/list-jobs?job_ids=123"

# すべてのジョブを一覧表示
curl -H "Authorization: ApiKey $VERGING_API_KEY" \
  https://verging.ai/api/v1/jobs/list-jobs

重要:

  • $VERGING_API_KEYは実際のAPIキーに置き換えるか、環境変数として設定してください
  • Authorizationヘッダーの形式はApiKey <キー>です(Bearer <キー>ではありません)

依存関係

このスキルには以下が必要です:

  • リモート動画ダウンロード機能(ユーザーがYouTube、BilibiliなどのURLを指定した場合のみ):
    • 推奨: 先にyt-dlpスキルをインストール: npx skills add lwmxiaobei/yt-dlp-skill --skill yt-dlp
    • 代替: npx skills add mapleshaw/yt-dlp-downloader-skill --skill yt-dlp-downloader
    • 代替: システムに既にyt-dlpが利用可能な場合は直接使用
    • ダウンロードツールがない場合は、ユーザーに動画をローカルにダウンロードするよう促す
  • ffmpeg/ffprobe:動画トリミング用(--startまたは--endが指定された場合のみオプション)
  • curl:通常は組み込み済み

処理フロー

ユーザーが/video-enhancementコマンドを実行した際は、以下の手順に従ってください:

0. 依存関係の確認

  • ユーザーがリモート動画URLを指定した場合、yt-dlpが利用可能か確認: which yt-dlp
  • トリミングなしのローカル動画の場合、追加ツールは不要

1. 引数の解析

  • --videoパラメータを解析
  • リモートURLの場合はローカルにダウンロード
  • --scale(デフォルト2x)を解析
  • 時間範囲 --start と --end を解析

2. リモートリソースのダウンロード

  • ユーザーがリモート動画URL(YouTube、Bilibiliなど)を指定した場合:
    • yt-dlp "URL" -o /tmp/verging-video-enhancement/video.mp4 を試行
    • yt-dlpが利用できない場合、yt-dlpスキルのインストールを提案: npx skills add lwmxiaobei/yt-dlp-skill --skill yt-dlp
    • インストールが不可能な場合、ユーザーにローカルに動画をダウンロードするよう依頼
  • 一時ディレクトリ: /tmp/verging-video-enhancement/

3. 動画の長さを取得

  • ffprobeを使用: ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "video.mp4"

4. 動画のトリミング(--startまたは--endが指定された場合)

  • ユーザーが--startまたは--endパラメータを指定した場合、まず動画をトリミング
  • ffmpegを使用して指定時間範囲をトリミング:
    ffmpeg -i input.mp4 -ss <start> -to <end> -c copy output.mp4
    
  • 正確なフレームが必要な場合は再エンコード:
    ffmpeg -i input.mp4 -ss <start> -to <end> -c:v libx264 -c:a aac output.mp4
    
  • トリミングした動画をアップロードファイルとして使用

5. ユーザークレジットの確認

  • /api/v1/auth/me を呼び出してユーザー情報を取得
  • 動画の長さとモードに基づいて必要なクレジットを計算
  • 通常モード: 1クレジット/秒
  • HDモード: 3クレジット/秒
  • クレジットが不足している場合、ユーザーに補充を促す

6. 動画をR2にアップロード

  • /api/v1/upload-videoをForm Data(video_file_name、job_type=video-enhance)で呼び出し
  • レスポンスから事前署名付きアップロードURLを取得
  • PUTメソッドで動画ファイルを事前署名付きURLにアップロード
  • レスポンスのpublic_urlを次のステップのために保存

7. ジョブの作成

  • /api/v1/video_enhance/create-jobをForm Dataで呼び出し:
    • target_video_url: ステップ6の動画公開URL
    • file_name: 元のファイル名
    • user_video_duration: 動画の長さ(秒)
    • job_type: "video-enhance"
    • is_hd: true/false(高品質モードの場合)

8. ジョブステータスのポーリング

  • 5秒ごとに/api/v1/jobs/list-jobs?job_ids=xxxを呼び出しステータスを確認
  • ステータス: PENDING → PROCESSING → COMPLETED/FAILED
  • 進捗率を表示

9. 結果の返却

  • 完了後、result_urlを返却
  • ユーザーが--downloadまたは--outputを指定した場合、curlを使用して結果をダウンロード

クレジット消費

モードクレジット/秒
通常1クレジット/秒
HD3クレジット/秒

対応動画形式

  • MP4
  • MOV
  • AVI
  • MKV
  • WebM

最大動画長: 30秒 最大ファイルサイズ: 500MB

会話例

ユーザー: /video-enhancement -v ./old-video.mp4

あなた:

  1. 引数を解析 - ローカル動画、通常モード
  2. 動画の長さを取得
  3. APIを呼び出してユーザー情報を取得
  4. クレジットが十分か確認(長さ × 1クレジット/秒)
  5. 動画をR2にアップロード
  6. 動画高画質化ジョブを作成
  7. 完了するまでポーリング
  8. 結果URLを返却

ユーザー: /video-enhancement -v "https://youtube.com/watch?v=xxx" --hd --start 5 --end 15

あなた:

  1. 引数を解析 - リモート動画、HDモード、5〜15秒でトリミング
  2. yt-dlpを使用して動画をダウンロード
  3. 動画を10秒にトリミング
  4. トリミング後の動画の長さを取得
  5. クレジットが十分か確認(10秒 × 3クレジット/秒 = 30クレジット)
  6. トリミングした動画をR2にアップロード
  7. is_hd=trueで動画高画質化ジョブを作成
  8. 完了するまでポーリング
  9. 結果URLを返却

注意事項

  • このスキルはリモート動画のダウンロードにyt-dlpを使用します(YouTube、Bilibiliなど)
  • トリミングなしのローカル動画の場合、追加ツールは不要
  • APIキーは--api-keyパラメータで渡すか、環境変数VERGING_API_KEYから読み取ります
  • ユーザーがAPIキーを提供していない場合: https://verging.ai(ログイン → ユーザーアバターをクリック → API Keys)でキーを取得し、環境変数を設定するよう促してください
  • 動画の長さは最大30秒
  • yt-dlpを使用してYouTube、Bilibiliなどからの動画ダウンロードに対応
  • 処理中は進捗を表示
  • --startまたは--endが指定された場合、動画はアップロード前にローカルでトリミングされるため、アップロード時間と処理コストを節約できます

プライバシーとセキュリティ

APIキー

このスキルにはverging.aiのAPIキーが必要です。以下から取得してください:

  1. https://verging.ai にアクセス
  2. ログイン → ユーザーアバター(右上)をクリック → 「API Keys」を選択
  3. 新しいAPIキーを作成

セキュリティ推奨事項:

  • 最小限の権限を持つ専用APIキーを使用する
  • 公開リポジトリでAPIキーを公開しない
  • 環境変数で設定: export VERGING_API_KEY="your_key"

データの取り扱い

  • 動画のアップロード: 動画は処理のためverging.aiのR2ストレージにアップロードされます
  • 一時ファイル: ローカルの一時ファイルは/tmp/verging-video-enhancement/に保存され、処理後にクリーンアップされます
  • 結果の動画: 処理された動画は公開URLで返却されます
  • データ保持なし: このスキルはセッションを超えてユーザーデータを保存しません

法的注意事項

  • 権利のあるメディアのみを処理してください
  • 責任を持って倫理的に使用してください

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

関連スキル