agentleFS
godot-fungodot-fun/godot-agent/.agents/skills/video-cut/SKILL.md

video-cut

Skill210 starsChanged yesterdayMITView on GitHub

Cuts a single video at a specified time into two precisely timed MP4 segments using FFmpeg, defaulting to two equal-duration halves when no time is given. Re-encodes as compatible H.264/AAC so the cut is not shifted to a nearby keyframe. Use when the user wants to cut or divide a video into two parts, cut at a timestamp, split a video in half, or separate the first and second portions of a clip.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read and follow dependency-manager.

    line 12
  2. Distinctive:

    Use one optional parameter:

    line 29
  3. Very specific:

    Use -o / --output to choose an output directory.

    line 44
  4. Distinctive:

    Use the bundled script, not handwritten FFmpeg commands.

    line 48
  5. Distinctive:

    When the user asks for two halves without a timestamp, use the default 50% split.

    line 49
  6. Distinctive:

    Do not use stream copy; it can move cuts to keyframes and produce unequal parts.

    line 50
  7. Very specific:

    If Python or FFmpeg is missing, populate .dependency/ and retry.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “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

Video Cut

Split one video into part 1 (start to split point) and part 2 (split point to end). Default to the exact temporal midpoint.

Rules

Read and follow dependency-manager. Run the bundled script as documented and install missing tools into .dependency/.

Quick Start

.dependency/python/python .ai/video-cut/cut.py --video path/to/video.mp4

Outputs:

video-cut/video_part1.mp4
video-cut/video_part2.mp4

Cut Point

Use one optional parameter:

FlagMeaning
-s / --secondsCut position in seconds
noneExact 50% midpoint
.dependency/python/python .ai/video-cut/cut.py --video clip.mov --seconds 12.5

Output

Encode both parts as H.264 CRF 18, preset medium, yuv420p, with AAC 192 kbps and faststart. Preserve source resolution and frame rate. Re-encoding provides frame-accurate cuts instead of keyframe-limited stream-copy cuts.

Use -o / --output to choose an output directory. Never overwrite or modify the source.

Agent Notes

  1. Use the bundled script, not handwritten FFmpeg commands.
  2. When the user asks for two halves without a timestamp, use the default 50% split.
  3. Do not use stream copy; it can move cuts to keyframes and produce unequal parts.
  4. Reject split points at zero or at/after the video duration.
  5. Tell the user both output paths.
  6. If Python or FFmpeg is missing, populate .dependency/ and retry.
  7. See reference.md for the exact FFmpeg pipeline and cut behavior.

Tests

.dependency/python/python .ai/video-cut/test_cut.py

Manual examples: cli/video-cut.md

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.