← 返回
效率工具 中文

macOS Notes

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,...
通过 AppleScript 创建、读取、搜索及管理 macOS 备忘录。适用于用户要求记笔记、记录事项、保存想法、创建会议记录等场景。
lucaperret
效率工具 clawhub v1.0.0 1 版本 99913.3 Key: 无需
★ 1
Stars
📥 1,133
下载
💾 23
安装
1
版本
#latest

概述

macOS Notes

Manage Apple Notes via $SKILL_DIR/scripts/notes.sh. Notes content is stored as HTML internally; the script accepts plain text or HTML body and returns plaintext when reading.

Quick start

List folders

Always list folders first to discover accounts and folder names:

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

Output format: account → folder (one per line).

Create a note

echo '<json>' | "$SKILL_DIR/scripts/notes.sh" create-note

JSON fields:

FieldRequiredDefaultDescription
------------
titleyes-Note title (becomes the first line / heading)
bodyno""Note content (plain text — converted to HTML automatically)
htmlno""Raw HTML body (overrides body if both provided)
foldernodefault folderFolder name (from list-folders)
accountnodefault accountAccount name (from list-folders)

Read a note

echo '<json>' | "$SKILL_DIR/scripts/notes.sh" read-note

JSON fields:

FieldRequiredDefaultDescription
------------
nameyes-Note title (exact match)
foldernoall foldersFolder to search in
accountnodefault accountAccount to search in

List notes

echo '<json>' | "$SKILL_DIR/scripts/notes.sh" list-notes

JSON fields:

FieldRequiredDefaultDescription
------------
foldernodefault folderFolder name
accountnodefault accountAccount name
limitno20Max notes to return

Search notes

echo '<json>' | "$SKILL_DIR/scripts/notes.sh" search-notes

JSON fields:

FieldRequiredDefaultDescription
------------
queryyes-Text to search for in note titles
accountnodefault accountAccount to search in
limitno10Max results to return

Interpreting natural language

Map user requests to commands:

User saysCommandKey fields
---------
"Note this down: ..."create-notetitle, body
"Save meeting notes"create-notetitle: "Meeting notes — ", body
"What did I write about X?"search-notesquery: "X"
"Show my notes"list-notes(defaults)
"Read my note about X"read-notename: "X"
"Save this in my work notes"create-noteMatch closest account/folder from list-folders

Example prompts

"Note down the API key format: prefix_xxxx"

echo '{"title":"API key format","body":"Format: prefix_xxxx"}' | "$SKILL_DIR/scripts/notes.sh" create-note

"Show my recent notes"

echo '{}' | "$SKILL_DIR/scripts/notes.sh" list-notes

"What did I write about passwords?"

echo '{"query":"password"}' | "$SKILL_DIR/scripts/notes.sh" search-notes

"Read my note about Hinge"

echo '{"name":"Hinge"}' | "$SKILL_DIR/scripts/notes.sh" read-note

"Create a meeting summary in my iCloud notes"

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

Then:

echo '{"title":"Meeting summary — 2026-02-17","body":"Discussed roadmap.\n- Q1: launch MVP\n- Q2: iterate","account":"iCloud","folder":"Notes"}' | "$SKILL_DIR/scripts/notes.sh" create-note

Critical rules

  1. Always list folders first if the user hasn't specified an account/folder — folder names are reused across accounts
  2. Specify both account and folder when targeting a specific location — folder: "Notes" alone is ambiguous
  3. Password-protected notes are skipped — the script cannot read or modify them
  4. Pass JSON via stdin — never as a CLI argument (avoids leaking data in process list)
  5. All fields are validated by the script (type coercion, range checks) — invalid input is rejected with an error
  6. All actions are logged to logs/notes.log with timestamp, command, and note title
  7. Body uses plain text — newlines in body are converted to
    automatically; use html for rich formatting
  8. Note title = first line — Notes.app treats the first line of the body as the note name

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 06:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,720
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,168

Tidal CLI

lucaperret
在终端控制Tidal音乐流媒体,用户可搜索艺术家、专辑、曲目、视频、播放列表以及管理播放列表。
★ 0 📥 688