agentleFS
siviter-xyzsiviter-xyz/dot-agent/skills/media-processing/SKILL.md

media-processing

Skill22 starsChanged 11 months agoMITView on GitHub

Media processing utilities for images, audio, and video using FFmpeg and ImageMagick. Use when working with media conversion, optimization, or batch processing tasks.

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mobile-development, planning and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • truongtv22Skill

    mobile-development

    Build modern mobile applications with React Native, Flutter, Swift/SwiftUI, and Kotlin/Jetpack Compose. Covers mobile-first design principles, performance optimization (battery, memory, network), offline-first architecture, platform-specific guidelines (iOS HIG, Material Design), testing strategies, security best practices, accessibility, app store deployment, and mobile development mindset. Use when building mobile apps, implementing mobile UX patterns, optimizing for mobile constraints, or making native vs cross-platform decisions.

    Also in 3 projects that use this

  • AWSSkill

    planning

    Discovers user intent and generates a structured, step-by-step plan for model customization workflows. This skill must always be activated alongside any other skill when the user's request relates to model customization — including fine-tuning, training, building, customizing, reviewing data, or getting advice on approach, regardless of domain. Do not skip this skill even if the immediate ask is narrow (e.g., reviewing data format or a single workflow step), because planning discovers the full scope of work needed. Also activate when the user wants to resume, continue, or modify an existing plan.

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    CLI-first workflows: Prefer command-line tools (FFmpeg, ImageMagick) and scripts that can be automated in CI or local tooling.

    line 20
  2. Distinctive:

    Non-destructive defaults: Default to writing outputs to new files/directories rather than overwriting originals.

    line 22
  3. Distinctive:

    Cross-platform friendly: Keep examples and scripts usable on Linux, macOS, and Windows where possible.

    line 23
  4. Very specific:

    Ensure ffmpeg and ffprobe are installed and on PATH for video/audio tasks.

    line 71
  5. Very specific:

    Ensure magick (ImageMagick) is installed and on PATH for image tasks.

    line 72
  6. Very specific:

    Use --dry-run and/or --verbose flags on scripts to inspect generated commands before running them.

    line 75
  7. Very specific:

    When you find good command lines or script invocations, promote them into project scripts (e.g., just, npm scripts, or CI jobs) so they’re …

    line 81

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Media Processing

Tools and workflows for working with images, audio, and video in a repeatable, scriptable way using standard CLI tools (FFmpeg, ImageMagick) and Python helpers.

When to Use

  • Working with image batches (thumbnails, resizing, format conversion)
  • Converting media between formats (video ↔ audio ↔ image)
  • Optimizing video size while maintaining acceptable quality
  • Preparing assets for web, mobile, or archival use
  • Designing or refining CLI workflows around FFmpeg/ImageMagick

Key Principles

  • CLI-first workflows: Prefer command-line tools (FFmpeg, ImageMagick) and scripts that can be automated in CI or local tooling.
  • Deterministic scripts: Scripts should be safe to run repeatedly with predictable output paths and options.
  • Non-destructive defaults: Default to writing outputs to new files/directories rather than overwriting originals.
  • Cross-platform friendly: Keep examples and scripts usable on Linux, macOS, and Windows where possible.
  • Agent-agnostic: Guidance should work with any coding agent (Cursor, Claude, Copilot, etc.), not one specific environment.

Capabilities

  • Image workflows
    • Batch resize and thumbnail generation
    • Aspect-ratio–aware resizing (fit, fill, cover, exact)
    • Optional watermarking
    • Format conversion (e.g., PNG → WebP, JPEG)
  • Media conversion
    • Detects media type (video, audio, image) from extension
    • Uses FFmpeg for video/audio, ImageMagick for images
    • Quality presets for web, archive, and mobile use cases
    • Batch conversion with dry-run and verbose modes
  • Video optimization
    • Resolution and frame-rate adjustments
    • Single-pass (CRF) or two-pass encoding
    • Audio bitrate tuning
    • Basic before/after comparison (size, bitrate, resolution, FPS)

Scripts

Scripts live in scripts/ and are intended to be run directly from a shell:

  • batch_resize.py
    • Batch image resizing with multiple strategies (fit, fill, cover, exact, thumbnail)
    • Optional watermark overlay
    • Supports parallel processing and dry-run mode
  • media_convert.py
    • Unified conversion tool for video, audio, and images
    • Automatically picks FFmpeg or ImageMagick
    • Uses quality presets (web, archive, mobile)
    • Supports batch conversion and format changes (e.g., .mov → .mp4, .wav → .mp3)
  • video_optimize.py
    • Focused on video size/quality trade-offs
    • Resolution caps, FPS reduction, CRF tuning, optional two-pass encoding
    • Optional comparison summary between original and optimized outputs

See scripts/requirements.txt for environment expectations (Python 3.10+, FFmpeg, ImageMagick) and system installation hints.

Usage Guidelines

  • Check dependencies first
    • Ensure ffmpeg and ffprobe are installed and on PATH for video/audio tasks.
    • Ensure magick (ImageMagick) is installed and on PATH for image tasks.
  • Prefer dry-runs when exploring
    • Use --dry-run and/or --verbose flags on scripts to inspect generated commands before running them.
  • Keep originals
    • Point outputs to a separate directory on first runs (e.g., --output ./out/) to avoid accidental overwrites.
  • Document workflows
    • When you find good command lines or script invocations, promote them into project scripts (e.g., just, npm scripts, or CI jobs) so they’re repeatable.

References

For deeper tool-specific notes (placeholders for now, extend as needed), see:

  • references/ffmpeg-encoding.md – FFmpeg encoding patterns and flags
  • references/ffmpeg-filters.md – Common filter graphs (scale, crop, audio filters)
  • references/ffmpeg-streaming.md – Streaming-friendly settings and HLS/DASH tips
  • references/format-compatibility.md – Container/codec compatibility notes (web, mobile, desktop)
  • references/imagemagick-batch.md – Batch image processing patterns with ImageMagick
  • references/imagemagick-editing.md – Image editing operations (crop, resize, composite, text, etc.)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.