跳到正文
Skillpedia
图片与图标394k · #56

gifgrep

它能做什么

它指导 AI 智能体在 Tenor 或 Giphy 上查找 GIF,并把它们转换为静态图片或缩略图表。它适合想要表情 GIF,或快速预览动画片段的人。

适用场景

  • ✓你想找一个符合某种反应或想法的 GIF 的时候。
  • ✓你需要动画 GIF 的一张静态图片或一组帧画面的时候。
  • ✓你想把 GIF 下载到电脑中,用于文档或聊天的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/skills/gifgrep/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/skills/gifgrep/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请找一个开心跳舞的 GIF,下载下来,并从中截取一张静态图片。”

每周 5 个新技能,1 分钟读完。

工作原理

技能使用 gifgrep 命令在 Tenor 或 Giphy 上搜索,然后可以下载结果,并把单帧或多帧缩略图提取为 PNG。在推荐之前,它会检查 GIF 链接是否有效。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

gifgrep

Use gifgrep to search GIF providers (Tenor/Giphy), browse in a TUI, download results, and extract stills or sheets.

GIF-Grab (gifgrep workflow)

  • Search -> preview -> download -> extract (still/sheet) for fast review and sharing.

Quick start

  • gifgrep cats --max 5
  • gifgrep cats --format url | head -n 5
  • gifgrep search --json cats | jq '.[0].url'
  • gifgrep tui "office handshake"
  • gifgrep cats --download --max 1 --format url

TUI + previews

  • TUI: gifgrep tui "query"
  • CLI still previews: --thumbs (Kitty/Ghostty only; still frame)

Download + reveal

  • --download saves to ~/Downloads
  • --reveal shows the last download in Finder

Stills + sheets

  • gifgrep still ./clip.gif --at 1.5s -o still.png
  • gifgrep sheet ./clip.gif --frames 9 --cols 3 -o sheet.png
  • Sheets = single PNG grid of sampled frames (great for quick review, docs, PRs, chat).
  • Tune: --frames (count), --cols (grid width), --padding (spacing).

Providers

  • --source auto|tenor|giphy
  • GIPHY_API_KEY required for --source giphy
  • TENOR_API_KEY optional (Tenor demo key used if unset)

Output

  • --json prints an array of results (id, title, url, preview_url, tags, width, height)
  • --format for pipe-friendly fields (e.g., url)

GIF asset hygiene

  • Before recommending or using an animated GIF URL, verify it resolves successfully, has Content-Type: image/gif, and is actually animated (multiple frames or loop metadata; e.g. inspect with file, identify, or a small script).
  • Record attribution/license/source URL alongside the asset.
  • Do not hotlink when a local asset is needed: download/copy it into the project and reference the local file.

Environment tweaks

  • GIFGREP_SOFTWARE_ANIM=1 to force software animation
  • GIFGREP_CELL_ASPECT=0.5 to tweak preview geometry
常见问题

它需要 API 密钥吗?

Giphy 搜索需要 Giphy 密钥;如果没有设置,Tenor 可以使用内置的演示密钥。

什么是缩略图表?

缩略图表是由采样帧组成的单张 PNG 网格图,便于快速查看。

下载的文件保存在哪里?

下载内容保存到你的“下载”文件夹,并可使用显示选项在 Finder 中打开最近一个文件。

详情

作者的原始描述

Search GIF providers with CLI/TUI, download results, and extract stills/sheets.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#56
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能