From 36d32d6e13c66b0565624097f27ac3416b64132c Mon Sep 17 00:00:00 2001 From: zlei9 Date: Sun, 29 Mar 2026 14:21:09 +0800 Subject: [PATCH] Initial commit with translated description --- SKILL.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ _meta.json | 6 ++++++ 2 files changed, 53 insertions(+) create mode 100644 SKILL.md create mode 100644 _meta.json diff --git a/SKILL.md b/SKILL.md new file mode 100644 index 0000000..94baf6c --- /dev/null +++ b/SKILL.md @@ -0,0 +1,47 @@ +--- +name: gifgrep +description: "使用CLI/TUI搜索GIF提供商,下载结果并提取静态图/图集。" +homepage: https://gifgrep.com +metadata: {"clawdbot":{"emoji":"🧲","requires":{"bins":["gifgrep"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/gifgrep","bins":["gifgrep"],"label":"Install gifgrep (brew)"},{"id":"go","kind":"go","module":"github.com/steipete/gifgrep/cmd/gifgrep@latest","bins":["gifgrep"],"label":"Install gifgrep (go)"}]}} +--- + +# 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`) + +Environment tweaks +- `GIFGREP_SOFTWARE_ANIM=1` to force software animation +- `GIFGREP_CELL_ASPECT=0.5` to tweak preview geometry diff --git a/_meta.json b/_meta.json new file mode 100644 index 0000000..5cd9eb3 --- /dev/null +++ b/_meta.json @@ -0,0 +1,6 @@ +{ + "ownerId": "kn70pywhg0fyz996kpa8xj89s57yhv26", + "slug": "gifgrep", + "version": "1.0.1", + "publishedAt": 1767545342229 +} \ No newline at end of file