Bear Notes: Managing Bear Notes with an Agent via Grizzly

Introduction

Many people use Bear for note-taking on macOS, but automation often hits two obstacles: Bear is designed for human interaction, making it difficult to batch-create notes, search by tags, or append content to existing notes via scripts; meanwhile, hand-crafting x-callback-url calls requires dealing with callbacks and authentication. The Bear Notes Skill condenses common operations into grizzly command documentation, which agents like Cursor can follow step by step. It’s ideal for the “capture knowledge into your base while you work” workflow.

What Is This

Bear Notes is a note-taking and knowledge-management Skill under the office and document-processing category. In one sentence: create, search, and manage Bear notes via the grizzly CLI.

The Skill itself is built on the universal SKILL.md format, with content focused on grizzly usage and configuration.

Core Features

The following capabilities align with the upstream Skill documentation. The agent invokes the local grizzly binary as described:

  1. Create notes: Pipe in the body text, specifying title and tags.
  2. Open/read by ID: Use --enable-callback and --json to retrieve data from Bear.
  3. Append content: Append text to a specific note (requires Token).
  4. Tags: List all tags (requires Token).
  5. Browse notes by tag: Search via open-tag and similar commands (examples use the work tag).

Common options include --dry-run, --print-url, --enable-callback, --json, and --token-file, used for previewing URLs, waiting for Bear callbacks, or specifying the Token file path.

Installation & Setup

Prerequisites

  1. Bear must be installed on macOS, and Bear must be running when commands are executed.
  2. The grizzly CLI must be installed locally (the Skill does not replace grizzly; it teaches the agent how to invoke it).
  3. Operations such as add-text, tags, and open-note --selected require a Bear API Token.

Obtaining a Bear Token

  1. Open Bear → Help → API Token → Copy Token.
  2. Write it to grizzly’s default path:
echo "YOUR_TOKEN" > ~/.config/grizzly/token

Installing via SkillHub to an Agent

SkillHub documentation requires using --dir to point to the current agent’s skills directory at install time; otherwise it may be installed to the default ./skills/ and not be recognized.

Check the CLI:

command -v skillhub && skillhub --version

Example of installing to Cursor (skills directory is ~/.cursor/skills/):

skillhub install @clawhub_steipete/bear-notes --dir ~/.cursor/skills/

Skills directories for other common agents (from the SkillHub installation guide): Claude Code uses ~/.claude/skills/, Codex uses ~/.codex/skills/ or .agents/skills/ under the project. After installation, refresh or restart the agent session as required by your product.

OpenClaw Ecosystem

In an OpenClaw context, similar Skills can be installed using a command like the following (coordinate follows steipete’s upstream):

openclaw skills install @steipete/bear-notes

If SkillHub is your primary source, it’s still recommended to use @clawhub_steipete/bear-notes with skillhub install for consistency.

grizzly Configuration (Optional)

grizzly reads configuration by priority: CLI arguments → environment variables (GRIZZLY_TOKEN_FILE, GRIZZLY_CALLBACK_URL, GRIZZLY_TIMEOUT) → .grizzly.toml in the current directory → ~/.config/grizzly/config.toml.

Example ~/.config/grizzly/config.toml:

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

Typical Usage

The following commands come from the upstream Skill documentation. You can verify them in a terminal first, then have the agent reproduce them.

Create a tagged note:

echo "Note content here" | grizzly create --title "My Note" --tag work
grizzly create --title "Quick Note" --tag inbox < /dev/null

Open by ID with JSON callback:

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

Append content:

echo "Additional content" | grizzly add-text --id "NOTE_ID" --mode append --token-file ~/.config/grizzly/token

List tags:

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

Open by tag (search example):

grizzly open-tag --name "work" --enable-callback --json

A Note ID is Bear’s internal identifier, obtainable through note info or a --json callback result. When you need to read data back from Bear, include --enable-callback.

Use Cases & Caveats

Who It’s For

  • You already maintain notes in macOS + Bear and want an agent to draft meeting minutes, to-dos, or code snippets into Bear.
  • You or your team organize a knowledge base by tags (e.g., work, inbox) and need tag-based queries or batch note creation.

Limitations & Gotchas

  1. Platform: Depends on Bear and grizzly; macOS only. The same workflow cannot be directly applied to Linux workstations.
  2. Runtime: Commands will not work if Bear is not running.
  3. Token: Write operations and some read operations will fail without a Token. The SkillHub requires_api_key=true flag should be understood as “the Bear Token has been configured.”
  4. Metrics: The SkillHub page shows a rating of 100000, 18,637 downloads, and 2,338 installs (subject to the page’s current figures). Please verify the latest numbers on the SkillHub Bear Notes page before enabling.

Closing

Bear Notes does not replace the Bear client. Instead, it encodes grizzly’s commands, Token handling, and callback conventions into a Skill, allowing an agent to operate on your local note base within acceptable boundaries. If your knowledge-management workflow is centered on Bear and runs on macOS, install @clawhub_steipete/bear-notes from SkillHub, configure your Token, verify with --dry-run first, and then let the agent handle common tasks like creating notes, adding tags, and searching by tag.

Official entry: https://api.skillhub.cn/indiv-seafish/bear-notes (SkillHub display page: https://www.skillhub.cn/skills/clawhub_steipete/bear-notes)

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye