Communitygithub.com

FilippTrigub/abra

影片增強處理管線。當使用者想要銳化、調色、調暖或標準化影片音訊時使用此技能——包括自然、電影感或鮮豔等預設風格。

abra 是什麼?

這是一個專為批次影片處理設計的增強管線技能,整合了銳化、調色(色溫/飽和度調整)與音訊標準化(-14 LUFS)。它支援三種預設風格:自然(輕微銳化、飽和度+10%)、電影感(強銳化、飽和度+35%、暖色調)與鮮豔(強銳化、飽和度+40%),讓使用者能快速選擇所需視覺效果。此技能適用於 Claude Code、Cursor 或 Codex 等 AI 代理平台,透過執行 Python 腳本(enhance.py)與 ffmpeg 實現處理流程。它會報告成功與失敗的影片數量、輸出目錄路徑,並明確列出失敗檔案。同時也處理常見邊緣情況,例如缺少 ffmpeg 或 uv 時的引導提示、空輸入目錄警告及無效預設清單。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/FilippTrigub/abra/tree/HEAD/skills/video-enhancer

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

video-enhancer — 影片增強管線

銳化、調色並標準化一批影片的音訊。不含字幕——如需字幕請使用 video-captioner 技能。

處理管線

輸入影片 → unsharp + eq + colorbalance (ffmpeg) → -14 LUFS 音訊標準化 → 輸出

預設風格

預設銳化程度飽和度色溫
natural輕微+10%無
cinematic強烈+35%暖色(紅色增強、藍色減少)
vivid強烈+40%無

如果使用者尚未指定預設,請在執行前詢問他們想要的風格。簡要描述選項:natural 呈現乾淨、低調的效果;cinematic 呈現溫暖、搶眼的 Instagram 風格色調;vivid 提供最大色彩強度。

如何執行

安裝相依套件(僅首次執行):

cd "$SKILL_DIR" && uv sync

然後處理影片:

cd "$SKILL_DIR" && uv run python scripts/enhance.py \
  --input <path/to/input> \
  --output <path/to/output> \
  --preset natural|cinematic|vivid

常用指令

# 電影感色調
uv run python scripts/enhance.py --input ./input --output ./output --preset cinematic

# 自然色調
uv run python scripts/enhance.py --input ./input --output ./output --preset natural

# 鮮豔色調
uv run python scripts/enhance.py --input ./input --output ./output --preset vivid

執行後

向使用者回報:

  • 成功處理的影片數量與失敗的數量。
  • 輸出目錄的完整路徑。
  • 如果有任何影片失敗,請明確列出其名稱。

邊緣情況

  • 如果未安裝 ffmpeg:請告知使用者安裝(Arch/CachyOS 上使用 sudo pacman -S ffmpeg,macOS 上使用 brew install ffmpeg,Ubuntu 上使用 sudo apt install ffmpeg)
  • 如果未安裝 uv:引導至 https://docs.astral.sh/uv/getting-started/installation/
  • 如果輸入目錄為空:清楚回報,不要默默地結束
  • 如果指定了未知的預設:列出有效的選項(natural、cinematic、vivid)
  • 對於短片段,音訊標準化可能會印出關於動態模式的警告——這是預期行為,並非錯誤

Individual skills in this repo

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

FilippTrigub/abra

>- Animate a still image into a short video clip using fal.ai's LTX-2.3 Fast image-to-video model in the cloud. No GPU required - runs entirely on fal.ai serverless infrastructure.

FilippTrigub/abra

>- Auto-describe and caption images using a local vision-language model. Writes a JSON sidecar per image containing a one-sentence description, a suggested Instagram caption with hashtags, and detected content tags.

FilippTrigub/abra

>- Animated caption pipeline. Use this skill when the user wants to burn word-by-word animated captions into videos — using Whisper for transcription and pycaps for rendering. Supports default minimalist style or a futuristic CSS theme with alternating gold/magenta glowing words.

FilippTrigub/abra

>- Cut videos into segments, rearrange them, and produce an output video with a specific cuts-per-second rate. Uses MoviePy for video manipulation. Prioritizes audio transcription for timestamped cutting, falls back to adaptive scene detection.

FilippTrigub/abra

>- Edit a region of a video using a text prompt via Wan2.1-VACE inpainting. Supports two modes: background (auto-segment via rembg) or region (rectangle defined by fractions). Requires a CUDA GPU with at least 8 GB free VRAM.

FilippTrigub/abra

Generate videos from text or images using Higgsfield's multi-model cloud platform. Supports kling, seedance, dop, and dop-preview models. Uses a small preset layer for common creative styles. Auto-detects text-to-video or image-to-video based on input. No GPU required.

FilippTrigub/abra

>- Remove the background from every frame of a video using AI (BiRefNet-general via rembg). Outputs transparent-background video or composites onto a solid colour or image. Requires a CUDA GPU with at least 3 GB free VRAM.

相關技能