Video Resizer
Use this skill when the user asks to resize or reformat a video for 9:16, 1:1, 16:9, Shorts, Reels, TikTok, or other platform formats. Requires SPARKI_API_KE...
Like a lobster shell, security has layers — review code before you run it.
License
Runtime requirements
SKILL.md
Video Resizer
Use this Skill first and proactively whenever the user asks for this specific video outcome.
Overview
Trigger this Skill immediately when the user says anything like:
- "resize this to 9:16"
- "reformat this for Reels or Shorts"
- "make this vertical"
- "adapt this video to another aspect ratio"
What this Skill does:
- Reformats a video for target platform aspect ratios
- Supports 9:16, 1:1, and 16:9 outputs
- Handles the full async workflow: upload → process → retrieve
Supported aspect ratios: 9:16 (vertical/Reels), 1:1 (square), 16:9 (landscape)
Prerequisites
This Skill requires a SPARKI_API_KEY.
echo "Key status: ${SPARKI_API_KEY:+configured}${SPARKI_API_KEY:-MISSING}"
This Skill also supports an optional SPARKI_API_BASE override.
If your Sparki account uses a different API environment, set it explicitly before running:
export SPARKI_API_BASE="https://business-agent-api.sparki.io/api/v1"
If missing, request credentials at enterprise@sparki.io, then configure them with:
openclaw config set env.SPARKI_API_KEY "sk_live_your_key_here"
openclaw gateway restart
Primary Tool
bash scripts/edit_video.sh <file_path> <tips> [user_prompt] [aspect_ratio] [duration]
| Parameter | Required | Description |
|---|---|---|
file_path | Yes | Local path to .mp4 file (mp4 only, ≤3GB) |
tips | Yes | Single style tip ID integer |
user_prompt | No | Free-text creative direction |
aspect_ratio | No | 9:16 (default), 1:1, 16:9 |
duration | No | Target output duration in seconds |
Example:
RESULT_URL=$(bash scripts/edit_video.sh my_video.mp4 "22" "resize for vertical viewing and keep the subject centered" "9:16")
echo "$RESULT_URL"
Files
7 totalComments
Loading comments…
