← 返回 Skills 市场
austindixson

Auto Clipper

作者 austindixson · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
582
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install auto-clipper
功能描述
Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based schedu...
使用说明 (SKILL.md)

AutoClipper

Description

Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based scheduling.

AutoClipper

Automatic Video Clip & Highlight Generator for OpenClaw.

v1.0.0 — Design draft. Automatically scan a folder for media files, create clips/highlights using ffmpeg, and organize output. Cron-ready for scheduled automation.

Installation

# Add to crontab (crontab -e)
# Run every hour at minute 0
0 * * * * /Users/ghost/.openclaw/workspace/skills/auto-clipper/scripts/run.sh

# Or run daily at 9 AM
0 9 * * * /Users/ghost/.openclaw/workspace/skills/auto-clipper/scripts/run.sh --output daily

Usage

  • Screen recording highlights: Auto-clip moments from Loom/obsidian recordings
  • Meeting recaps: Extract key segments from meeting recordings
  • Content creation: Batch-process raw footage into short clips
  • Security camera clips: Pull motion-triggered segments from camera feeds
  • Gaming highlights: Auto-clip "best of" moments from recordings
# Run once (scan and process)
python3 scripts/auto_clipper.py run

# Dry run (show what would be processed)
python3 scripts/auto_clipper.py run --dry-run

# Force reprocess all files
python3 scripts/auto_clipper.py run --force

# Start continuous watcher (not cron-based)
python3 scripts/auto_clipper.py watch

# Show status
python3 scripts/auto_clipper.py status

Purpose

AutoClipper enables OpenClaw agents to automatically:

  • Monitor a watch folder for new media files (videos, screen recordings, camera clips)
  • Analyze media to understand what's worth clipping (via Agent Swarm delegation)
  • Generate clips using ffmpeg (highlights, segments, trimmed videos)
  • Produce compilations by stitching multiple clips together
  • Schedule runs via cron for fully automated workflows

Architecture

┌─────────────────────────────────────────────────────────────┐
│                      AutoClipper Skill                       │
├─────────────────────────────────────────────────────────────┤
│  1. Watch Folder (configurable input path)                  │
│         ↓                                                   │
│  2. Media Scanner (find new files, filter by extension)    │
│         ↓                                                   │
│  3. Agent Swarm delegation (analyze → clip strategy)             │
│         ↓                                                   │
│  4. Clip Engine (ffmpeg operations)                         │
│         ↓                                                   │
│  5. Output Organizer (save to output folder, optional SNS)  │
└─────────────────────────────────────────────────────────────┘

Components

1. Watch Folder Scanner

  • Monitors a configured input directory
  • Filters by file extensions: .mp4, .mov, .mkv, .avi, .webm
  • Tracks processed files (to avoid re-processing)
  • Configurable: watchFolder, fileExtensions, processedLog

2. Media Analyzer (via Agent Swarm)

  • Delegates analysis to appropriate model (MiniMax for code/technical, Kimi for creative)
  • Determines:
    • Which segments to clip (timestamp ranges)
    • Clip duration targets
    • Output format preferences
  • Returns structured clip plan: [{start, end, label, priority}]

3. Clip Engine (ffmpeg)

  • Trim: Extract segments without re-encoding (fast)
  • Transcode: Convert to target format/codec
  • Highlight: Auto-detect "interesting" segments (via scene detection)
  • Compile: Stitch multiple clips into single video
  • Overlay: Add watermarks, timestamps, captions

4. Output Manager

  • Organized output folder structure: output/YYYY-MM-DD/
  • Configurable naming: {original}-{timestamp}-{index}.mp4
  • Optional: Notify via OpenClaw message (Discord, WhatsApp, etc.)

5. Cron Scheduler

  • Standalone script for cron integration
  • Configurable schedule: 0 * * * * (hourly), 0 9 * * * (daily at 9am)
  • Dry-run mode for testing
  • Lock file to prevent overlapping runs

Configuration (config.json)

{
  "watchFolder": "~/Downloads/Recordings",
  "outputFolder": "~/Videos/Clips",
  "fileExtensions": [".mp4", ".mov", ".mkv"],
  "processedLog": "logs/processed.json",
  "clipSettings": {
    "defaultDuration": 60,
    "minClipDuration": 10,
    "maxClipDuration": 300,
    "outputCodec": "h264",
    "outputFormat": "mp4"
  },
  "intentRouter": {
    "enabled": true,
    "model": "openrouter/minimax/minimax-m2.5"
  },
  "cron": {
    "schedule": "0 * * * *",
    "enabled": false
  },
  "notifications": {
    "enabled": false,
    "channel": "discord"
  }
}

Tools Needed

Tool Purpose Required
ffmpeg Video transcoding, trimming, clipping Yes
ffprobe Media metadata extraction (duration, codec) Yes
Agent Swarm Analyze media and determine clip strategy Yes
OpenClaw message Send notifications when clips are ready Optional
OpenClaw nodes Screen recording capture (live input) Optional
file system Watch folder, output management Yes

Agent Swarm integration

When AutoClipper finds new media, it delegates analysis:

User task: "Analyze video and suggest clip timestamps for meeting highlights"
→ router.spawn() → sessions_spawn(task, model)
← Returns: [{start: "00:05:30", end: "00:07:45", label: "action item discussion"}, ...]

Prompt template for media analysis:

Analyze this video file: {filename}
Duration: {duration_seconds} seconds
Extract: Key moments worth clipping as short highlights (30-90 seconds each)
Output: JSON array of {start_timestamp, end_timestamp, description}

Directory Structure

auto-clipper/
├── SKILL.md              # This file
├── _meta.json            # Skill metadata
├── config.json           # Configuration
├── README.md             # Setup instructions
├── scripts/
│   ├── auto_clipper.py   # Main entry point
│   ├── scanner.py        # Watch folder scanner
│   ├── clipper.py        # ffmpeg wrapper
│   ├── analyzer.py       # Agent Swarm integration
│   └── run.sh            # Cron launcher
└── logs/
    └── processed.json    # Track processed files

Keywords

  • video, clip, clips, highlight, highlights
  • trim, cut, extract, segment
  • ffmpeg, transcode, encode, convert
  • folder, watch, monitor, automation
  • cron, schedule, batch, process
  • screen recording, meeting, recording

Skill Name Ideas

  1. AutoClipper ✓ (chosen)
  2. ClipForge
  3. MediaMason
  4. VideoHarvest
  5. HighlightHub
  6. ClipStream
  7. MediaSnip
  8. AutoTrim

Implementation Phases

Phase 1: Core (MVP)

  • Folder scanner with extension filtering
  • Basic ffmpeg trim operation
  • Simple processed file tracking
  • CLI entry point

Phase 2: Intelligence

  • Agent Swarm integration for clip planning
  • Scene detection for auto-highlighting
  • Metadata extraction with ffprobe

Phase 3: Automation

  • Cron launcher script
  • Continuous watcher mode
  • Notification system
  • Output organization

Phase 4: Advanced

  • Multi-clip compilation
  • Overlay/watermark support
  • Custom clip templates
  • Node camera integration

Notes

  • Performance: Use -c copy for fast trimming (no re-encode)
  • Storage: Auto-cleanup processed files or move to archive
  • Error handling: Skip corrupted files gracefully, log failures
  • Idempotency: Same input file should not produce duplicate output
安全使用建议
This skill appears to do what it says: it scans a watch folder and uses ffmpeg/ffprobe to create clips. Before installing or scheduling it: 1) Install ffmpeg/ffprobe and run the Python script manually once to confirm behavior. 2) Review and set config.json.watchFolder and outputFolder to avoid pointing the skill at sensitive directories. 3) Keep notifications and Agent Swarm analysis disabled until you verify how your OpenClaw platform provides/handles any API keys — enabling those features could transmit video metadata or clips off-host. 4) Because the cron examples use explicit user paths, update the crontab entry to the correct path for your environment. 5) If you have strict security requirements, run the script in a constrained environment (non-privileged account or container) since it will read and write files and invoke ffmpeg locally.
功能分析
Type: OpenClaw Skill Name: auto-clipper Version: 1.0.0 The skill exhibits several high-risk capabilities that, while potentially aligned with its stated purpose, introduce significant vulnerabilities. The primary concern is a prompt injection vulnerability identified in `SKILL.md` and `config.json`, where the `filename` from user-controlled input (watch folder) is directly incorporated into a prompt template for an external AI model (`openrouter/minimax/minimax-m2.5`). This could allow an attacker to craft malicious filenames to manipulate the AI agent's behavior. Additionally, the `scripts/auto_clipper.py` uses `subprocess.run` to execute `ffprobe` and `ffmpeg` with user-controlled `filepath` and `input_file` arguments, which presents a potential command injection vulnerability if these filenames contain malicious characters that `ffmpeg`/`ffprobe` might misinterpret. These are vulnerabilities that could be exploited, rather than clear evidence of intentional malicious behavior by the skill itself.
能力评估
Purpose & Capability
The name/description match the implementation: the Python script scans a configured watch folder, uses ffprobe/ffmpeg to inspect and create clips, tracks processed files, and provides a cron launcher. Declared dependencies (ffmpeg/ffprobe, agent-swarm integration) align with the code and README. There are no unrelated requests (no AWS or unrelated cloud credentials).
Instruction Scope
SKILL.md and scripts restrict actions to filesystem scanning, ffmpeg/ffprobe invocations, and writing outputs/logs under the skill directory (and the configured watch/output folders). There are no instructions to read unrelated system files, enumerate credentials, or post data externally. The Agent Swarm analysis path is a placeholder and currently prints a message rather than sending files or metadata off-host.
Install Mechanism
No install spec is provided (instruction-only + shipped scripts). That is low-risk: nothing is downloaded or executed at install time. The runtime depends on locally installed ffmpeg/ffprobe and Python 3, which is documented. All code is present in the bundle so no remote fetch is required.
Credentials
The skill declares no required environment variables or credentials and the code operates locally. However, it advertises Agent Swarm and optional notifications (Discord/WhatsApp/OpenClaw message). Those features would require external service credentials or platform-provided gateway config when enabled — but the shipped code does not include credential usage or exfiltration paths. If you enable analysis/notifications you should ensure appropriate API keys are provided by the platform and understand what media/metadata will be sent.
Persistence & Privilege
always is false (no forced inclusion). The skill runs as a user cron job or manually; it writes a lock file and processed.json under its own skill directory. It does not modify other skills or system-wide agent settings. Cron integration is user-controlled.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install auto-clipper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /auto-clipper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
AutoClipper 1.0.0 — Initial release - Automatically scans a specified folder for new media files and generates video clips or highlights. - Integrates with Agent Swarm for intelligent analysis and task delegation. - Supports scheduled automation using cron, plus manual and continuous (watcher) operation modes. - Utilizes ffmpeg and ffprobe for fast trimming, transcoding, and segment detection. - Organizes processed clips in structured output folders, with flexible configuration via config.json. - Provides CLI tools for run, dry run, force processing, status, and watcher functionality.
元数据
Slug auto-clipper
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Auto Clipper 是什么?

Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based schedu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 582 次。

如何安装 Auto Clipper?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-clipper」即可一键安装,无需额外配置。

Auto Clipper 是免费的吗?

是的,Auto Clipper 完全免费(开源免费),可自由下载、安装和使用。

Auto Clipper 支持哪些平台?

Auto Clipper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Auto Clipper?

由 austindixson(@austindixson)开发并维护,当前版本 v1.0.0。

💬 留言讨论