计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
apple-notes【效率与协作】Manage Apple Notes via the `memo` CLI on macOS — create, view, search, edit, export.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: apple-notes
description: Manage Apple Notes via the memo CLI on macOS — create, view, search, edit, export.
version: 1.2.2
requires_tools:
Drive Apple Notes from the terminal via memo. Notes sync across Apple devices through iCloud.
Do not run a memo --version probe before each request. Just run the
memo command the user asked for directly. Only when a command fails
map the error to a Setup playbook branch:
command not found / memo: command not found → Setup playbook → "memo is not installed".osascript / "Not authorized to send Apple events to Notes" → Setup playbook → "Automation permission denied".uname returns Linux) → reply that this skill is macOS-only and stop. Do NOT try to install anything.If unsure which branch applies, capture the actual stderr and ask the user before proceeding — never assume.
When a check fails, the agent's job is to OFFER concrete help and EXECUTE the fix itself — not to dump install instructions on the user. Use this dialogue shape:
Reply (solo reply step):
"The
memoutility is not installed. I can install it myself via Homebrew (brew install antoniorodr/memo/memo); it needs your confirmation and takes ~30 seconds. Install it?"
If user agrees, execute as two consecutive solo steps:
[{ "tool": "os.shell.run", "args": { "cmd": "brew", "args": ["tap", "antoniorodr/memo"] } }]
[{ "tool": "os.shell.run", "args": { "cmd": "brew", "args": ["install", "antoniorodr/memo/memo"] } }]
After both succeed, retry the original command.
If brew itself is missing (exit != 0, command not found: brew), do NOT attempt to install Homebrew automatically — that requires sudo and a network curl-pipe-bash. Reply with: "You don't have Homebrew installed. I can't install it automatically — that requires sudo and an interactive install. Install it manually from https://brew.sh/, then I'll continue."
memo talks to Notes.app via AppleScript; macOS guards this behind Privacy & Security → Automation. The agent cannot toggle that switch programmatically. Help the user navigate there:
[{ "tool": "os.shell.run", "args": { "cmd": "open", "args": ["x-apple.systempreferences:com.apple.preference.security?Privacy_Automation"] } }]
Then reply:
"I opened the right panel. Find your terminal program or
atomic-agentthere and enable the checkbox next to Notes. After that say "done" — I'll re-run the check."
When the user says done, retry a benign read (memo notes -s __probe__ to trigger the OS prompt if still pending), then proceed.
obsidian skill instead.memory.notes.store tool.memo only talks to Apple Notes.All examples invoke os.shell.run with cmd: "memo" and the args array shown.
| Goal | args |
|---|---|
| List all notes | ["notes"] |
| Filter by folder | ["notes", "-f", "Folder Name"] |
| Fuzzy search | ["notes", "-s", "query"] |
| Goal | args |
|---|---|
| Open interactive editor | ["notes", "-a"] |
| Quick add with title | ["notes", "-a", "Note Title"] |
| Goal | args |
|---|---|
| Pick a note to edit (interactive) | ["notes", "-e"] |
| Pick a note to delete (interactive) | ["notes", "-d"] |
| Move a note to another folder (interactive) | ["notes", "-m"] |
| Goal | args |
|---|---|
| Export to HTML/Markdown | ["notes", "-ex"] |
-a without title, -e, -d, -m, -ex) need a real TTY. They will hang or error from a non-interactive shell — prefer the explicit-title form (-a "Title") when scripting.obsidian (vault) or memory.notes.store (agent memory).