编程

Bear Share Sync

试用

Detect new Bear notes tagged

它能做什么

Three-step pipeline: **Bear #share → Canvas node → iMessage preview**.

技能文档

Bear Share Sync

Three-step pipeline: Bear #share → Canvas node → iMessage preview.

Prerequisites

  • Bear running with grizzly CLI installed and token configured (~/.config/grizzly/token)
  • BlueBubbles channel configured in OpenClaw gateway (channels.bluebubbles)
  • Canvas file at canvases/agent_capabilities.canvas (created on first run if missing)

Configuration

Set environment variables (or defaults apply):

VariableDefaultPurpose
BEAR_SHARE_TAGshareBear tag to watch
BEAR_SHARE_CANVAScanvases/agent_capabilities.canvasPath to canvas file
BEAR_SHARE_TARGET(required)iMessage target: E.164 phone, email, or chat_guid:...
BEAR_SHARE_STATE~/.bear-share-sync/state.jsonTracks processed note IDs

Workflow

1. Poll for new #share notes

bash scripts/poll-share-notes.sh

Outputs JSON array of unprocessed notes (id, title, content, tags). Updates state file to mark notes as seen.

2. Update canvas

For each new note, append a knowledge node to the canvas. Run:

python3 scripts/update-canvas.py --canvas "$BEAR_SHARE_CANVAS" --notes /dev/stdin

Node layout: new nodes placed at Y = max(existing Y) + 200, X = 0. Node color = "4" (green). Edge from a central "Shared Notes" group node if present.

See references/canvas-schema.md for the JSON Canvas structure.

3. Send preview via BlueBubbles

bash scripts/send-preview.sh "" "" ""

Uses the message tool with channel: "bluebubbles". Sends a compact preview:

📝 New shared note: 

…

🔗 See canvas for full node.

Full Pipeline (one-shot)

NOTES=$(bash scripts/poll-share-notes.sh)
if [ "$NOTES" != "[]" ]; then
  echo "$NOTES" | python3 scripts/update-canvas.py --canvas "$BEAR_SHARE_CANVAS" --notes /dev/stdin
  echo "$NOTES" | python3 -c "
import json, sys, subprocess
for n in json.load(sys.stdin):
    subprocess.run(['bash','scripts/send-preview.sh',
        '$BEAR_SHARE_TARGET', n['title'], n['content'][:280]])
"
fi

Scheduling

Set up a cron job to poll every 15 minutes:

*/15 * * * * cd /path/to/skill && ./scripts/poll-share-notes.sh | ...

Or use OpenClaw cron with payload.kind = "agentTurn" and the pipeline command.

Notes

  • The state file prevents re-processing; delete it to re-sync all notes.
  • Canvas uses Obsidian-compatible JSON Canvas spec (see references/canvas-schema.md).
  • If BlueBubbles send fails, the canvas is still updated; check gateway logs for delivery errors.

相关技能

按用户明确指令,在得到大脑(Get笔记)中保存、搜索并管理笔记与知识库。

作者 iswalle763 次安装66 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván555 次安装18 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

通过一次 REST API 调用,向 10 个社交平台发布视频、图片、文字与文档。

作者 victorcavero14375 次安装50 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai21 次安装8 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván854 次安装69 星标

terrycarter1985 的更多技能

浏览全部技能

为中国小学三到六年级英语书面作业打分,并给出符合年龄的鼓励式反馈。

作者 terrycarter198517 次安装

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market c...

作者 terrycarter198524 次安装

Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill modes.

作者 terrycarter198519 次安装

Generate reusable, policy-aligned customer service replies for e-commerce aftersales scenarios. Use when support staff need fast, compliant Chinese responses...

作者 terrycarter198518 次安装

Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill modes.

作者 terrycarter198516 次安装

Comprehensive developer cheatsheets and quick references for Git, Docker, Kubernetes, jq, curl, and common Linux commands. Use when needing quick lookups for...

作者 terrycarter198516 次安装