Apple notes

From gabrielmoreira/agent-skills-mirror · View interactive version

Apple notes is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Manage Apple Notes via the `memo` CLI on macOS — create, view, search, edit, export.

How to use this skill

Skill file

apple-notes

Drive Apple Notes from the terminal via CODE0. Notes sync across Apple devices through iCloud.

Execution contract

This skill declares no bundled scripts. Never call skill.run_script for

memo. Every memo ... command is an external CLI invocation and must use

os.shell.run with cmd: "memo" and each command-line token in the separate

args array.

Setup check (lazy — do NOT probe every turn)

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:

If unsure which branch applies, capture the actual stderr and ask the user before proceeding — never assume.

Setup playbook (when prerequisites are missing)

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:

  1. State plainly what is missing (one short reply).
  2. Offer the most direct remediation the agent can perform via tools.
  3. Wait for the user's yes/no reply.
  4. On yes, execute the fix (the runtime approval gate will surface the command for confirmation).
  5. Retry the original request; only then proceed.

memo is not installed

Reply (solo reply step):

"The memo utility 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."

Automation permission denied

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-agent there 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.

When to use

When NOT to use

Common operations

All examples invoke os.shell.run with cmd: "memo" and the args array shown.

View

| Goal | args |

|---|---|

| List all notes | ["notes"] |

| Filter by folder | ["notes", "-f", "Folder Name"] |

| Fuzzy search | ["notes", "-s", "query"] |

Create

| Goal | args |

|---|---|

| Open interactive editor | ["notes", "-a"] |

| Quick add with title | ["notes", "-a", "Note Title"] |

Edit / delete / move

| 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"] |

Export

| Goal | args |

|---|---|

| Export to HTML/Markdown | ["notes", "-ex"] |

Limitations

Rules

  1. Confirm content and target folder with the user before creating or modifying a note.
  2. Prefer Apple Notes when the user wants cross-device iCloud sync; otherwise route to obsidian (vault) or memory.notes.store (agent memory).
  3. Never paste user note bodies into traces or logs without checking — Notes can contain personal data.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.