botkits-shorts-reframe
Turn a 16:9 video into a 1080×1920 Short. Center crop, audio kept, length and resolution checked.
Use this when turning one landscape (16:9) clip into a vertical (9:16) clip with a fixed center crop.
Install
npx skills add botkitsdev/botkits --skill botkits-shorts-reframeTo list every skill in the repo: npx skills add botkitsdev/botkits --list.
No CLI? Copy this folder into the skills folder your agent uses, and keep SKILL.md inside it.
What it does
- Crops the full height to a centered 9:16 slice, then scales to 1080×1920. The crop expression works at any 16:9 source size, including 1920×1080 and 1280×720.
- Copies the audio as-is with
-c:a copy. If the source has no audio, drop that flag. Video is re-encoded because a crop changes the pixels. - Stays on a fixed crop. It does not pan, zoom, or pad with letterboxing. If the subject sits off-center, set
xexplicitly, for examplecrop=ih*9/16:ih:(iw-ih*9/16)/3:0. - After the encode, checks that the output is 1080×1920 and that its duration matches the source within a frame or two. If duration drifted, re-run and check you did not add
-t,-ss, or a mismatched-shortestflag.
Before / after (example)
This example starts with a 16:9 file, such as 1920×1080. The source is a full landscape frame. A default center crop keeps the middle and cuts the sides. If the subject sits off-center, that default window misses them.
Run this command:
ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy output.mp4ffprobe must then show width 1080, height 1920, and a duration that matches the source within a frame or two. If the subject was off-center, set x yourself instead of using the default.
A 16:9 frame with a centered 9:16 crop box, and the 1080x1920 result next to it
Use it in
- Used daily: Grok Bot.
- Installs with
npx skills add(tested 18 Nov 2026): Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and Grok Build. - Supports the SKILL.md format (vendor docs): Claude apps (upload), ChatGPT (Business, Enterprise, Edu, Healthcare upload), and the other clients listed at agentskills.io.
- Other agents that support the Agent Skills format can load it. We have not run it there.
- No direct install yet in ChatGPT dots or Meta Muse. Paste the instructions from SKILL.md into a chat.
| Agent | Put this folder here |
|---|---|
| Grok Bot | Paste SKILL.md in a 1:1 chat and ask the Bot to save it as a skill. |
| Claude Code | .claude/skills/botkits-shorts-reframe/ or ~/.claude/skills/botkits-shorts-reframe/ |
| Codex | .agents/skills/botkits-shorts-reframe/ or ~/.agents/skills/botkits-shorts-reframe/ |
| Cursor | .agents/skills/botkits-shorts-reframe/ or .cursor/skills/botkits-shorts-reframe/ |
| Gemini CLI | .gemini/skills/botkits-shorts-reframe/ or .agents/skills/botkits-shorts-reframe/ (one folder deep only) |
| GitHub Copilot | .github/skills/botkits-shorts-reframe/ or .agents/skills/botkits-shorts-reframe/ |
| Grok Build | .grok/skills/botkits-shorts-reframe/ or ~/.grok/skills/botkits-shorts-reframe/ |
| Claude apps | Turn on code execution. ZIP this folder and upload it in Customize, Skills. |
Install tested is not run tested.
Premium
The free skill works by itself. The Shorts Builder Kit adds eased pan and zoom, a loudness check and a jitter check. Price: $14.
Links
- botkits.dev
- Instructions: SKILL.md
- Inspired by: FFmpeg crop filter docs and the mediacodec.dev crop guide. The docs are a filter reference and the guide has the centered crop. This skill adds the scale to 1080x1920 and the duration and resolution checks.
License: MIT