Coding

Bear Share Sync

Try it

Detect new Bear notes tagged

What it does

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

The skill document

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.

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván555 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Post videos, photos, text, and documents to 10 social platforms through a single REST API call.

by victorcavero14375 installs50 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván854 installs69 stars

More from terrycarter1985

Browse all skills

Grade English homework for Chinese primary students in grades 3–6 with consistent, age-appropriate feedback.

by terrycarter198517 installs

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

by terrycarter198524 installs

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

by terrycarter198519 installs

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

by terrycarter198518 installs

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

by terrycarter198516 installs

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

by terrycarter198516 installs