From 10340d2a3f65e2949c1c3618da9d5938fe56d855 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Jan 2026 04:46:15 +0000 Subject: [PATCH] feat(skills): add bear-notes skill using grizzly CLI --- skills/bear-notes/SKILL.md | 78 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 skills/bear-notes/SKILL.md diff --git a/skills/bear-notes/SKILL.md b/skills/bear-notes/SKILL.md new file mode 100644 index 000000000..f802279ae --- /dev/null +++ b/skills/bear-notes/SKILL.md @@ -0,0 +1,78 @@ +--- +name: bear-notes +description: Create, search, and manage Bear notes via grizzly CLI. +homepage: https://bear.app +metadata: {"clawdis":{"emoji":"🐻","os":["darwin"],"requires":{"bins":["grizzly"]},"install":[{"id":"go","kind":"go","module":"github.com/tylerwince/grizzly/cmd/grizzly@latest","bins":["grizzly"],"label":"Install grizzly (go)"}]}} +--- + +# Bear Notes + +Use `grizzly` to create, read, and manage notes in Bear on macOS. + +Requirements +- Bear app installed and running +- For write operations, a Bear app token (stored in `~/.config/grizzly/token`) + +## Getting a Bear Token + +For operations that modify notes (add-text, etc.), you need an authentication token: +1. Open Bear → Help → API Token → Copy Token +2. Save it: `echo "YOUR_TOKEN" > ~/.config/grizzly/token` + +## Common Commands + +Create a note +```bash +echo "Note content here" | grizzly create --title "My Note" --tag work +grizzly create --title "Quick Note" --tag inbox < /dev/null +``` + +Open/read a note by ID +```bash +grizzly open-note --id "NOTE_ID" --enable-callback --json +``` + +Append text to a note +```bash +echo "Additional content" | grizzly add-text --id "NOTE_ID" --mode append --token-file ~/.config/grizzly/token +``` + +List all tags +```bash +grizzly tags --enable-callback --json +``` + +Search notes (via open-tag) +```bash +grizzly open-tag --name "work" --enable-callback --json +``` + +## Options + +Common flags: +- `--dry-run` — Preview the URL without executing +- `--print-url` — Show the x-callback-url +- `--enable-callback` — Wait for Bear's response (needed for reading data) +- `--json` — Output as JSON (when using callbacks) +- `--token-file PATH` — Path to Bear API token file + +## Configuration + +Grizzly reads config from (in priority order): +1. CLI flags +2. Environment variables (`GRIZZLY_TOKEN_FILE`, `GRIZZLY_CALLBACK_URL`, `GRIZZLY_TIMEOUT`) +3. `.grizzly.toml` in current directory +4. `~/.config/grizzly/config.toml` + +Example `~/.config/grizzly/config.toml`: +```toml +token_file = "~/.config/grizzly/token" +enable_callback = true +``` + +## Notes + +- Bear must be running for commands to work +- Note IDs are Bear's internal identifiers (visible in note info or via callbacks) +- Use `--enable-callback` when you need to read data back from Bear +- Write operations require a valid token