返回顶部
m

macos-notesmacOS笔记管理

Create, read, search, and manage macOS Notes via AppleScript. Use when the user asks to take a note, jot something down, save an idea, create meeting notes, read a note, search notes, or anything involving Apple Notes on macOS. Triggers on requests like "note this down", "save this as a note", "create a note about X", "show my notes", "search my notes for X", "what did I write about X". macOS only.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
780
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

macos-notes

macOS Notes

通过 $SKILL_DIR/scripts/notes.sh 管理 Apple Notes。笔记内容以 HTML 格式内部存储;脚本接受纯文本或 HTML 正文,读取时返回纯文本。

快速开始

列出文件夹

始终先列出文件夹以发现账户和文件夹名称:

bash
$SKILL_DIR/scripts/notes.sh list-folders

输出格式:账户 → 文件夹(每行一个)。

创建笔记

bash
echo | $SKILL_DIR/scripts/notes.sh create-note

JSON 字段:

字段必需默认值描述
title-笔记标题(成为第一行/标题)
body
否 | | 笔记内容(纯文本 — 自动转换为 HTML) |
| html | 否 | | 原始 HTML 正文(如果同时提供,覆盖 body) |
| folder | 否 | 默认文件夹 | 文件夹名称(来自 list-folders) |
| account | 否 | 默认账户 | 账户名称(来自 list-folders) |

读取笔记

bash
echo | $SKILL_DIR/scripts/notes.sh read-note

JSON 字段:

字段必需默认值描述
name-笔记标题(精确匹配)
folder
否 | 所有文件夹 | 要搜索的文件夹 |
| account | 否 | 默认账户 | 要搜索的账户 |

列出笔记

bash
echo | $SKILL_DIR/scripts/notes.sh list-notes

JSON 字段:

字段必需默认值描述
folder默认文件夹文件夹名称
account
否 | 默认账户 | 账户名称 |
| limit | 否 | 20 | 最大返回笔记数 |

搜索笔记

bash
echo | $SKILL_DIR/scripts/notes.sh search-notes

JSON 字段:

字段必需默认值描述
query-在笔记标题中搜索的文本
account
否 | 默认账户 | 要搜索的账户 |
| limit | 否 | 10 | 最大返回结果数 |

自然语言解释

将用户请求映射到命令:

用户说命令关键字段
记下这个:...create-notetitle, body
保存会议笔记
create-note | title: 会议笔记 — <日期>, body |
| 我写过关于 X 的什么? | search-notes | query: X |
| 显示我的笔记 | list-notes | (默认值) |
| 读取我关于 X 的笔记 | read-note | name: X |
| 保存在我的工作笔记中 | create-note | 匹配最接近的 account/folder(来自 list-folders) |

示例提示

记下 API 密钥格式:prefix_xxxx
bash
echo {title:API 密钥格式,body:格式:prefixxxxx} | $SKILLDIR/scripts/notes.sh create-note

显示我最近的笔记
bash
echo {} | $SKILL_DIR/scripts/notes.sh list-notes

我写过关于密码的什么?
bash
echo {query:password} | $SKILL_DIR/scripts/notes.sh search-notes

读取我关于 Hinge 的笔记
bash
echo {name:Hinge} | $SKILL_DIR/scripts/notes.sh read-note

在我的 iCloud 笔记中创建会议摘要
bash
$SKILL_DIR/scripts/notes.sh list-folders

然后:
bash
echo {title:会议摘要 — 2026-02-17,body:讨论了路线图。\n- Q1:发布 MVP\n- Q2:迭代,account:iCloud,folder:Notes} | $SKILL_DIR/scripts/notes.sh create-note

关键规则

  1. 1. 始终先列出文件夹,如果用户未指定账户/文件夹 — 文件夹名称在不同账户间可能重复
  2. 同时指定账户和文件夹,当定位到特定位置时 — 仅 folder: Notes 会产生歧义
  3. 跳过受密码保护的笔记 — 脚本无法读取或修改它们
  4. 通过标准输入传递 JSON — 切勿作为 CLI 参数(避免在进程列表中泄露数据)
  5. 所有字段均由脚本验证(类型强制转换、范围检查) — 无效输入将被拒绝并返回错误
  6. 所有操作均记录到 logs/notes.log,包含时间戳、命令和笔记标题
  7. 正文使用纯文本 — body 中的换行符会自动转换为
    ;使用 html 进行富文本格式化
  8. 笔记标题 = 第一行 — Notes.app 将正文的第一行视为笔记名称

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 macos-notes-1776420070 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 macos-notes-1776420070 技能

通过命令行安装

skillhub install macos-notes-1776420070

下载

⬇ 下载 macos-notes v1.0.0(免费)

文件大小: 5.52 KB | 发布时间: 2026-4-17 19:57

v1.0.0 最新 2026-4-17 19:57
Initial release of macos-notes (v1.0.0):

- Create, read, search, and list macOS Notes via AppleScript and shell scripts.
- Supports specifying note title, body (plain text or HTML), account, and folder.
- Lists folders to identify accounts and folder names before creating or searching notes.
- Handles user requests like creating notes, searching, and listing notes using simple JSON input over stdin.
- Notes are stored as HTML internally; script ensures plaintext output when reading.
- Password-protected notes are skipped and cannot be read or modified.
- Actions are logged with command details and timestamps.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部