bear-research-enricher
/install bear-research-enricher
Research Assistant
Read Bear notes tagged 「待整理」, extract key topics, search for matching GIFs via gifgrep, and insert them inline. When done, remove the 「待整理」 tag and add 「已整理」.
Prerequisites
- Bear app running on macOS with a valid API token at
~/.config/grizzly/token grizzlyCLI installed (go install github.com/tylerwince/grizzly/cmd/grizzly@latest)gifgrepskill installed (provides GIF search)curlavailable
Workflow
- Fetch notes: Run
grizzly open-tag --name "待整理" --enable-callback --json --token-file ~/.config/grizzly/tokento list all notes with the tag. - For each note:
a. Read note content via
grizzly open-note --id \x3CNOTE_ID> --enable-callback --json --token-file ~/.config/grizzly/tokenb. Extract 2–3 key topics or keywords from the note title and first paragraph. c. For each keyword, search GIFs using the gifgrep skill (orcurl "https://api.giphy.com/v1/gifs/search?api_key=dc6zaTOxFJmzC&q=\x3Ckeyword>&limit=3"as fallback). d. Pick the most relevant GIF URL per keyword. e. Append GIFs to the note usinggrizzly add-text:echo -e "\
---
" | grizzly add-text --id \x3CNOTE_ID> --mode append --token-file ~/.config/grizzly/token
```
3. Retag: Remove 「待整理」 and add 「已整理」 by updating note tags via Bear's x-callback-url:
open "bear://x-callback-url/add-tag?id=\x3CNOTE_ID>&name=已整理"
open "bear://x-callback-url/remove-tag?id=\x3CNOTE_ID>&name=待整理"
- Report: Summarize which notes were enriched and how many GIFs were added.
Script
For batch processing, use scripts/enrich_notes.sh:
bash scripts/enrich_notes.sh
The script handles the full loop: fetch tagged notes → per-note topic extraction → GIF search → insert → retag.
Notes
- If no notes carry the 「待整理」 tag, report that and exit.
- If GIF search returns no results for a keyword, skip that keyword rather than inserting a placeholder.
- Bear must be running; grizzly commands will fail silently otherwise.
- Rate-limit GIF API calls (1 request/second) to avoid throttling.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bear-research-enricher - After installation, invoke the skill by name or use
/bear-research-enricher - Provide required inputs per the skill's parameter spec and get structured output
What is bear-research-enricher?
Enrich Bear research notes tagged 「待整理」 with thematic GIFs. Use when the user wants to auto-illustrate or spruce up draft research notes in Bear, or mentions... It is an AI Agent Skill for Claude Code / OpenClaw, with 49 downloads so far.
How do I install bear-research-enricher?
Run "/install bear-research-enricher" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is bear-research-enricher free?
Yes, bear-research-enricher is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does bear-research-enricher support?
bear-research-enricher is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created bear-research-enricher?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v0.1.0.