← 返回 Skills 市场
ivangdavila

GIF

作者 Iván · GitHub ↗ · v1.0.1
linuxdarwinwin32 ✓ 安全检测通过
988
总下载
2
收藏
7
当前安装
2
版本数
在 OpenClaw 中安装
/install gif
功能描述
Find, search, and create GIFs with proper optimization and accessibility.
使用说明 (SKILL.md)

Requirements

Required for creating GIFs:

  • ffmpeg — video to GIF conversion

Optional:

  • gifsicle — post-optimization (reduces size 30-50%)
  • GIPHY_API_KEY — for Giphy search API
  • TENOR_API_KEY — for Tenor search API

Where to Find GIFs

Site Best for API
Giphy General, trending Yes (key required)
Tenor Messaging apps Yes (key required)
Imgur Viral/community Yes
Reddit r/gifs Niche, unique No

Creating GIFs with FFmpeg

Always use palettegen (without it, colors look washed out):

ffmpeg -ss 0 -t 5 -i input.mp4 \
  -filter_complex "fps=10,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" \
  output.gif
Setting Value Why
fps 8-12 Higher = much larger file
scale 320-480 1080p GIFs are massive
lanczos Always Best scaling quality

Post-Optimization

If gifsicle is available:

gifsicle -O3 --lossy=80 --colors 128 input.gif -o output.gif

Reduces size 30-50% with minimal quality loss.

Video Alternative

For web, use video instead of large GIFs (80-90% smaller):

\x3Cvideo autoplay muted loop playsinline>
  \x3Csource src="animation.webm" type="video/webm">
  \x3Csource src="animation.mp4" type="video/mp4">
\x3C/video>

Accessibility

  • WCAG 2.2.2: Loops >5s need pause control
  • prefers-reduced-motion: Show static image instead
  • Alt text: Describe the action ("Cat jumping off table")
  • Three flashes: Nothing >3 flashes/second (seizure risk)

Common Mistakes

  • No palettegen in FFmpeg — colors look terrible
  • FPS >15 — file size explodes for no visual benefit
  • No lazy loading on web — blocks page load
  • Using huge GIF where video would work — 10x larger

API Quick Reference

Giphy search:

curl "https://api.giphy.com/v1/gifs/search?api_key=$GIPHY_API_KEY&q=thumbs+up&limit=10"

Tenor search:

curl "https://tenor.googleapis.com/v2/search?key=$TENOR_API_KEY&q=thumbs+up&limit=10"
安全使用建议
This skill is instruction-only and appears coherent for GIF creation/search. Before using: ensure ffmpeg is installed and you understand that converting local files requires the agent to access those files; gifsicle and API keys are optional and only needed for optimization or remote searches. The curl examples will make network requests to third-party APIs (Giphy/Tenor) if you supply keys—do not expose sensitive content in GIFs you upload, and keep API keys secret. Because the skill runs shell commands you should review/approve any concrete commands the agent will execute (to avoid accidental processing of sensitive files). Overall low-risk if used for its stated purpose.
功能分析
Type: OpenClaw Skill Name: gif Version: 1.0.1 The skill bundle is benign. The `SKILL.md` provides instructions and command examples for creating, optimizing, and searching GIFs using standard tools like `ffmpeg`, `gifsicle`, and `curl`. The use of environment variables for API keys (`GIPHY_API_KEY`, `TENOR_API_KEY`) is a standard and appropriate practice. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts against the AI agent. All commands and instructions are directly aligned with the stated purpose of GIF management.
能力评估
Purpose & Capability
Name/description match the declared requirements: ffmpeg is listed as required for GIF creation; gifsicle and GIPHY/TENOR keys are documented as optional for optimization and searching. There are no unrelated binaries or credentials requested.
Instruction Scope
SKILL.md only shows ffmpeg/gifsicle commands for conversion/optimization and example curl calls to Giphy/Tenor. It does not instruct reading unrelated system files or accessing unrelated credentials. Example use of $GIPHY_API_KEY and $TENOR_API_KEY is appropriate and documented as optional.
Install Mechanism
No install spec / no code files (instruction-only). This is lowest-risk: nothing will be downloaded or written by the skill itself.
Credentials
No required environment variables or credentials. The optional API keys referenced are directly relevant to the documented search APIs (Giphy, Tenor). No other secrets are requested.
Persistence & Privilege
Skill is not forced always-on, is user-invocable, and uses the platform default for autonomous invocation. It does not request persistent system presence or modify other skills/config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gif
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gif 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Declare required binary (ffmpeg), document optional deps (gifsicle, API keys)
v1.0.0
Initial release
元数据
Slug gif
版本 1.0.1
许可证
累计安装 7
当前安装数 7
历史版本数 2
常见问题

GIF 是什么?

Find, search, and create GIFs with proper optimization and accessibility. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 988 次。

如何安装 GIF?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gif」即可一键安装,无需额外配置。

GIF 是免费的吗?

是的,GIF 完全免费(开源免费),可自由下载、安装和使用。

GIF 支持哪些平台?

GIF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 GIF?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.1。

💬 留言讨论