详情

首页手游攻略 Apple Notes CLI:通过 AI 管理 macOS 备忘录 - Openclaw Skills

Apple Notes CLI:通过 AI 管理 macOS 备忘录 - Openclaw Skills

佚名 2026-08-09 09:10:01

什么是 Apple Notes CLI?

Apple Notes CLI 技能利用 memo 实用程序在您的终端和原生 macOS 备忘录应用之间建立桥梁。通过将其集成到 Openclaw Skills 中,用户可以以编程方式管理个人知识库,使其成为将 Apple 备忘录作为主要记录系统的开发者的必备工具。此技能允许在 AI 驱动的开发工作流中与备忘录进行无缝交互,确保文档和灵感被准确记录在您需要的地方。

该技能专为 macOS 生态系统设计,在遵守系统级隐私和安全的同时,为备忘录操作提供了强大的接口。它将 Apple 备忘录从一个静态应用转变为自动化环境中的动态部分,支持文件夹迁移和批量导出为开发者友好格式等高级操作。

下载入口:https://github.com/openclaw/skills/tree/main/skills/steipete/apple-notes

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install apple-notes

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 <project>/skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 apple-notes。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

Apple Notes CLI 应用场景

  • 在开发过程中自动将代码片段或项目摘要保存到特定的 Apple 备忘录文件夹中。
  • 通过 AI 助手使用模糊搜索从大量备忘录中快速检索信息。
  • 将项目相关的备忘录导出为 Markdown,以便包含在 GitHub 仓库或文档网站中。
  • 通过简单的 AI 指令在文件夹之间移动备忘录,整理杂乱的内容。
  • 使用 Openclaw Skills 直接将会议记录或日志捕获到 macOS 原生备忘录生态系统中。
Apple Notes CLI 工作原理
  1. 该技能通过 memo 命令行工具与本地 macOS Apple 备忘录数据库交互。
  2. 发出指令时,它会查询 Notes.app 库以列出、筛选或搜索特定条目。
  3. 创建任务会触发快速添加标题功能或交互式编辑器会话,以进行更详细的输入。
  4. 移动或删除备忘录等管理操作使用特定标识符,以确保针对文件夹层级中的正确备忘录。
  5. 导出功能调用 Mistune 库将内部备忘录格式转换为干净的 Markdown 或 HTML 文件。
  6. 所有操作均与 Apple 备忘录应用实时同步,确保通过 iCloud 在所有设备上保持一致。

Apple Notes CLI 配置指南

要将此技能与您的 Openclaw Skills 设置集成,必须首先在 macOS 系统上安装 memo 实用程序。

# 通过 Homebrew 安装
brew tap antoniorodr/memo && brew install antoniorodr/memo/memo

# 通过 pip 手动安装
git clone https://github.com/antoniorodr/memo
cd memo
pip install .

注意:您必须在“系统设置 > 隐私与安全性 > 自动化”下授予终端或您的 AI IDE 控制 Notes.app 的权限。

Apple Notes CLI 数据架构与分类体系

该技能与 Apple 备忘录架构交互,优先处理基于文本的内容和元数据。下表描述了数据处理方式:

元素 描述
备忘录标题 用于标识的备忘录首行或指定标题。
文件夹名称 Apple 备忘录中用于组织筛选的容器文件夹。
正文文本 备忘录的文本内容,不包括图像或复杂的附件。
元数据 包括在搜索和移动操作中使用的创建日期和文件夹路径。

导出的文件将根据用户偏好生成为标准的 .md 或 .html 文档。

name: apple-notes
description: Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks Clawdbot to add a note, list notes, search notes, or manage note folders.
homepage: https://github.com/antoniorodr/memo
metadata: {"clawdbot":{"emoji":"??","os":["darwin"],"requires":{"bins":["memo"]},"install":[{"id":"brew","kind":"brew","formula":"antoniorodr/memo/memo","bins":["memo"],"label":"Install memo via Homebrew"}]}}

Apple Notes CLI

Use memo notes to manage Apple Notes directly from the terminal. Create, view, edit, delete, search, move notes between folders, and export to HTML/Markdown.

Setup

  • Install (Homebrew): brew tap antoniorodr/memo && brew install antoniorodr/memo/memo
  • Manual (pip): pip install . (after cloning the repo)
  • macOS-only; if prompted, grant Automation access to Notes.app.

View Notes

  • List all notes: memo notes
  • Filter by folder: memo notes -f "Folder Name"
  • Search notes (fuzzy): memo notes -s "query"

Create Notes

  • Add a new note: memo notes -a
    • Opens an interactive editor to compose the note.
  • Quick add with title: memo notes -a "Note Title"

Edit Notes

  • Edit existing note: memo notes -e
    • Interactive selection of note to edit.

Delete Notes

  • Delete a note: memo notes -d
    • Interactive selection of note to delete.

Move Notes

  • Move note to folder: memo notes -m
    • Interactive selection of note and destination folder.

Export Notes

  • Export to HTML/Markdown: memo notes -ex
    • Exports selected note; uses Mistune for markdown processing.

Limitations

  • Cannot edit notes containing images or attachments.
  • Interactive prompts may require terminal access.

Notes

  • macOS-only.
  • Requires Apple Notes.app to be accessible.
  • For automation, grant permissions in System Settings > Privacy & Security > Automation.
相关资讯
点击查看更多
游戏推荐
推荐专题
热门阅读
推荐下载