Search and download copyright-free images and video clips from Pexels API. Supports both photo search (--type image) and video search (--type video, default).
60
72%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/pexels-footage/SKILL.mdUse this skill when:
Prerequisites: PEXELS_API_KEY must be set. Register free at https://www.pexels.com/api/
通过 PATH 调用 wrapper,无需拼接脚本路径。
pexels-footage \
--type image \
--terms "sunset ocean,mountain landscape,forest path" \
--aspect 16:9 \
--output-dir ./assets/images \
[--max-clips 15]pexels-footage \
--type video \
--terms "sunset ocean" \
--aspect 9:16 \
--output-dir ./video_assets/footage \
--min-duration 5 \
--max-duration 30重要:视频下载一次只允许下载一个(脚本已强制 --max-clips=1),不允许批量下载。下载时应根据 content-check 报告的时长缺口,通过 --min-duration 和 --max-duration 精确匹配所需时长,不要下载远超需求的素材。
| Option | Default | Description |
|---|---|---|
--terms | required | Comma-separated search keywords (one per scene) |
--type | video | image or video |
--aspect | 9:16 | 9:16 (portrait) | 16:9 (landscape) | 1:1 (square) |
--output-dir | required | Directory to save downloaded files |
--min-duration | 5 | Minimum clip duration in seconds (video only) |
--max-duration | none | Maximum clip duration in seconds (video only). 强烈建议设置,避免下载过长的素材 |
--max-clips | 1 (video) / 15 (image) | Maximum total files to download. 视频类型强制为 1 |
✅ Downloaded 12 images to ./assets/images/
pexels-sunset-ocean-abc123.jpg (1920x1280)
pexels-mountain-def456.jpg (2048x1365)
...Returns JSON to stdout:
{
"ok": true,
"images": ["path1.jpg", "path2.jpg"],
"total": 12,
"output_dir": "./assets/images"
}{
"ok": true,
"clips": ["path1.mp4", "path2.mp4"],
"total": 12,
"output_dir": "./video_assets/footage"
}| Variable | Description |
|---|---|
PEXELS_API_KEY | Pexels API key (required) |
| Error | Action |
|---|---|
PEXELS_API_KEY not set | Check environment variables |
| No results found for term | Try broader/simpler keywords (English works best) |
| Download fails | Retry once; skip if fails again |
| Rate limit (HTTP 429) | Wait 60s, then retry |
bcef823
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.