360 Secure SkillHub
360 安全技能中心

Bear GIF Enricher

扫描 Bear 中标记「待整理」的笔记,提取主题短语,通过 Tenor(失败时回退 Giphy)搜索匹配 GIF,以 Markdown 图片追加到笔记末尾,并把标签改为「已整理」,最后汇总处理结果。依赖 macOS 上的 Bear 应用、grizzly CLI 和相应 API 密钥。

分类:知识
terrycarter1985
terrycarter1985
热度 19.79
最近更新 2026-05-12 03:32:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/bear-gif-enricher
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
research-assistant
version
0.1.0
description
Enrich Bear research notes tagged 「待整理」 with theme-matched GIFs. Use when the user wants to auto-illustrate pending research notes, batch-process Bear notes for visual enrichment, or automate the "find a fitting GIF" step of note cleanup. Requires Bear + grizzly CLI.

Research Assistant

Process Bear notes tagged 「待整理」: extract topics, find matching GIFs, insert them, then remove the tag.

Workflow

  1. Fetch pending notes — run scripts/process_notes.sh list to get all notes with the 待整理 tag.
  2. For each note, run scripts/enrich_note.sh <note-id> which:
    • Reads the note content via grizzly open-note
    • Extracts key topic phrases (first H1, bold terms, or first sentence)
    • Searches for a relevant GIF via Tenor API (falls back to Giphy)
    • Appends the GIF as a markdown image at the end of the note
    • Removes the 待整理 tag and adds 已整理 tag
  3. Report — summarize how many notes were enriched and any failures.

Requirements

  • Bear app running on macOS
  • grizzly CLI installed (go install github.com/tylerwince/grizzly/cmd/grizzly@latest)
  • Bear token at ~/.config/grizzly/token
  • TENOR_API_KEY or GIPHY_API_KEY env var (free tier works)

Scripts

  • scripts/process_notes.sh list — list note IDs with 待整理 tag
  • scripts/enrich_note.sh <note-id> — enrich a single note with a GIF