← 返回
未分类

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...
为标记为「待整理」的 Bear 研究笔记添加主题 GIF,适用于用户想要自动为 Bear 中的草稿笔记添加插图或美化,或提及...
terrycarter1985 terrycarter1985 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 286
下载
💾 0
安装
1
版本
#latest

概述

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
  • grizzly CLI installed (go install github.com/tylerwince/grizzly/cmd/grizzly@latest)
  • gifgrep skill installed (provides GIF search)
  • curl available

Workflow

  1. Fetch notes: Run grizzly open-tag --name "待整理" --enable-callback --json --token-file ~/.config/grizzly/token to list all notes with the tag.
  2. For each note:

a. Read note content via grizzly open-note --id --enable-callback --json --token-file ~/.config/grizzly/token

b. Extract 2–3 key topics or keywords from the note title and first paragraph.

c. For each keyword, search GIFs using the gifgrep skill (or curl "https://api.giphy.com/v1/gifs/search?api_key=dc6zaTOxFJmzC&q=&limit=3" as fallback).

d. Pick the most relevant GIF URL per keyword.

e. Append GIFs to the note using grizzly add-text:

```

echo -e "\n---\n!" | grizzly add-text --id --mode append --token-file ~/.config/grizzly/token

```

  1. Retag: Remove 「待整理」 and add 「已整理」 by updating note tags via Bear's x-callback-url:

```

open "bear://x-callback-url/add-tag?id=&name=已整理"

open "bear://x-callback-url/remove-tag?id=&name=待整理"

```

  1. 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.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-08 03:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,392 📥 321,993
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 832 📥 300,804
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,095 📥 822,455