Community程式設計與開發github.com

Bear 筆記

透過 grizzly CLI 在 macOS 上建立、搜尋及管理 Bear 筆記。

Bear 筆記 是什麼?

此技能讓 AI 代理(如 Claude Code)能夠利用 `grizzly` 命令列工具,在 macOS 平台上與 Bear 筆記應用程式進行互動。使用者可以建立新筆記、依 ID 開啟或讀取筆記、在現有筆記後附加文字、列出所有標籤,以及使用特定標籤進行搜尋。部分操作(如附加文字或處理標籤)需要 Bear API 權杖,該權杖可從 Bear 應用程式的「幫助 > API 權杖」選單中取得,並儲存在 `~/.config/grizzly/token` 檔案中。此工具支援透過 `--enable-callback` 與 `--json` 旗標進行非同步回呼與 JSON 輸出,方便程式化處理。此外,它還提供 `--dry-run` 與 `--print-url` 等選項,用於預覽或偵錯,而不實際執行變更。組態可透過 CLI 旗標、環境變數或 TOML 設定檔設定,優先順序由高至低。總而言之,此技能為 Bear 使用者提供了一個強大的自動化與整合指令碼功能,協助他們直接在終端機中管理筆記。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/bear-notes

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Bear 筆記 是做什麼的?

使用 grizzly 在 macOS 上建立、讀取及管理 Bear 中的筆記。

需求

  • 已安裝並執行 Bear 應用程式
  • 對於某些操作(add-text、tags、open-note --selected),需要 Bear 應用程式權杖(存放在 ~/.config/grizzly/token)

取得 Bear 權杖

對於需要權杖的操作(add-text、tags、open-note --selected),您需要一個認證權杖:

  1. 開啟 Bear -> 說明 -> API 權杖 -> 複製權杖
  2. 儲存權杖:echo "YOUR_TOKEN" > ~/.config/grizzly/token

常用指令

建立筆記

echo "筆記內容" | grizzly create --title "我的筆記" --tag 工作
grizzly create --title "快速筆記" --tag 收件匣 < /dev/null

依 ID 開啟/讀取筆記

grizzly open-note --id "NOTE_ID" --enable-callback --json

在筆記後附加文字

echo "額外內容" | grizzly add-text --id "NOTE_ID" --mode append --token-file ~/.config/grizzly/token

列出所有標籤

grizzly tags --enable-callback --json --token-file ~/.config/grizzly/token

搜尋筆記(透過 open-tag)

grizzly open-tag --name "工作" --enable-callback --json

選項

常用旗標:

  • --dry-run - 預覽 URL 但不執行
  • --print-url - 顯示 x-callback-url
  • --enable-callback - 等待 Bear 回應(讀取資料時需要)
  • --json - 以 JSON 格式輸出(使用回呼時)
  • --token-file PATH - Bear API 權杖檔案路徑

組態

Grizzly 依優先順序讀取組態(由高至低):

  1. CLI 旗標
  2. 環境變數(GRIZZLY_TOKEN_FILE、GRIZZLY_CALLBACK_URL、GRIZZLY_TIMEOUT)
  3. 目前目錄下的 .grizzly.toml
  4. ~/.config/grizzly/config.toml

範例 ~/.config/grizzly/config.toml:

token_file = "~/.config/grizzly/token"
callback_url = "http://127.0.0.1:42123/success"
timeout = "5s"

備註

  • 必須執行 Bear 才能使用指令
  • 筆記 ID 是 Bear 的內部識別碼(可在筆記資訊中檢視,或透過回呼取得)
  • 從 Bear 讀取資料時需要使用 --enable-callback
  • 某些操作需要有效的權杖(add-text、tags、open-note --selected)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

claw-score

Audit or refresh OpenClaw maturity scorecard docs from root taxonomy, maturity scores, and QA evidence artifacts without using maintainer discrawl data or committed inventory reports.

相關技能