/video-editing:sort-clips-byfrom video-editing
Sorts media files into subfolders by resolution, aspect ratio, framerate, codec, or media kind (photo/video). Dry-run preview by default; moves files without modifying content.
Ships in video-editing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bucket a flat folder of media into subfolders by a single attribute. Operates by mv only — files are not transcoded or modified.
| Field | Default |
|---|---|
| Source folder | required |
| Attribute | required: resolution | aspect | fps | codec | kind |
| Recursive | no (only files at top level of source) |
| Mode | preview (dry-run) — flip to commit once user confirms |
SRC="$(realpath "$INPUT")"
test -d "$SRC" || { echo "Not a folder: $SRC"; exit 1; }
if [ "$RECURSIVE" = "yes" ]; then
mapfile -t FILES < <(find "$SRC" -type f -not -path '*/.*')
else
mapfile -t FILES < <(find "$SRC" -maxdepth 1 -type f -not -name '.*')
fi
Use ffprobe for video/image streams; fall back to file --mime-type for non-media (skip those unless attribute is kind).
probe() {
ffprobe -v error -select_streams v:0 \
-show_entries stream=width,height,r_frame_rate,codec_name,codec_type \
-of json "$1" 2>/dev/null
}
Bucket rules:
| Attribute | Bucket name |
|---|---|
resolution | 4K (≥3840w), 1440p (≥2560w), 1080p (≥1920w), 720p (≥1280w), SD (else) |
aspect | 16x9, 9x16, 1x1, 4x3, 21x9, other (round to nearest standard within 2%) |
fps | 24fps, 25fps, 30fps, 50fps, 60fps, 120fps, other (snap to nearest standard within 1 fps) |
codec | the codec_name verbatim (h264, hevc, prores, etc.) |
kind | videos, photos, other (mime-type prefix video/ / image/) |
For kind, photos use ffprobe for image dimensions if needed but the bucket is decided by mime-type.
Print a table:
bucket count sample file
-------------- ------ --------------------------
4K 12 DJI_0042.MP4
1080p 48 GX010234.MP4
SD 3 handycam_old.AVI
Ask the user: commit? (default no).
for f in "${FILES[@]}"; do
bucket=$(classify "$f")
mkdir -p "$SRC/$bucket"
mv -n "$f" "$SRC/$bucket/" # -n: never overwrite
done
Skip (don't move) if mv -n would clobber. Report any skips.
Print final counts per bucket and the source folder path.
.DS_Store, .gitkeep) are ignored.ffprobe (when attribute requires it) land in a _unprobed/ bucket and are listed in the report.commands/separate-4k.md and commands/separate-photos-and-video.md scratch notes.What SKILL.md sets; muted values are Claude Code's defaults
video-editing@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin video-editing41 skills in this plugin
/agentic-editRun an agentic / LLM-driven cut-down on a long video — "make a 60-second highlight reel of this hour-long stream", "cut the boring parts from this lecture", "find the best moments in this footage". Wraps `video-use` (browser-use) by default; falls back to `VideoAgent` (HKU) for research-grade understanding. Both come from the shared uv venv set up by `deps-setup`. Outputs a cut-list (timestamps + reasons) and an optional rendered preview./audio-analysisExtract audio from a video (or analyze a standalone audio file) and report loudness — integrated LUFS, true peak (dBTP), loudness range — against a target like YouTube (-14 LUFS) or broadcast (-23 LUFS). Use when the user says "check loudness", "is this normalized", "extract the audio", "audio analysis", or "what LUFS is this". Read-only on the source — does not normalize./